mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
75214a9c8b
Patch has been upstreamed (https://sourceforge.net/p/qt5ct/code/549/) and will be removed in the future.
22 lines
586 B
Diff
22 lines
586 B
Diff
--- a/src/qt5ct/main.cpp
|
|
+++ b/src/qt5ct/main.cpp
|
|
@@ -29,14 +29,18 @@
|
|
#include <QApplication>
|
|
#include <QLibraryInfo>
|
|
#include <QLocale>
|
|
-#include "qt5ct.h"
|
|
+#include <QtGlobal>
|
|
#include <QTranslator>
|
|
#include <QtDebug>
|
|
+#include "qt5ct.h"
|
|
#include "mainwindow.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QApplication app(argc, argv);
|
|
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
|
|
+ QGuiApplication::setDesktopFileName("qt5ct.desktop");
|
|
+#endif
|
|
QTranslator translator;
|
|
QString locale = Qt5CT::systemLanguageID();
|
|
translator.load(QString(":/qt5ct_") + locale);
|