summaryrefslogtreecommitdiffstats
path: root/knotes/knotebutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knotes/knotebutton.cpp')
-rw-r--r--knotes/knotebutton.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/knotes/knotebutton.cpp b/knotes/knotebutton.cpp
index d9a6205e9..846dc503e 100644
--- a/knotes/knotebutton.cpp
+++ b/knotes/knotebutton.cpp
@@ -33,7 +33,7 @@
KNoteButton::KNoteButton( const TQString& icon, TQWidget *tqparent, const char *name )
: TQPushButton( tqparent, name )
{
- setFocusPolicy( NoFocus );
+ setFocusPolicy( Qt::NoFocus );
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
m_flat = true;
@@ -78,7 +78,7 @@ void KNoteButton::drawButton( TQPainter* p )
if ( !m_flat )
flags |= TQStyle::Style_MouseOver;
- style().drawPrimitive( TQStyle::PE_ButtonTool, p, rect(), tqcolorGroup(), flags );
+ tqstyle().tqdrawPrimitive( 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().tqpixelMetric( TQStyle::PM_ButtonShiftHorizontal, this );
- dy += style().tqpixelMetric( TQStyle::PM_ButtonShiftVertical, this );
+ dx += tqstyle().tqpixelMetric( TQStyle::PM_ButtonShiftHorizontal, this );
+ dy += tqstyle().tqpixelMetric( TQStyle::PM_ButtonShiftVertical, this );
}
p->drawPixmap( dx, dy, pix );