aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2020-01-28 16:58:26 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2020-01-28 18:48:31 +0000
commit8011158a4869d7b94ef9a7d51ce8d7ff146ccaef (patch)
treeac98ffe8d7c6e9713658539792f81e01efb4f6fd /src/plugins/resourceeditor/qrceditor/resourcefile.cpp
parent4d213bf5e001a2dabf1439caf8ee1d3f0273a2dc (diff)
ResoureEditor: Use themed color for deleted file in ResourceModel
Better legible, especially with dark themes. Change-Id: Id266a5b31436dbdaf0ac6b1ff6941f7341207438 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/resourceeditor/qrceditor/resourcefile.cpp')
-rw-r--r--src/plugins/resourceeditor/qrceditor/resourcefile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
index b4172173fa..81c211cb0a 100644
--- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
+++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
@@ -32,6 +32,7 @@
#include <projectexplorer/projectexplorerconstants.h>
#include <utils/fileutils.h>
#include <utils/removefiledialog.h>
+#include <utils/theme/theme.h>
#include <QCoreApplication>
#include <QDebug>
@@ -796,7 +797,7 @@ QVariant ResourceModel::data(const QModelIndex &index, int role) const
// File node
Q_ASSERT(file);
if (!file->exists())
- result = QBrush(QColor(Qt::red));
+ result = Utils::creatorTheme()->color(Utils::Theme::TextColorError);
}
break;
default: