qt58.qtbase: use QLatin1String instead of QStringLiteral
This commit is contained in:
parent
b7f895d972
commit
f392614251
@ -12,7 +12,7 @@ Index: qtbase-opensource-src-5.8.0/src/plugins/platforminputcontexts/compose/gen
|
|||||||
- m_possibleLocations.append(QStringLiteral("/usr/local/lib/X11/locale"));
|
- m_possibleLocations.append(QStringLiteral("/usr/local/lib/X11/locale"));
|
||||||
m_possibleLocations.append(QStringLiteral(X11_PREFIX "/share/X11/locale"));
|
m_possibleLocations.append(QStringLiteral(X11_PREFIX "/share/X11/locale"));
|
||||||
m_possibleLocations.append(QStringLiteral(X11_PREFIX "/lib/X11/locale"));
|
m_possibleLocations.append(QStringLiteral(X11_PREFIX "/lib/X11/locale"));
|
||||||
+ m_possibleLocations.append(QStringLiteral(NIXPKGS_QTCOMPOSE));
|
+ m_possibleLocations.append(QLatin1String(NIXPKGS_QTCOMPOSE));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString TableGenerator::findComposeFile()
|
QString TableGenerator::findComposeFile()
|
||||||
|
@ -19,13 +19,13 @@ Index: qtbase-opensource-src-5.8.0/src/plugins/platformthemes/gtk3/main.cpp
|
|||||||
+
|
+
|
||||||
+#ifdef NIXPKGS_QGTK3_XDG_DATA_DIRS
|
+#ifdef NIXPKGS_QGTK3_XDG_DATA_DIRS
|
||||||
+ QStringList XDG_DATA_DIRS = QFile::decodeName(qgetenv("XDG_DATA_DIRS")).split(':');
|
+ QStringList XDG_DATA_DIRS = QFile::decodeName(qgetenv("XDG_DATA_DIRS")).split(':');
|
||||||
+ XDG_DATA_DIRS << QStringLiteral(NIXPKGS_QGTK3_XDG_DATA_DIRS);
|
+ XDG_DATA_DIRS << QLatin1String(NIXPKGS_QGTK3_XDG_DATA_DIRS);
|
||||||
+ qputenv("XDG_DATA_DIRS", QFile::encodeName(XDG_DATA_DIRS.join(':')));
|
+ qputenv("XDG_DATA_DIRS", QFile::encodeName(XDG_DATA_DIRS.join(':')));
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
+#ifdef NIXPKGS_QGTK3_GIO_EXTRA_MODULES
|
+#ifdef NIXPKGS_QGTK3_GIO_EXTRA_MODULES
|
||||||
+ QStringList GIO_EXTRA_MODULES = QFile::decodeName(qgetenv("GIO_EXTRA_MODULES")).split(':');
|
+ QStringList GIO_EXTRA_MODULES = QFile::decodeName(qgetenv("GIO_EXTRA_MODULES")).split(':');
|
||||||
+ GIO_EXTRA_MODULES << QStringLiteral(NIXPKGS_QGTK3_GIO_EXTRA_MODULES);
|
+ GIO_EXTRA_MODULES << QLatin1String(NIXPKGS_QGTK3_GIO_EXTRA_MODULES);
|
||||||
+ qputenv("GIO_EXTRA_MODULES", QFile::encodeName(GIO_EXTRA_MODULES.join(':')));
|
+ qputenv("GIO_EXTRA_MODULES", QFile::encodeName(GIO_EXTRA_MODULES.join(':')));
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
|
@ -9,7 +9,7 @@ Index: qtbase-opensource-src-5.8.0/src/gui/kernel/qplatformintegrationfactory.cp
|
|||||||
- if (QPlatformIntegration *ret = qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(directLoader(), platform, paramList, argc, argv))
|
- if (QPlatformIntegration *ret = qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(directLoader(), platform, paramList, argc, argv))
|
||||||
- return ret;
|
- return ret;
|
||||||
}
|
}
|
||||||
+ QCoreApplication::addLibraryPath(QStringLiteral(NIXPKGS_QPA_PLATFORM_PLUGIN_PATH));
|
+ QCoreApplication::addLibraryPath(QLatin1String(NIXPKGS_QPA_PLATFORM_PLUGIN_PATH));
|
||||||
+ if (QPlatformIntegration *ret = qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(directLoader(), platform, paramList, argc, argv))
|
+ if (QPlatformIntegration *ret = qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(directLoader(), platform, paramList, argc, argv))
|
||||||
+ return ret;
|
+ return ret;
|
||||||
#else
|
#else
|
||||||
@ -29,7 +29,7 @@ Index: qtbase-opensource-src-5.8.0/src/gui/kernel/qplatformintegrationfactory.cp
|
|||||||
- (*it).append(postFix);
|
- (*it).append(postFix);
|
||||||
- }
|
- }
|
||||||
+ }
|
+ }
|
||||||
+ QCoreApplication::addLibraryPath(QStringLiteral(NIXPKGS_QPA_PLATFORM_PLUGIN_PATH));
|
+ QCoreApplication::addLibraryPath(QLatin1String(NIXPKGS_QPA_PLATFORM_PLUGIN_PATH));
|
||||||
+ list = directLoader()->keyMap().values();
|
+ list = directLoader()->keyMap().values();
|
||||||
+ if (!list.isEmpty()) {
|
+ if (!list.isEmpty()) {
|
||||||
+ const QString postFix = QLatin1String(" (from ")
|
+ const QString postFix = QLatin1String(" (from ")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user