summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-15 16:10:23 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-15 16:10:50 (GMT)
commit21052c1ad0a670ab746298569c3a90720741a0ce (patch)
tree15d72ba77068c5bfc13661d8cc31bc1e176b1841
parent41ce7d3be0c4560d5f4ef0187e3e6916149e5d49 (diff)
downloadQt-21052c1ad0a670ab746298569c3a90720741a0ce.zip
Qt-21052c1ad0a670ab746298569c3a90720741a0ce.tar.gz
Qt-21052c1ad0a670ab746298569c3a90720741a0ce.tar.bz2
fix build on linux
-rw-r--r--src/gui/styles/qgtkstyle.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp
index 67586ac..9d5a3bc 100644
--- a/src/gui/styles/qgtkstyle.cpp
+++ b/src/gui/styles/qgtkstyle.cpp
@@ -70,6 +70,7 @@
#include <qpixmapcache.h>
#undef signals // Collides with GTK stymbols
#include "qgtkpainter_p.h"
+#include "qstylehelper_p.h"
#include <private/qcleanlooksstyle_p.h>
@@ -208,17 +209,6 @@ static GdkColor fromQColor(const QColor &color)
return retval;
}
-// Note this is different from uniqueName as used in QGtkPainter
-static QString uniqueName(const QString &key, const QStyleOption *option, const QSize &size)
-{
- QString tmp;
- const QStyleOptionComplex *complexOption = qstyleoption_cast<const QStyleOptionComplex *>(option);
- tmp.sprintf("%s-%d-%d-%d-%lld-%dx%d", key.toLatin1().constData(), uint(option->state),
- option->direction, complexOption ? uint(complexOption->activeSubControls) : uint(0),
- option->palette.cacheKey(), size.width(), size.height());
- return tmp;
-}
-
/*!
\class QGtkStyle
\brief The QGtkStyle class provides a widget style rendered by GTK+