summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMÃ¥rten Nordheim <marten.nordheim@qt.io>2022-10-24 12:50:09 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-10-25 14:57:18 +0000
commit5e049224db6a76961047f20452d0ec67c58c3882 (patch)
tree868d72bc1cfba16fed3c2c6376d1c4bd9b9bf81c
parentMake Qt on WASM correctly draw windows with QT_SCALE_FACTOR (diff)
downloadqtbase-5e049224db6a76961047f20452d0ec67c58c3882.tar.xz
qtbase-5e049224db6a76961047f20452d0ec67c58c3882.zip
qwindowstheme: Remove unused function
Causes warnings(-as-errors). Change-Id: I77a40d9427cba277012a8343d6badd2c932798af Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 70d2437e6f9c488483e478f3c67f40db7cc4f2b3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/plugins/platforms/windows/qwindowstheme.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/platforms/windows/qwindowstheme.cpp b/src/plugins/platforms/windows/qwindowstheme.cpp
index ef7caa60d9..c15ab82a8b 100644
--- a/src/plugins/platforms/windows/qwindowstheme.cpp
+++ b/src/plugins/platforms/windows/qwindowstheme.cpp
@@ -26,7 +26,6 @@
#include <QtCore/qvariant.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qdebug.h>
-#include <QtCore/qtextstream.h>
#include <QtCore/qsysinfo.h>
#include <QtCore/qcache.h>
#include <QtCore/qthread.h>
@@ -72,17 +71,6 @@ static inline QColor COLORREFToQColor(COLORREF cr)
return QColor(GetRValue(cr), GetGValue(cr), GetBValue(cr));
}
-static inline QTextStream& operator<<(QTextStream &str, const QColor &c)
-{
- str.setIntegerBase(16);
- str.setFieldWidth(2);
- str.setPadChar(u'0');
- str << " rgb: #" << c.red() << c.green() << c.blue();
- str.setIntegerBase(10);
- str.setFieldWidth(0);
- return str;
-}
-
static inline bool booleanSystemParametersInfo(UINT what, bool defaultValue)
{
BOOL result;