diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2017-11-09 11:13:29 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2017-11-09 11:39:21 +0000 |
commit | 8d38f05ffcd863aa489cb6f2543835564b9d61c8 (patch) | |
tree | a67f98a9a237d684cd6fc22e50ca3bff94d64d07 /src | |
parent | 938b3423a97a346ea23c26b7494f40d86a3addb8 (diff) |
QmlDesigner: Remove unused function
Change-Id: If2850329cc96e1ee7aba303e1ad56226d976f60b
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qmldesigner/components/componentcore/theme.cpp | 14 | ||||
-rw-r--r-- | src/plugins/qmldesigner/components/componentcore/theme.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/src/plugins/qmldesigner/components/componentcore/theme.cpp b/src/plugins/qmldesigner/components/componentcore/theme.cpp index 706f06af72..ff583e9802 100644 --- a/src/plugins/qmldesigner/components/componentcore/theme.cpp +++ b/src/plugins/qmldesigner/components/componentcore/theme.cpp @@ -166,18 +166,4 @@ QColor Theme::qmlDesignerBorderColor() const return m_derivedColors.value("QmlDesignerBorderColor"); } -QPixmap Theme::tintPixmap(const QPixmap &mask, const QColor &color) -{ - QImage result(mask.toImage().convertToFormat(QImage::Format_ARGB32)); - result.setDevicePixelRatio(mask.devicePixelRatio()); - QRgb *bitsStart = reinterpret_cast<QRgb*>(result.bits()); - const QRgb *bitsEnd = bitsStart + result.width() * result.height(); - const QRgb tint = color.rgb() & 0x00ffffff; - for (QRgb *pixel = bitsStart; pixel < bitsEnd; ++pixel) { - QRgb pixelAlpha = ((*pixel) & 0xff000000); - *pixel = pixelAlpha | tint; - } - return QPixmap::fromImage(result); -} - } // namespace QmlDesigner diff --git a/src/plugins/qmldesigner/components/componentcore/theme.h b/src/plugins/qmldesigner/components/componentcore/theme.h index bbd9da6fcc..deaea6d60f 100644 --- a/src/plugins/qmldesigner/components/componentcore/theme.h +++ b/src/plugins/qmldesigner/components/componentcore/theme.h @@ -47,7 +47,6 @@ public: static void setupTheme(QQmlEngine *engine); static QColor getColor(Color role); static QPixmap getPixmap(const QString &id); - static QPixmap tintPixmap(const QPixmap &mask, const QColor &color); Q_INVOKABLE QColor qmlDesignerBackgroundColorDarker() const; Q_INVOKABLE QColor qmlDesignerBackgroundColorDarkAlternate() const; |