summaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
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 7162c4c0d..dafef39a2 100644
--- a/src/styles/qcommonstyle.cpp
+++ b/src/styles/qcommonstyle.cpp
@@ -556,6 +556,18 @@ TQStyleControlElementData populateControlElementDataFromWidget(const TQWidget* w
return ceData;
}
+TQStyleControlElementData populateControlElementDataFromApplication(const TQApplication* app, const TQStyleOption&, bool) {
+ TQStyleControlElementData ceData;
+
+ if (app) {
+ ceData.widgetObjectTypes = getObjectTypeListForObject(app);
+ ceData.palette = app->palette();
+ ceData.font = app->font();
+ }
+
+ return ceData;
+}
+
/*! \reimp */
void TQCommonStyle::drawPrimitive( PrimitiveElement pe,
TQPainter *p,