diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-08-08 18:39:32 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-08-08 18:39:32 -0500 |
commit | 9d466f4825e4d70f9d531b8dccd9c7e856307ede (patch) | |
tree | 32621cf65f34983eeee743bea2ce3b4375af634c /style/qtc_kstyle.cpp | |
parent | de6fd1852e0b0a267d654106795af77f8d9533d1 (diff) | |
download | tde-style-qtcurve-9d466f4825e4d70f9d531b8dccd9c7e856307ede.tar.gz tde-style-qtcurve-9d466f4825e4d70f9d531b8dccd9c7e856307ede.zip |
Style API update
Diffstat (limited to 'style/qtc_kstyle.cpp')
-rw-r--r-- | style/qtc_kstyle.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/style/qtc_kstyle.cpp b/style/qtc_kstyle.cpp index 7d73476..d29451b 100644 --- a/style/qtc_kstyle.cpp +++ b/style/qtc_kstyle.cpp @@ -154,10 +154,11 @@ void TQtCKStyle::unPolish( TQStyleControlElementData ceData, ControlElementFlags // Style changes (should) always re-polish popups. -void TQtCKStyle::polishPopupMenu( TQPopupMenu* p ) +void TQtCKStyle::polishPopupMenu( TQStyleControlElementData ceData, ControlElementFlags elementFlags, void *ptr ) { - if (!p->testWState( WState_Polished )) - p->setCheckable(true); + if ( !(ceData.windowState & WState_Polished ) ) { + widgetActionRequest(ceData, elementFlags, ptr, WAR_SetCheckable); + } } @@ -363,7 +364,7 @@ void TQtCKStyle::drawKStylePrimitive( KStylePrimitive kpe, } -int TQtCKStyle::kPixelMetric( KStylePixelMetric kpm, const TQWidget* /* widget */) const +int TQtCKStyle::kPixelMetric( KStylePixelMetric kpm, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget* /* widget */) const { int value; switch(kpm) @@ -1130,7 +1131,7 @@ void TQtCKStyle::drawComplexControl( ComplexControl control, } // Draw all the branches... - static int thickness = kPixelMetric( KPM_ListViewBranchThickness ); + static int thickness = kPixelMetric( KPM_ListViewBranchThickness, ceData, elementFlags ); int line; // index into dotlines TQRect branchrect; TQStyle::StyleFlags branchflags; |