summaryrefslogtreecommitdiffstats
path: root/src/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-09 16:41:42 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-09 16:41:42 -0500
commit403cd53c4e6f6b35bf9881c44efb9f41f5c65b57 (patch)
tree4faf9f3cd1f22f3c41bc5581db938c79b88b99a9 /src/styles/qcommonstyle.cpp
parentd24053184c51974368634902f1c0e862c811098b (diff)
downloadqt3-403cd53c4e6f6b35bf9881c44efb9f41f5c65b57.tar.gz
qt3-403cd53c4e6f6b35bf9881c44efb9f41f5c65b57.zip
Extend style API further and clean up example themes
Diffstat (limited to 'src/styles/qcommonstyle.cpp')
-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,