diff options
author | Timothy Pearson <[email protected]> | 2011-12-21 14:24:43 -0600 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-06-19 19:42:58 +0200 |
commit | 44b195a5922fe83a0769b971e8805cd2d3b5450e (patch) | |
tree | 5c21414324c577cd4b13a13b51a0c37a57d6cd1b /kommander/editor/styledbutton.cpp | |
parent | 39356ff58b6a5a76b0ee7fa85c538598ededdeff (diff) | |
download | tdewebdev-44b195a5922fe83a0769b971e8805cd2d3b5450e.tar.gz tdewebdev-44b195a5922fe83a0769b971e8805cd2d3b5450e.zip |
Rename obsolete tq methods to standard names
(cherry picked from commit b0f531735b0175ba112ceb87d01731a7b2334772)
Diffstat (limited to 'kommander/editor/styledbutton.cpp')
-rw-r--r-- | kommander/editor/styledbutton.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kommander/editor/styledbutton.cpp b/kommander/editor/styledbutton.cpp index 189a3ef2..55c8945f 100644 --- a/kommander/editor/styledbutton.cpp +++ b/kommander/editor/styledbutton.cpp @@ -145,21 +145,21 @@ void StyledButton::resizeEvent( TQResizeEvent* e ) void StyledButton::drawButton( TQPainter *paint ) { - tqstyle().tqdrawPrimitive(TQStyle::PE_ButtonBevel, paint, rect(), colorGroup(), + style().tqdrawPrimitive(TQStyle::PE_ButtonBevel, paint, rect(), colorGroup(), isDown() ? TQStyle::Style_Sunken : TQStyle::Style_Raised); drawButtonLabel(paint); if (hasFocus()) - tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, paint, - tqstyle().subRect(TQStyle::SR_PushButtonFocusRect, this), + style().tqdrawPrimitive(TQStyle::PE_FocusRect, paint, + style().subRect(TQStyle::SR_PushButtonFocusRect, this), colorGroup(), TQStyle::Style_Default); } void StyledButton::drawButtonLabel( TQPainter *paint ) { TQColor pen = isEnabled() ? - hasFocus() ? tqpalette().active().buttonText() : tqpalette().inactive().buttonText() - : tqpalette().disabled().buttonText(); + hasFocus() ? palette().active().buttonText() : palette().inactive().buttonText() + : palette().disabled().buttonText(); paint->setPen( pen ); if(!isEnabled()) { @@ -178,7 +178,7 @@ void StyledButton::onEditor() { switch (edit) { case ColorEditor: { - TQColor c = tqpalette().active().background(); + TQColor c = palette().active().background(); if ( KColorDialog::getColor( c, this ) == TQDialog::Accepted ) { setColor( c ); emit changed(); |