chore: use application display name instead

This commit is contained in:
Gary Wang 2021-10-07 21:55:43 +08:00
parent 9136e75e26
commit 7a26347a36
4 changed files with 2 additions and 2391 deletions

View File

@ -1144,7 +1144,7 @@ void Caesium::countUpdate()
item_count = ui->listTreeWidget->topLevelItemCount(); item_count = ui->listTreeWidget->topLevelItemCount();
if (opened_list != "" && QFileInfo(opened_list).baseName() != "tmplst") if (opened_list != "" && QFileInfo(opened_list).baseName() != "tmplst")
{ {
this->setWindowTitle(QFileInfo(opened_list).baseName() + tr(" - Caesium - Image Compressor")); this->setWindowTitle(QFileInfo(opened_list).baseName());
} }
previous_list = opened_list; previous_list = opened_list;
} }

View File

@ -16,9 +16,6 @@
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="windowTitle">
<string>Caesium - Image Compressor</string>
</property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="icons.qrc"> <iconset resource="icons.qrc">
<normaloff>:/icons/caesium_icon.png</normaloff>:/icons/caesium_icon.png</iconset> <normaloff>:/icons/caesium_icon.png</normaloff>:/icons/caesium_icon.png</iconset>

File diff suppressed because it is too large Load Diff

View File

@ -49,6 +49,7 @@ int main(int argc, char *argv[])
settings.setIniCodec("UTF-8"); settings.setIniCodec("UTF-8");
#endif // QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #endif // QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
a.setApplicationDisplayName(QCoreApplication::translate("main", "Caesium - Image Compressor"));
a.addLibraryPath(a.applicationDirPath() + "/lib/"); a.addLibraryPath(a.applicationDirPath() + "/lib/");
QString locale = settings.value("Preferences/language").value<QString>(); QString locale = settings.value("Preferences/language").value<QString>();