diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
commit | f4fae92b6768541e2952173c3d4b09040f95bf7e (patch) | |
tree | d8c5d93232235cd635f3310b4d95490df181ba2d /knotes/knotebutton.cpp | |
parent | 125c0a08265b75a133644d3b55f47e37c919f45d (diff) | |
download | tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip |
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 b6cf49bc4..230ba4d44 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( NoFocus ); - setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); + tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); m_flat = true; @@ -49,18 +49,18 @@ KNoteButton::~KNoteButton() void KNoteButton::enterEvent( TQEvent * ) { m_flat = false; - repaint( false ); + tqrepaint( false ); } void KNoteButton::leaveEvent( TQEvent * ) { m_flat = true; - repaint(); + tqrepaint(); } -TQSize KNoteButton::sizeHint() const +TQSize KNoteButton::tqsizeHint() const { - return TQSize( TQPushButton::sizeHint().height(), TQPushButton::sizeHint().height() ); + return TQSize( TQPushButton::tqsizeHint().height(), TQPushButton::tqsizeHint().height() ); } void KNoteButton::drawButton( TQPainter* p ) @@ -78,7 +78,7 @@ void KNoteButton::drawButton( TQPainter* p ) if ( !m_flat ) flags |= TQStyle::Style_MouseOver; - style().drawPrimitive( TQStyle::PE_ButtonTool, p, rect(), colorGroup(), flags ); + style().drawPrimitive( TQStyle::PE_ButtonTool, p, rect(), tqcolorGroup(), flags ); drawButtonLabel( p ); } @@ -102,8 +102,8 @@ void KNoteButton::drawButtonLabel( TQPainter* p ) // Shift button contents if pushed. if ( isOn() || isDown() ) { - dx += style().pixelMetric( TQStyle::PM_ButtonShiftHorizontal, this ); - dy += style().pixelMetric( TQStyle::PM_ButtonShiftVertical, this ); + dx += style().tqpixelMetric( TQStyle::PM_ButtonShiftHorizontal, this ); + dy += style().tqpixelMetric( TQStyle::PM_ButtonShiftVertical, this ); } p->drawPixmap( dx, dy, pix ); |