aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/theme
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2017-03-07 16:06:29 +0100
committerTim Jenssen <tim.jenssen@qt.io>2017-03-09 17:20:49 +0000
commit1a822b98ed78fb033f999d283912e88558370fbc (patch)
treecad348a0823ae13a8daf2d3d80ce45a545ebfc1d /src/libs/utils/theme
parent1de5bbd378bf5608a9bfc1d6350e65291686a82e (diff)
Theme: remove unused variant map
Change-Id: I33f6418b476f94e7e862bc7f155f9b4242d5f287 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/libs/utils/theme')
-rw-r--r--src/libs/utils/theme/theme.cpp23
-rw-r--r--src/libs/utils/theme/theme.h2
-rw-r--r--src/libs/utils/theme/theme_p.h2
3 files changed, 0 insertions, 27 deletions
diff --git a/src/libs/utils/theme/theme.cpp b/src/libs/utils/theme/theme.cpp
index 5eb8a86b22c..b8147de0464 100644
--- a/src/libs/utils/theme/theme.cpp
+++ b/src/libs/utils/theme/theme.cpp
@@ -152,29 +152,6 @@ void Theme::setDisplayName(const QString &name)
d->displayName = name;
}
-const QVariantMap &Theme::values() const
-{
- if (d->values.isEmpty()) {
- const QMetaObject &m = *metaObject();
- {
- const QMetaEnum e = m.enumerator(m.indexOfEnumerator("Color"));
- for (int i = 0, total = e.keyCount(); i < total; ++i) {
- const QString key = QLatin1String(e.key(i));
- const QPair<QColor, QString> &var = d->colors.at(i);
- d->values.insert(key, var.first);
- }
- }
- {
- const QMetaEnum e = m.enumerator(m.indexOfEnumerator("Flag"));
- for (int i = 0, total = e.keyCount(); i < total; ++i) {
- const QString key = QLatin1String(e.key(i));
- d->values.insert(key, flag(static_cast<Theme::Flag>(i)));
- }
- }
- }
- return d->values;
-}
-
static QColor readColor(const QString &color)
{
bool ok = true;
diff --git a/src/libs/utils/theme/theme.h b/src/libs/utils/theme/theme.h
index e0b9fcd97fd..d4caa4902ff 100644
--- a/src/libs/utils/theme/theme.h
+++ b/src/libs/utils/theme/theme.h
@@ -342,8 +342,6 @@ public:
QString displayName() const;
void setDisplayName(const QString &displayName);
- const QVariantMap &values() const;
-
void readSettings(QSettings &settings);
static QPalette initialPalette();
diff --git a/src/libs/utils/theme/theme_p.h b/src/libs/utils/theme/theme_p.h
index ad1761d0b8a..4170ec7cd9f 100644
--- a/src/libs/utils/theme/theme_p.h
+++ b/src/libs/utils/theme/theme_p.h
@@ -48,8 +48,6 @@ public:
QVector<QGradientStops> gradients;
QVector<bool> flags;
QMap<QString, QColor> palette;
-
- QVariantMap values;
};
QTCREATOR_UTILS_EXPORT void setCreatorTheme(Theme *theme);