summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/stencilbarbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/stencilbarbutton.cpp')
-rw-r--r--kivio/kiviopart/stencilbarbutton.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kivio/kiviopart/stencilbarbutton.cpp b/kivio/kiviopart/stencilbarbutton.cpp
index 39fb22ef..d3d30dae 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 = colorGroup();
+ const TQColorGroup& g = tqcolorGroup();
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 = colorGroup();
- tqstyle().drawControl( TQStyle::CE_PushButton, &pixPainter, this, TQRect(0, 0, pixSize.width(), pixSize.height()), colorGroup() );
+ const TQColorGroup& g = tqcolorGroup();
+ tqstyle().tqdrawControl( TQStyle::CE_PushButton, &pixPainter, this, TQRect(0, 0, pixSize.width(), pixSize.height()), tqcolorGroup() );
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,
- colorGroup(), isEnabled(),
+ tqcolorGroup(), 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,
- colorGroup(), isEnabled(),
+ tqcolorGroup(), isEnabled(),
0L, t, -1,
&g.buttonText());
}
@@ -183,7 +183,7 @@ void DragBarButton::setPixmap( const TQPixmap& pixmap )
m_pIcon = new TQPixmap(pixmap);
}
-TQSize DragBarButton::sizeHint() const
+TQSize DragBarButton::tqsizeHint() const
{
constPolish();
int m = 3;
@@ -231,7 +231,7 @@ void DragBarButton::mousePressEvent( TQMouseEvent* ev )
if ( closeRect.contains(ev->pos())) {
m_bClose = true;
- repaint();
+ tqrepaint();
return;
}
@@ -243,7 +243,7 @@ void DragBarButton::mouseReleaseEvent( TQMouseEvent* ev )
{
if ( m_bClose ) {
m_bClose = false;
- repaint();
+ tqrepaint();
TQRect closeRect;
if(m_orientation == Qt::Vertical) {
@@ -285,14 +285,14 @@ void DragBarButton::enterEvent( TQEvent* ev )
{
TQPushButton::enterEvent(ev);
m_bMouseOn = true;
- repaint(false);
+ tqrepaint(false);
}
void DragBarButton::leaveEvent( TQEvent* ev )
{
TQPushButton::leaveEvent(ev);
m_bMouseOn = false;
- repaint();
+ tqrepaint();
}
void DragBarButton::setOrientation(Qt::Orientation orientation)
@@ -300,9 +300,9 @@ void DragBarButton::setOrientation(Qt::Orientation orientation)
m_orientation = orientation;
if(m_orientation == Qt::Vertical) {
- setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed);
+ tqsetSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed);
} else {
- setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum);
+ tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Minimum);
}
}