fix(frontend):add tooltip of the close button in create index dialog.

This commit is contained in:
JunjieBai 2023-09-04 15:46:17 +08:00
parent 81f4a315ee
commit 268bfd9a07
5 changed files with 37 additions and 16 deletions

View File

@ -75,6 +75,7 @@ void CreateIndexAskDialog::initUi() {
m_closeBtn->setProperty("isWindowButton", 0x02);
m_closeBtn->setProperty("useIconHighlightEffect", 0x08);
m_closeBtn->setFlat(true);
m_closeBtn->setToolTip(tr("close"));
connect(m_closeBtn, &QPushButton::clicked, this, [ = ]() {
this->hide();
});

View File

@ -22,22 +22,27 @@
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="95"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="78"/>
<source>close</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="96"/>
<source>Creating index can help you getting results quickly, whether to create or not?</source>
<translation> </translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="106"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="107"/>
<source>Don&apos;t remind</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
<source>No</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="119"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="120"/>
<source>Yes</source>
<translation></translation>
</message>

View File

@ -22,22 +22,27 @@
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="95"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="78"/>
<source>close</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="96"/>
<source>Creating index can help you getting results quickly, whether to create or not?</source>
<translation> ?</translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="106"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="107"/>
<source>Don&apos;t remind</source>
<translation> </translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
<source>No</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="119"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="120"/>
<source>Yes</source>
<translation></translation>
</message>

View File

@ -307,22 +307,27 @@
<translation type="unfinished">Ara</translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="95"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="78"/>
<source>close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="96"/>
<source>Creating index can help you getting results quickly, whether to create or not?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="106"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="107"/>
<source>Don&apos;t remind</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
<source>No</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="119"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="120"/>
<source>Yes</source>
<translation type="unfinished"></translation>
</message>

View File

@ -69,22 +69,27 @@
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="95"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="78"/>
<source>close</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="96"/>
<source>Creating index can help you getting results quickly, whether to create or not?</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="106"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="107"/>
<source>Don&apos;t remind</source>
<translation></translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
<source>No</source>
<translation>(N)</translation>
</message>
<message>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="119"/>
<location filename="../../frontend/control/create-index-ask-dialog.cpp" line="120"/>
<source>Yes</source>
<translation>(Y)</translation>
</message>