changeset 27667:41b32ddb2262

fix compilation error for missing qmeta-type (bug #57203) * settings-dialog.cc (read_varedit_colors): use cast instead of value function for QPalette::ColorRole * variable-editor.cc (notice_settings): use cast instead of value function for QPalette::ColorRole
author Torsten Lilge <ttl-octave@mailbox.org>
date Mon, 11 Nov 2019 19:16:04 +0100
parents 3e8faed1b7d8
children 7ffe081140ef
files libgui/src/settings-dialog.cc libgui/src/variable-editor.cc
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/settings-dialog.cc	Mon Sep 30 11:05:42 2019 +0200
+++ b/libgui/src/settings-dialog.cc	Mon Nov 11 19:16:04 2019 +0100
@@ -1178,7 +1178,7 @@
         // The default colors are given as color roles for
         // the application's palette
         QColor default_color = qApp->palette ().color
-                              (ve_colors[i].def.value<QPalette::ColorRole> ());
+                              ((QPalette::ColorRole) ve_colors[i].def.toInt ());
         QColor setting_color =
             settings->value (ve_colors[i].key, default_color).value<QColor> ();
 
--- a/libgui/src/variable-editor.cc	Mon Sep 30 11:05:42 2019 +0200
+++ b/libgui/src/variable-editor.cc	Mon Nov 11 19:16:04 2019 +0100
@@ -1391,7 +1391,7 @@
         // The default colors are given as color roles for
         // the application's palette
         QColor default_color = qApp->palette ().color
-                              (ve_colors[i].def.value<QPalette::ColorRole> ());
+                              ((QPalette::ColorRole) ve_colors[i].def.toInt ());
         QColor setting_color =
             settings->value (ve_colors[i].key, default_color).value<QColor> ();