fix(filesearch):为打开没有默认打开方式的文件时的弹窗设置窗口标题
This commit is contained in:
parent
e9298af95c
commit
d245c6c560
|
@ -152,6 +152,7 @@ void FileSearchPlugin::openAction(int actionkey, QString key, int type)
|
||||||
if(FileUtils::openFile(key) == -1) {
|
if(FileUtils::openFile(key) == -1) {
|
||||||
QMessageBox msgBox(m_detailPage);
|
QMessageBox msgBox(m_detailPage);
|
||||||
msgBox.setModal(true);
|
msgBox.setModal(true);
|
||||||
|
msgBox.setWindowTitle(tr("ukui-search"));
|
||||||
msgBox.addButton(tr("OK"), QMessageBox::YesRole);
|
msgBox.addButton(tr("OK"), QMessageBox::YesRole);
|
||||||
msgBox.setIcon(QMessageBox::Information);
|
msgBox.setIcon(QMessageBox::Information);
|
||||||
msgBox.setText(tr("Can not get a default application for opening %1.").arg(key));
|
msgBox.setText(tr("Can not get a default application for opening %1.").arg(key));
|
||||||
|
@ -271,6 +272,7 @@ void FileSearchPlugin::initDetailPage()
|
||||||
if(FileUtils::openFile(m_currentActionKey) == -1) {
|
if(FileUtils::openFile(m_currentActionKey) == -1) {
|
||||||
QMessageBox msgBox(m_detailPage);
|
QMessageBox msgBox(m_detailPage);
|
||||||
msgBox.setModal(true);
|
msgBox.setModal(true);
|
||||||
|
msgBox.setWindowTitle(tr("ukui-search"));
|
||||||
msgBox.addButton(tr("OK"), QMessageBox::YesRole);
|
msgBox.addButton(tr("OK"), QMessageBox::YesRole);
|
||||||
msgBox.setIcon(QMessageBox::Information);
|
msgBox.setIcon(QMessageBox::Information);
|
||||||
msgBox.setText(tr("Can not get a default application for opening %1.").arg(m_currentActionKey));
|
msgBox.setText(tr("Can not get a default application for opening %1.").arg(m_currentActionKey));
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>UkuiSearch::MainWindow</name>
|
<name>UkuiSearch::MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/mainwindow.cpp" line="73"/>
|
<location filename="../../../frontend/mainwindow.cpp" line="74"/>
|
||||||
<source>ukui-search</source>
|
<source>ukui-search</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in New Issue