diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /karbon/dockers/vstrokedocker.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-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/dockers/vstrokedocker.cc')
-rw-r--r-- | karbon/dockers/vstrokedocker.cc | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/karbon/dockers/vstrokedocker.cc b/karbon/dockers/vstrokedocker.cc index 200c9dc9..fb3dce28 100644 --- a/karbon/dockers/vstrokedocker.cc +++ b/karbon/dockers/vstrokedocker.cc @@ -18,12 +18,12 @@ * Boston, MA 02110-1301, USA. */ -#include <qhbuttongroup.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qpushbutton.h> -#include <qwidget.h> -#include <qtooltip.h> +#include <tqhbuttongroup.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqpushbutton.h> +#include <tqwidget.h> +#include <tqtooltip.h> #include <kiconloader.h> #include <klocale.h> @@ -39,72 +39,72 @@ #include "vstrokedocker.h" -VStrokeDocker::VStrokeDocker( KarbonPart* part, KarbonView* parent, const char* /*name*/ ) - : QWidget(), m_part ( part ), m_view( parent ) +VStrokeDocker::VStrokeDocker( KarbonPart* part, KarbonView* tqparent, const char* /*name*/ ) + : TQWidget(), m_part ( part ), m_view( tqparent ) { setCaption( i18n( "Stroke Properties" ) ); - QPushButton *button; + TQPushButton *button; - QGridLayout *mainLayout = new QGridLayout( this, 4, 2 ); + TQGridLayout *mainLayout = new TQGridLayout( this, 4, 2 ); - QLabel* widthLabel = new QLabel( i18n ( "stroke width", "Width:" ), this ); + TQLabel* widthLabel = new TQLabel( i18n ( "stroke width", "Width:" ), this ); mainLayout->addWidget( widthLabel, 0, 0 ); // set min/max/step and value in points, then set actual unit m_setLineWidth = new KoUnitDoubleSpinBox( this, 0.0, 1000.0, 0.5, 1.0, KoUnit::U_PT, 2 ); m_setLineWidth->setUnit( part->unit() ); - QToolTip::add( m_setLineWidth, i18n( "Set line width of actual selection" ) ); + TQToolTip::add( m_setLineWidth, i18n( "Set line width of actual selection" ) ); mainLayout->addWidget ( m_setLineWidth, 0, 1 ); - connect( m_setLineWidth, SIGNAL( valueChanged( double ) ), this, SLOT( widthChanged() ) ); + connect( m_setLineWidth, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( widthChanged() ) ); - QLabel* capLabel = new QLabel( i18n ( "Cap:" ), this ); + TQLabel* capLabel = new TQLabel( i18n ( "Cap:" ), this ); mainLayout->addWidget( capLabel, 1, 0 ); - m_capGroup = new QHButtonGroup( this ); - m_capGroup->setFrameShape( QFrame::NoFrame ); + m_capGroup = new TQHButtonGroup( this ); + m_capGroup->setFrameShape( TQFrame::NoFrame ); m_capGroup->setInsideMargin( 1 ); m_capGroup->setExclusive( true ); - button = new QPushButton( "", m_capGroup ); + button = new TQPushButton( "", m_capGroup ); button->setPixmap( SmallIcon( "cap_butt" ) ); button->setToggleButton( true ); - QToolTip::add( button, i18n( "Butt cap" ) ); + TQToolTip::add( button, i18n( "Butt cap" ) ); m_capGroup->insert( button ); - button = new QPushButton( "", m_capGroup ); + button = new TQPushButton( "", m_capGroup ); button->setPixmap( SmallIcon( "cap_round" ) ); button->setToggleButton( true ); - QToolTip::add( button, i18n( "Round cap" ) ); + TQToolTip::add( button, i18n( "Round cap" ) ); m_capGroup->insert( button ); - button = new QPushButton( "", m_capGroup ); + button = new TQPushButton( "", m_capGroup ); button->setPixmap( SmallIcon( "cap_square" ) ); button->setToggleButton( true ); - QToolTip::add( button, i18n( "Square cap" ) ); + TQToolTip::add( button, i18n( "Square cap" ) ); m_capGroup->insert( button ); mainLayout->addWidget( m_capGroup, 1, 1 ); - connect( m_capGroup, SIGNAL( clicked( int ) ), this, SLOT( slotCapChanged( int ) ) ); + connect( m_capGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotCapChanged( int ) ) ); - QLabel* joinLabel = new QLabel( i18n ( "Join:" ), this ); + TQLabel* joinLabel = new TQLabel( i18n ( "Join:" ), this ); mainLayout->addWidget( joinLabel, 2, 0 ); - m_joinGroup = new QHButtonGroup( this ); - m_joinGroup->setFrameShape( QFrame::NoFrame ); + m_joinGroup = new TQHButtonGroup( this ); + m_joinGroup->setFrameShape( TQFrame::NoFrame ); m_joinGroup->setInsideMargin( 1 ); m_joinGroup->setExclusive( true ); - button = new QPushButton( "", m_joinGroup ); + button = new TQPushButton( "", m_joinGroup ); button->setPixmap( SmallIcon( "join_miter" ) ); button->setToggleButton( true ); - QToolTip::add( button, i18n( "Miter join" ) ); + TQToolTip::add( button, i18n( "Miter join" ) ); m_joinGroup->insert( button ); - button = new QPushButton( "", m_joinGroup ); + button = new TQPushButton( "", m_joinGroup ); button->setPixmap( SmallIcon( "join_round" ) ); button->setToggleButton( true ); - QToolTip::add( button, i18n( "Round join" ) ); + TQToolTip::add( button, i18n( "Round join" ) ); m_joinGroup->insert( button ); - button = new QPushButton( "", m_joinGroup ); + button = new TQPushButton( "", m_joinGroup ); button->setPixmap( SmallIcon( "join_bevel" ) ); button->setToggleButton( true ); - QToolTip::add( button, i18n( "Bevel join" ) ); + TQToolTip::add( button, i18n( "Bevel join" ) ); m_joinGroup->insert( button ); mainLayout->addWidget( m_joinGroup, 2, 1 ); - connect( m_joinGroup, SIGNAL( clicked( int ) ), this, SLOT( slotJoinChanged( int ) ) ); + connect( m_joinGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotJoinChanged( int ) ) ); mainLayout->setRowStretch( 3, 1 ); mainLayout->setColStretch( 1, 1 ); @@ -149,9 +149,9 @@ void VStrokeDocker::slotJoinChanged( int ID ) void VStrokeDocker::updateDocker() { - disconnect( m_setLineWidth, SIGNAL( valueChanged( double ) ), this, SLOT( widthChanged() ) ); - disconnect( m_capGroup, SIGNAL( clicked( int ) ), this, SLOT( slotCapChanged( int ) ) ); - disconnect( m_joinGroup, SIGNAL( clicked( int ) ), this, SLOT( slotJoinChanged( int ) ) ); + disconnect( m_setLineWidth, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( widthChanged() ) ); + disconnect( m_capGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotCapChanged( int ) ) ); + disconnect( m_joinGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotJoinChanged( int ) ) ); switch( m_stroke.lineCap() ) { @@ -175,9 +175,9 @@ void VStrokeDocker::updateDocker() m_setLineWidth->changeValue( m_stroke.lineWidth() ); - connect( m_setLineWidth, SIGNAL( valueChanged( double ) ), this, SLOT( widthChanged() ) ); - connect( m_capGroup, SIGNAL( clicked( int ) ), this, SLOT( slotCapChanged( int ) ) ); - connect( m_joinGroup, SIGNAL( clicked( int ) ), this, SLOT( slotJoinChanged( int ) ) ); + connect( m_setLineWidth, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( widthChanged() ) ); + connect( m_capGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotCapChanged( int ) ) ); + connect( m_joinGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotJoinChanged( int ) ) ); } void VStrokeDocker::widthChanged() @@ -197,15 +197,15 @@ void VStrokeDocker::setStroke( const VStroke &stroke ) void VStrokeDocker::setUnit( KoUnit::Unit unit ) { - disconnect( m_setLineWidth, SIGNAL( valueChanged( double ) ), this, SLOT( widthChanged() ) ); - disconnect( m_capGroup, SIGNAL( clicked( int ) ), this, SLOT( slotCapChanged( int ) ) ); - disconnect( m_joinGroup, SIGNAL( clicked( int ) ), this, SLOT( slotJoinChanged( int ) ) ); + disconnect( m_setLineWidth, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( widthChanged() ) ); + disconnect( m_capGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotCapChanged( int ) ) ); + disconnect( m_joinGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotJoinChanged( int ) ) ); m_setLineWidth->setUnit( unit ); - connect( m_setLineWidth, SIGNAL( valueChanged( double ) ), this, SLOT( widthChanged() ) ); - connect( m_capGroup, SIGNAL( clicked( int ) ), this, SLOT( slotCapChanged( int ) ) ); - connect( m_joinGroup, SIGNAL( clicked( int ) ), this, SLOT( slotJoinChanged( int ) ) ); + connect( m_setLineWidth, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( widthChanged() ) ); + connect( m_capGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotCapChanged( int ) ) ); + connect( m_joinGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotJoinChanged( int ) ) ); } #include "vstrokedocker.moc" |