aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/qmldesignericons.h
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@theqtcompany.com>2015-11-23 16:41:54 +0100
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2015-11-25 12:30:52 +0000
commit033862f3057818df3123d07fc6cb34e193250c53 (patch)
tree884de0b3b8ac16e548e4f585bd8c821aa890f8b4 /src/plugins/qmldesigner/qmldesignericons.h
parent00c75cd7ebde4f191c15e92550db369163a95b68 (diff)
Themed Icons: Introduce Utils::Icon
Instead of describing icons via file name or in the themed icons case via a string that is a list of mask/color pairs, we have now a class for it. Icons are now listed in per-plugin *icons.h headers. RunControl::m_icon was The only place left where an icon property was in fact a string. This patch changes that member to be a Utils::Icon. Change-Id: Ibcfa8bb25e6d2e330c567ee7ccc0b97ead603177 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmldesigner/qmldesignericons.h')
-rw-r--r--src/plugins/qmldesigner/qmldesignericons.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/qmldesignericons.h b/src/plugins/qmldesigner/qmldesignericons.h
new file mode 100644
index 0000000000..7814460f49
--- /dev/null
+++ b/src/plugins/qmldesigner/qmldesignericons.h
@@ -0,0 +1,64 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms and
+** conditions see http://www.qt.io/terms-conditions. For further information
+** use the contact form at http://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPLv3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+****************************************************************************/
+
+#ifndef QMLDESIGNERICONS_H
+#define QMLDESIGNERICONS_H
+
+#include <utils/icon.h>
+
+namespace QmlDesigner {
+namespace Icons {
+
+const Utils::Icon ARROW_UP({
+ {QLatin1String(":/navigator/icon/arrowup.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon ARROW_RIGHT({
+ {QLatin1String(":/navigator/icon/arrowright.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon ARROW_DOWN({
+ {QLatin1String(":/navigator/icon/arrowdown.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon ARROW_LEFT({
+ {QLatin1String(":/navigator/icon/arrowleft.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon EYE_OPEN({
+ {QLatin1String(":/navigator/icon/eye_open.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon EYE_CLOSED({
+ {QLatin1String(":/navigator/icon/eye_closed.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon EXPORT_CHECKED({
+ {QLatin1String(":/navigator/icon/export_checked.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon EXPORT_UNCHECKED({
+ {QLatin1String(":/navigator/icon/export_unchecked.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon BOUNDING_RECT({
+ {QLatin1String(":/icon/layout/boundingrect.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon SNAPPING({
+ {QLatin1String(":/icon/layout/snapping.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon NO_SNAPPING({
+ {QLatin1String(":/icon/layout/no_snapping.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon NO_SNAPPING_AND_ANCHORING({
+ {QLatin1String(":/icon/layout/snapping_and_anchoring.png"), Utils::Theme::IconsBaseColor}});
+const Utils::Icon RESET({
+ {QLatin1String(":/icon/reset.png"), Utils::Theme::IconsBaseColor}});
+
+} // Icons
+} // QmlDesigner
+
+#endif // QMLDESIGNERICONS_H