diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:21 -0600 |
commit | 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch) | |
tree | 89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /knotes/knotebutton.cpp | |
parent | 1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff) | |
download | tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'knotes/knotebutton.cpp')
-rw-r--r-- | knotes/knotebutton.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/knotes/knotebutton.cpp b/knotes/knotebutton.cpp index 5dc5009e0..be141088d 100644 --- a/knotes/knotebutton.cpp +++ b/knotes/knotebutton.cpp @@ -34,7 +34,7 @@ KNoteButton::KNoteButton( const TQString& icon, TQWidget *parent, const char *na : TQPushButton( parent, name ) { setFocusPolicy( TQ_NoFocus ); - tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); + setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); m_flat = true; @@ -49,18 +49,18 @@ KNoteButton::~KNoteButton() void KNoteButton::enterEvent( TQEvent * ) { m_flat = false; - tqrepaint( false ); + repaint( false ); } void KNoteButton::leaveEvent( TQEvent * ) { m_flat = true; - tqrepaint(); + repaint(); } -TQSize KNoteButton::tqsizeHint() const +TQSize KNoteButton::sizeHint() const { - return TQSize( TQPushButton::tqsizeHint().height(), TQPushButton::tqsizeHint().height() ); + return TQSize( TQPushButton::sizeHint().height(), TQPushButton::sizeHint().height() ); } void KNoteButton::drawButton( TQPainter* p ) @@ -78,7 +78,7 @@ void KNoteButton::drawButton( TQPainter* p ) if ( !m_flat ) flags |= TQStyle::Style_MouseOver; - tqstyle().tqdrawPrimitive( TQStyle::PE_ButtonTool, p, rect(), tqcolorGroup(), flags ); + tqstyle().tqdrawPrimitive( TQStyle::PE_ButtonTool, p, rect(), colorGroup(), flags ); drawButtonLabel( p ); } @@ -102,8 +102,8 @@ void KNoteButton::drawButtonLabel( TQPainter* p ) // Shift button contents if pushed. if ( isOn() || isDown() ) { - dx += tqstyle().tqpixelMetric( TQStyle::PM_ButtonShiftHorizontal, this ); - dy += tqstyle().tqpixelMetric( TQStyle::PM_ButtonShiftVertical, this ); + dx += tqstyle().pixelMetric( TQStyle::PM_ButtonShiftHorizontal, this ); + dy += tqstyle().pixelMetric( TQStyle::PM_ButtonShiftVertical, this ); } p->drawPixmap( dx, dy, pix ); |