summaryrefslogtreecommitdiffstats
path: root/kdeui/kcolorbutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeui/kcolorbutton.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kcolorbutton.cpp')
-rw-r--r--kdeui/kcolorbutton.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kdeui/kcolorbutton.cpp b/kdeui/kcolorbutton.cpp
index 3cccbe1df..e4d8f3340 100644
--- a/kdeui/kcolorbutton.cpp
+++ b/kdeui/kcolorbutton.cpp
@@ -85,7 +85,7 @@ void KColorButton::setColor( const TQColor &c )
{
if ( col != c ) {
col = c;
- repaint( false );
+ tqrepaint( false );
emit changed( col );
}
}
@@ -108,29 +108,29 @@ void KColorButton::drawButtonLabel( TQPainter *painter )
TQRect r = style().subRect( TQStyle::SR_PushButtonContents, this );
r.rect(&x, &y, &w, &h);
- int margin = style().pixelMetric( TQStyle::PM_ButtonMargin, this );
+ int margin = style().tqpixelMetric( TQStyle::PM_ButtonMargin, this );
x += margin;
y += margin;
w -= 2*margin;
h -= 2*margin;
if (isOn() || isDown()) {
- x += style().pixelMetric( TQStyle::PM_ButtonShiftHorizontal, this );
- y += style().pixelMetric( TQStyle::PM_ButtonShiftVertical, this );
+ x += style().tqpixelMetric( TQStyle::PM_ButtonShiftHorizontal, this );
+ y += style().tqpixelMetric( TQStyle::PM_ButtonShiftVertical, this );
}
TQColor fillCol = isEnabled() ? col : backgroundColor();
- qDrawShadePanel( painter, x, y, w, h, colorGroup(), true, 1, NULL);
+ qDrawShadePanel( painter, x, y, w, h, tqcolorGroup(), true, 1, NULL);
if ( fillCol.isValid() )
painter->fillRect( x+1, y+1, w-2, h-2, fillCol );
if ( hasFocus() ) {
TQRect focusRect = style().subRect( TQStyle::SR_PushButtonFocusRect, this );
- style().drawPrimitive( TQStyle::PE_FocusRect, painter, focusRect, colorGroup() );
+ style().drawPrimitive( TQStyle::PE_FocusRect, painter, focusRect, tqcolorGroup() );
}
}
-TQSize KColorButton::sizeHint() const
+TQSize KColorButton::tqsizeHint() const
{
return style().sizeFromContents(TQStyle::CT_PushButton, this, TQSize(40, 15)).
expandedTo(TQApplication::globalStrut());
@@ -153,11 +153,11 @@ void KColorButton::keyPressEvent( TQKeyEvent *e )
{
KKey key( e );
- if ( KStdAccel::copy().contains( key ) ) {
+ if ( KStdAccel::copy().tqcontains( key ) ) {
TQMimeSource* mime = new KColorDrag( color() );
TQApplication::clipboard()->setData( mime, QClipboard::Clipboard );
}
- else if ( KStdAccel::paste().contains( key ) ) {
+ else if ( KStdAccel::paste().tqcontains( key ) ) {
TQColor color;
KColorDrag::decode( TQApplication::clipboard()->data( QClipboard::Clipboard ), color );
setColor( color );