Skip to content

Commit

Permalink
Use QStringLiteral with DATADIR
Browse files Browse the repository at this point in the history
Otherwise, some compilers might get confused.
  • Loading branch information
tsujan committed May 8, 2019
1 parent 2ddcb04 commit 48e0ed8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Kvantum/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ V0.11.1
* Added the missing disabled state of dials.
* Since HDPI is supported by KDE's blur effect with Qt ≥ 5.12, disable Kvantum's workaround for those versions.
* Explicitly set the minimum Qt version to 5.9.0.
* Use QStringLiteral with DATADIR (otherwise, some compilers might get confused).

V0.11.0
---------
Expand Down
2 changes: 1 addition & 1 deletion Kvantum/NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Latest version:

2 May 2019, V0.11.1
8 May 2019, V0.11.1

See "ChangeLog" for changes.
2 changes: 1 addition & 1 deletion Kvantum/kvantummanager/KvantumManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ void KvantumManager::updateThemeList (bool updateAppThemes)
if (hasDefaultThenme)
{
ui->comboBox->insertSeparator (1);
ui->comboBox->insertSeparator (1);
ui->comboBox->insertSeparator (1); // too short without combo menu
if (updateAppThemes)
{
ui->appCombo->insertSeparator (1);
Expand Down
2 changes: 1 addition & 1 deletion Kvantum/kvantummanager/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int main (int argc, char *argv[])
a.installTranslator (&qtTranslator);

QTranslator KMTranslator;
KMTranslator.load ("kvantummanager_" + lang, DATADIR "/kvantummanager/translations");
KMTranslator.load ("kvantummanager_" + lang, QStringLiteral (DATADIR) + "/kvantummanager/translations");
a.installTranslator (&KMTranslator);

/* for Kvantum Manager to do its job, it should by styled by Kvantum */
Expand Down
2 changes: 1 addition & 1 deletion Kvantum/kvantumpreview/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main (int argc, char *argv[])
viewer.installTranslator (&qtTranslator);

QTranslator KPTranslator;
KPTranslator.load ("kvantumpreview_" + lang, DATADIR "/kvantumpreview/translations");
KPTranslator.load ("kvantumpreview_" + lang, QStringLiteral (DATADIR) + "/kvantumpreview/translations");
viewer.installTranslator (&KPTranslator);

KvantumPreview k (NULL);
Expand Down
2 changes: 1 addition & 1 deletion Kvantum/style/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else()
include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
endif()
find_package (X11)
find_package(X11)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
Expand Down

0 comments on commit 48e0ed8

Please sign in to comment.