diff options
Diffstat (limited to 'kivio/kiviopart/stencilbarbutton.cpp')
-rw-r--r-- | kivio/kiviopart/stencilbarbutton.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kivio/kiviopart/stencilbarbutton.cpp b/kivio/kiviopart/stencilbarbutton.cpp index d3d30dae..39fb22ef 100644 --- a/kivio/kiviopart/stencilbarbutton.cpp +++ b/kivio/kiviopart/stencilbarbutton.cpp @@ -74,7 +74,7 @@ DragBarButton::DragBarButton( const TQString& text, TQWidget* parent, const char setPixmap(stencil_xpm); - const TQColorGroup& g = tqcolorGroup(); + const TQColorGroup& g = colorGroup(); TQColor c = g.buttonText(); int cr, cg, cb; @@ -121,8 +121,8 @@ void DragBarButton::drawButton( TQPainter* paint ) pix.fill(eraseColor()); TQPainter pixPainter(&pix); - const TQColorGroup& g = tqcolorGroup(); - tqstyle().tqdrawControl( TQStyle::CE_PushButton, &pixPainter, this, TQRect(0, 0, pixSize.width(), pixSize.height()), tqcolorGroup() ); + const TQColorGroup& g = colorGroup(); + tqstyle().drawControl( TQStyle::CE_PushButton, &pixPainter, this, TQRect(0, 0, pixSize.width(), pixSize.height()), colorGroup() ); int m = 3; int tw = 0; @@ -132,7 +132,7 @@ void DragBarButton::drawButton( TQPainter* paint ) pw = m_pIcon->width(); tqstyle().drawItem( &pixPainter, TQRect( m, 0, pw, pixSize.height() ), AlignLeft | AlignVCenter, - tqcolorGroup(), isEnabled(), + colorGroup(), isEnabled(), m_pIcon, TQString(), -1, &g.buttonText()); } @@ -146,7 +146,7 @@ void DragBarButton::drawButton( TQPainter* paint ) tqstyle().drawItem( &pixPainter, TQRect( x, 0, tw, pixSize.height() ), AlignLeft | AlignVCenter|ShowPrefix, - tqcolorGroup(), isEnabled(), + colorGroup(), isEnabled(), 0L, t, -1, &g.buttonText()); } @@ -183,7 +183,7 @@ void DragBarButton::setPixmap( const TQPixmap& pixmap ) m_pIcon = new TQPixmap(pixmap); } -TQSize DragBarButton::tqsizeHint() const +TQSize DragBarButton::sizeHint() const { constPolish(); int m = 3; @@ -231,7 +231,7 @@ void DragBarButton::mousePressEvent( TQMouseEvent* ev ) if ( closeRect.contains(ev->pos())) { m_bClose = true; - tqrepaint(); + repaint(); return; } @@ -243,7 +243,7 @@ void DragBarButton::mouseReleaseEvent( TQMouseEvent* ev ) { if ( m_bClose ) { m_bClose = false; - tqrepaint(); + repaint(); TQRect closeRect; if(m_orientation == Qt::Vertical) { @@ -285,14 +285,14 @@ void DragBarButton::enterEvent( TQEvent* ev ) { TQPushButton::enterEvent(ev); m_bMouseOn = true; - tqrepaint(false); + repaint(false); } void DragBarButton::leaveEvent( TQEvent* ev ) { TQPushButton::leaveEvent(ev); m_bMouseOn = false; - tqrepaint(); + repaint(); } void DragBarButton::setOrientation(Qt::Orientation orientation) @@ -300,9 +300,9 @@ void DragBarButton::setOrientation(Qt::Orientation orientation) m_orientation = orientation; if(m_orientation == Qt::Vertical) { - tqsetSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed); + setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed); } else { - tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum); + setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum); } } |