Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 23 lines 877 B view raw
1--- a/lxqtapplication.cpp 2+++ b/lxqtapplication.cpp 3@@ -77,7 +77,7 @@ Application::Application(int &argc, char** argv, bool handleQuitSignals) 4 5 void Application::updateTheme() 6 { 7- const QString styleSheetKey = QFileInfo(applicationFilePath()).fileName(); 8+ const QString styleSheetKey = QFileInfo(applicationFilePath()).fileName().mid(1).chopped(8); 9 setStyleSheet(lxqtTheme.qss(styleSheetKey)); 10 Q_EMIT themeChanged(); 11 } 12 13--- a/lxqttranslator.cpp 14+++ b/lxqttranslator.cpp 15@@ -147,7 +147,7 @@ bool Translator::translateApplication(const QString &applicationName) 16 if (!applicationName.isEmpty()) 17 return translate(applicationName); 18 else 19- return translate(QFileInfo(QCoreApplication::applicationFilePath()).baseName()); 20+ return translate(QFileInfo(QCoreApplication::applicationFilePath()).baseName().mid(1).chopped(8)); 21 } 22 23