summaryrefslogtreecommitdiffstats
path: root/karbon/widgets/vtypebuttonbox.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /karbon/widgets/vtypebuttonbox.cc
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karbon/widgets/vtypebuttonbox.cc')
-rw-r--r--karbon/widgets/vtypebuttonbox.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/karbon/widgets/vtypebuttonbox.cc b/karbon/widgets/vtypebuttonbox.cc
index 4a23d6dd..f182341d 100644
--- a/karbon/widgets/vtypebuttonbox.cc
+++ b/karbon/widgets/vtypebuttonbox.cc
@@ -203,9 +203,9 @@ static const char* const buttonpattern[]={
#endif
-#include <qpixmap.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
+#include <tqpixmap.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
#include <klocale.h>
@@ -217,48 +217,48 @@ static const char* const buttonpattern[]={
#include "vtypebuttonbox.h"
VTypeButtonBox::VTypeButtonBox( KarbonPart *part,
- QWidget* parent, const char* name )
- : QHButtonGroup( parent, name ),
+ TQWidget* tqparent, const char* name )
+ : TQHButtonGroup( tqparent, name ),
m_part( part ), m_isStrokeManipulator( false )
{
- setMaximumWidth( parent->width() - 2 );
+ setMaximumWidth( tqparent->width() - 2 );
// The button for no fill
- QToolButton* button = new QToolButton( this );
- button->setPixmap( QPixmap( (const char **) buttonnone ) );
+ TQToolButton* button = new TQToolButton( this );
+ button->setPixmap( TQPixmap( (const char **) buttonnone ) );
button->setMaximumWidth( 14 );
button->setMaximumHeight( 14 );
- QToolTip::add( button, i18n( "None" ) );
+ TQToolTip::add( button, i18n( "None" ) );
insert( button, none );
// The button for solid fill
- button = new QToolButton( this );
- button->setPixmap( QPixmap( (const char **) buttonsolid ) );
+ button = new TQToolButton( this );
+ button->setPixmap( TQPixmap( (const char **) buttonsolid ) );
button->setMaximumWidth( 14 );
button->setMaximumHeight( 14 );
- QToolTip::add( button, i18n( "Solid" ) );
+ TQToolTip::add( button, i18n( "Solid" ) );
insert( button, solid );
// The button for gradient fill
- button = new QToolButton( this );
- button->setPixmap( QPixmap( (const char **) buttongradient ) );
+ button = new TQToolButton( this );
+ button->setPixmap( TQPixmap( (const char **) buttongradient ) );
button->setMaximumWidth( 14 );
button->setMaximumHeight( 14 );
- QToolTip::add( button, i18n( "Gradient" ) );
+ TQToolTip::add( button, i18n( "Gradient" ) );
insert( button, gradient );
// The button for pattern fill
- button = new QToolButton( this );
- button->setPixmap( QPixmap( (const char **) buttonpattern ) );
+ button = new TQToolButton( this );
+ button->setPixmap( TQPixmap( (const char **) buttonpattern ) );
button->setMaximumWidth( 14 );
button->setMaximumHeight( 14 );
- QToolTip::add( button, i18n( "Pattern" ) );
+ TQToolTip::add( button, i18n( "Pattern" ) );
insert( button, pattern );
setInsideMargin( 1 );
setInsideSpacing( 1 );
- connect( this, SIGNAL( clicked( int ) ),
- this, SLOT( slotButtonPressed( int ) ) );
+ connect( this, TQT_SIGNAL( clicked( int ) ),
+ this, TQT_SLOT( slotButtonPressed( int ) ) );
}
void