summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrPenStyleWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter/KPrPenStyleWidget.cpp')
-rw-r--r--kpresenter/KPrPenStyleWidget.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kpresenter/KPrPenStyleWidget.cpp b/kpresenter/KPrPenStyleWidget.cpp
index 6973c2f47..388d7dee5 100644
--- a/kpresenter/KPrPenStyleWidget.cpp
+++ b/kpresenter/KPrPenStyleWidget.cpp
@@ -23,9 +23,9 @@
#include "penstyle.h"
#include "KPrPBPreview.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qvbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
#include <kcolorbutton.h>
#include <kcombobox.h>
@@ -33,18 +33,18 @@
#include <knuminput.h>
-KPrPenStyleWidget::KPrPenStyleWidget( QWidget *parent, const char *name, const KoPenCmd::Pen &pen, bool configureLineEnds )
-: QWidget( parent, name )
+KPrPenStyleWidget::KPrPenStyleWidget( TQWidget *tqparent, const char *name, const KoPenCmd::Pen &pen, bool configureLineEnds )
+: TQWidget( tqparent, name )
, m_pen( pen )
{
- QVBoxLayout *layout = new QVBoxLayout( this );
- layout->addWidget( m_ui = new PenStyleUI( this ) );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
+ tqlayout->addWidget( m_ui = new PenStyleUI( this ) );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- layout->addItem( spacer );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
+ tqlayout->addItem( spacer );
- connect( m_ui->colorChooser, SIGNAL( changed( const QColor& ) ),
- this, SLOT( slotPenChanged() ) );
+ connect( m_ui->colorChooser, TQT_SIGNAL( changed( const TQColor& ) ),
+ this, TQT_SLOT( slotPenChanged() ) );
m_ui->styleCombo->insertItem( i18n( "No Outline" ) );
m_ui->styleCombo->insertItem( "__________" );
@@ -55,11 +55,11 @@ KPrPenStyleWidget::KPrPenStyleWidget( QWidget *parent, const char *name, const K
m_ui->widthInput->setRange( 1, 10, 1, false);
- connect( m_ui->styleCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotPenChanged() ) );
+ connect( m_ui->styleCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotPenChanged() ) );
- connect( m_ui->widthInput, SIGNAL( valueChanged( double ) ),
- this, SLOT( slotPenChanged() ) );
+ connect( m_ui->widthInput, TQT_SIGNAL( valueChanged( double ) ),
+ this, TQT_SLOT( slotPenChanged() ) );
m_ui->lineBeginCombo->insertItem( i18n("Normal") );
m_ui->lineBeginCombo->insertItem( i18n("Arrow") );
@@ -70,8 +70,8 @@ KPrPenStyleWidget::KPrPenStyleWidget( QWidget *parent, const char *name, const K
m_ui->lineBeginCombo->insertItem( i18n("Double Arrow") );
m_ui->lineBeginCombo->insertItem( i18n("Double Line Arrow") );
- connect( m_ui->lineBeginCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotLineBeginChanged() ) );
+ connect( m_ui->lineBeginCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotLineBeginChanged() ) );
m_ui->lineEndCombo->insertItem( i18n("Normal") );
m_ui->lineEndCombo->insertItem( i18n("Arrow") );
@@ -82,8 +82,8 @@ KPrPenStyleWidget::KPrPenStyleWidget( QWidget *parent, const char *name, const K
m_ui->lineEndCombo->insertItem( i18n("Double Arrow") );
m_ui->lineEndCombo->insertItem( i18n("Double Line Arrow") );
- connect( m_ui->lineEndCombo, SIGNAL( activated( int ) ),
- this, SLOT( slotLineEndChanged() ) );
+ connect( m_ui->lineEndCombo, TQT_SIGNAL( activated( int ) ),
+ this, TQT_SLOT( slotLineEndChanged() ) );
if ( !configureLineEnds )
m_ui->arrowGroup->hide();
@@ -153,22 +153,22 @@ KoPen KPrPenStyleWidget::getKPPen() const
switch ( m_ui->styleCombo->currentItem() )
{
case 0:
- pen.setStyle( NoPen );
+ pen.setStyle( Qt::NoPen );
break;
case 1:
- pen.setStyle( SolidLine );
+ pen.setStyle( Qt::SolidLine );
break;
case 2:
- pen.setStyle( DashLine );
+ pen.setStyle( Qt::DashLine );
break;
case 3:
- pen.setStyle( DotLine );
+ pen.setStyle( Qt::DotLine );
break;
case 4:
- pen.setStyle( DashDotLine );
+ pen.setStyle( Qt::DashDotLine );
break;
case 5:
- pen.setStyle( DashDotDotLine );
+ pen.setStyle( Qt::DashDotDotLine );
break;
}