summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoUnitWidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui/KoUnitWidgets.cpp')
-rw-r--r--lib/kofficeui/KoUnitWidgets.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kofficeui/KoUnitWidgets.cpp b/lib/kofficeui/KoUnitWidgets.cpp
index 14b92ec6..2a2c854e 100644
--- a/lib/kofficeui/KoUnitWidgets.cpp
+++ b/lib/kofficeui/KoUnitWidgets.cpp
@@ -379,48 +379,48 @@ double KoUnitDoubleComboBox::value( void ) const
KoUnitDoubleSpinComboBox::KoUnitDoubleSpinComboBox( TQWidget *parent, const char *name )
: TQWidget( parent ), m_step( 1.0 )
{
- TQGridLayout *tqlayout = new TQGridLayout( this, 2, 3 );
- //tqlayout->setMargin( 2 );
+ TQGridLayout *layout = new TQGridLayout( this, 2, 3 );
+ //layout->setMargin( 2 );
TQPushButton *up = new TQPushButton( "+", this );
//up->setFlat( true );
up->setMaximumHeight( 15 );
up->setMaximumWidth( 15 );
- tqlayout->addWidget( up, 0, 0 );
+ layout->addWidget( up, 0, 0 );
connect( up, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotUpClicked() ) );
TQPushButton *down = new TQPushButton( "-", this );
down->setMaximumHeight( 15 );
down->setMaximumWidth( 15 );
- tqlayout->addWidget( down, 1, 0 );
+ layout->addWidget( down, 1, 0 );
connect( down, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotDownClicked() ) );
m_combo = new KoUnitDoubleComboBox( this, KoUnit::ptToUnit( 0.0, KoUnit::U_PT ), KoUnit::ptToUnit( 9999.99, KoUnit::U_PT ), 0.0, KoUnit::U_PT, 2, name );
connect( m_combo, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SIGNAL( valueChanged( double ) ) );
- tqlayout->addMultiCellWidget( m_combo, 0, 1, 2, 2 );
+ layout->addMultiCellWidget( m_combo, 0, 1, 2, 2 );
}
KoUnitDoubleSpinComboBox::KoUnitDoubleSpinComboBox( TQWidget *parent, double lower, double upper, double step, double value,
KoUnit::Unit unit, unsigned int precision, const char *name )
: TQWidget( parent ), m_step( step )//, m_lowerInPoints( lower ), m_upperInPoints( upper )
{
- TQGridLayout *tqlayout = new TQGridLayout( this, 2, 3 );
- //tqlayout->setMargin( 2 );
+ TQGridLayout *layout = new TQGridLayout( this, 2, 3 );
+ //layout->setMargin( 2 );
TQPushButton *up = new TQPushButton( "+", this );
//up->setFlat( true );
up->setMaximumHeight( 15 );
up->setMaximumWidth( 15 );
- tqlayout->addWidget( up, 0, 0 );
+ layout->addWidget( up, 0, 0 );
connect( up, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotUpClicked() ) );
TQPushButton *down = new TQPushButton( "-", this );
down->setMaximumHeight( 15 );
down->setMaximumWidth( 15 );
- tqlayout->addWidget( down, 1, 0 );
+ layout->addWidget( down, 1, 0 );
connect( down, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotDownClicked() ) );
m_combo = new KoUnitDoubleComboBox( this, KoUnit::ptToUnit( lower, unit ), KoUnit::ptToUnit( upper, unit ), value, unit, precision, name );
connect( m_combo, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SIGNAL( valueChanged( double ) ) );
- tqlayout->addMultiCellWidget( m_combo, 0, 1, 2, 2 );
+ layout->addMultiCellWidget( m_combo, 0, 1, 2, 2 );
}
void