summaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-08-11 14:14:39 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-08-11 14:14:39 -0500
commitac2895edc0ed16ace31a353a82de0f44fc7d66ab (patch)
treef1f5872963bbb4d40ee89c5b248dcbfc27138d6b /src/styles
parent30aa36ec6c2e34642e80608eaa3275fc3ff06adf (diff)
parent403cd53c4e6f6b35bf9881c44efb9f41f5c65b57 (diff)
downloadqt3-ac2895edc0ed16ace31a353a82de0f44fc7d66ab.tar.gz
qt3-ac2895edc0ed16ace31a353a82de0f44fc7d66ab.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/qt3
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/qcommonstyle.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp
index b81018e..fe25502 100644
--- a/src/styles/qcommonstyle.cpp
+++ b/src/styles/qcommonstyle.cpp
@@ -556,6 +556,18 @@ QStyleControlElementData populateControlElementDataFromWidget(const QWidget* wid
return ceData;
}
+QStyleControlElementData populateControlElementDataFromApplication(const QApplication* app, const QStyleOption&, bool) {
+ QStyleControlElementData ceData;
+
+ if (app) {
+ ceData.widgetObjectTypes = getObjectTypeListForObject(app);
+ ceData.palette = app->palette();
+ ceData.font = app->font();
+ }
+
+ return ceData;
+}
+
/*! \reimp */
void QCommonStyle::drawPrimitive( PrimitiveElement pe,
QPainter *p,