From 33875614a6eddef3a881601a00ea0427e6c55003 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 9 Aug 2012 16:42:04 -0500 Subject: Automated update from Qt3 --- src/styles/qcommonstyle.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/styles/qcommonstyle.cpp') 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, -- cgit v1.2.1