summaryrefslogtreecommitdiffstats
path: root/karbon/widgets
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
commit2d6954f69caf63ed5057bd8e1405a65d7d970292 (patch)
tree88e6436b2e81d4e68313f02a9021054252e14cc4 /karbon/widgets
parentf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (diff)
downloadkoffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.tar.gz
koffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'karbon/widgets')
-rw-r--r--karbon/widgets/vcolorslider.cc10
-rw-r--r--karbon/widgets/vreference.cc6
-rw-r--r--karbon/widgets/vsmallpreview.cc14
-rw-r--r--karbon/widgets/vtranslate.cc38
4 files changed, 34 insertions, 34 deletions
diff --git a/karbon/widgets/vcolorslider.cc b/karbon/widgets/vcolorslider.cc
index 3e2af4f0..25cb58e6 100644
--- a/karbon/widgets/vcolorslider.cc
+++ b/karbon/widgets/vcolorslider.cc
@@ -53,15 +53,15 @@ VColorSlider::~VColorSlider()
void VColorSlider::init()
{
m_isDragging = false;
- TQHBoxLayout *tqlayout = new TQHBoxLayout( this, 3 );
+ TQHBoxLayout *layout = new TQHBoxLayout( this, 3 );
m_label = new TQLabel( this );
m_gradientSelect = new KGradientSelector( Qt::Horizontal, this );
m_spinBox = new KIntSpinBox( this );
- tqlayout->addWidget( m_label );
- tqlayout->addWidget( m_gradientSelect, 2 );
- tqlayout->addWidget( m_spinBox );
+ layout->addWidget( m_label );
+ layout->addWidget( m_gradientSelect, 2 );
+ layout->addWidget( m_spinBox );
setValue( 0 );
setMinValue( 0 );
@@ -72,7 +72,7 @@ void VColorSlider::init()
m_gradientSelect->installEventFilter( this );
- tqlayout->activate();
+ layout->activate();
}
void VColorSlider::setLabel( const TQString& label )
diff --git a/karbon/widgets/vreference.cc b/karbon/widgets/vreference.cc
index f400fc13..c8580000 100644
--- a/karbon/widgets/vreference.cc
+++ b/karbon/widgets/vreference.cc
@@ -28,7 +28,7 @@
VReference::VReference( TQWidget *parent, const char *name ) : TQFrame ( parent, name )
{
- TQVBoxLayout* tqlayout = new TQVBoxLayout( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( this );
mButtonGroup = new TQButtonGroup (3,Qt::Vertical, this );
TQRadioButton* radio = new TQRadioButton ( mButtonGroup );
mButtonGroup->insert( radio, TopLeft );
@@ -54,8 +54,8 @@ VReference::VReference( TQWidget *parent, const char *name ) : TQFrame ( parent,
this, TQT_SLOT( setReferencePoint( int ) ) );
mButtonGroup->setButton( Center );
- tqlayout->addWidget( mButtonGroup );
- tqlayout->activate();
+ layout->addWidget( mButtonGroup );
+ layout->activate();
setReferencePoint( Center );
}
diff --git a/karbon/widgets/vsmallpreview.cc b/karbon/widgets/vsmallpreview.cc
index 6e35d921..afd48d71 100644
--- a/karbon/widgets/vsmallpreview.cc
+++ b/karbon/widgets/vsmallpreview.cc
@@ -42,21 +42,21 @@
VSmallPreview::VSmallPreview( TQWidget* parent, const char* name )
: TQWidget( parent, name )
{
- /* Create widget tqlayout */
- TQHBoxLayout *tqlayout = new TQHBoxLayout( this, 4 );
+ /* Create widget layout */
+ TQHBoxLayout *layout = new TQHBoxLayout( this, 4 );
m_strokeLabel = new TQLabel( i18n( "Stroke: None" ), this );
- tqlayout->addWidget( m_strokeLabel );
+ layout->addWidget( m_strokeLabel );
m_strokeFrame = new TQFrame( this );
m_strokeFrame->setFixedWidth ( FRAMEWIDTH );
m_strokeFrame->setFrameStyle( TQFrame::GroupBoxPanel | TQFrame::Plain );
- tqlayout->addWidget( m_strokeFrame );
+ layout->addWidget( m_strokeFrame );
m_fillLabel = new TQLabel( i18n( "Fill: None" ), this );
- tqlayout->addWidget( m_fillLabel );
+ layout->addWidget( m_fillLabel );
m_fillFrame = new TQFrame( this );
m_fillFrame->setFixedWidth ( FRAMEWIDTH );
m_fillFrame->setFrameStyle( TQFrame::GroupBoxPanel | TQFrame::Plain );
- tqlayout->addWidget( m_fillFrame );
- tqlayout->activate();
+ layout->addWidget( m_fillFrame );
+ layout->activate();
m_fill = VFill();
m_stroke = VStroke();
diff --git a/karbon/widgets/vtranslate.cc b/karbon/widgets/vtranslate.cc
index e13da689..d6b288ba 100644
--- a/karbon/widgets/vtranslate.cc
+++ b/karbon/widgets/vtranslate.cc
@@ -34,38 +34,38 @@ VTranslate::VTranslate( TQWidget* parent, const char* name )
{
setCaption( i18n( "Translate" ) );
- TQVBoxLayout *maintqlayout = new TQVBoxLayout(this, 7);
- maintqlayout->addSpacing(5);
+ TQVBoxLayout *mainlayout = new TQVBoxLayout(this, 7);
+ mainlayout->addSpacing(5);
- TQGridLayout *inputtqlayout = new TQGridLayout(this, 5, 3);
- maintqlayout->addLayout(inputtqlayout);
+ TQGridLayout *inputlayout = new TQGridLayout(this, 5, 3);
+ mainlayout->addLayout(inputlayout);
m_labelX = new TQLabel(i18n("X:"), this);
- inputtqlayout->addWidget(m_labelX, 0, 0);
+ inputlayout->addWidget(m_labelX, 0, 0);
labely = new TQLabel(i18n("Y:"), this);
- inputtqlayout->addWidget(labely, 1, 0);
- inputtqlayout->addColSpacing(1, 1);
- inputtqlayout->addColSpacing(3, 5);
+ inputlayout->addWidget(labely, 1, 0);
+ inputlayout->addColSpacing(1, 1);
+ inputlayout->addColSpacing(3, 5);
m_inputX = new KDoubleNumInput( this );
m_inputX->setRange(-10000.00, 10000.00, 1.00, false); //range is just for example - for now :-)
- inputtqlayout->addWidget(m_inputX, 0, 2);
+ inputlayout->addWidget(m_inputX, 0, 2);
m_inputY = new KDoubleNumInput( this );
m_inputY->setRange(-10000.00, 10000.00, 1.00, false);
- inputtqlayout->addWidget(m_inputY, 1, 2);
+ inputlayout->addWidget(m_inputY, 1, 2);
m_labelUnit1 = new TQLabel("", this);
- inputtqlayout->addWidget(m_labelUnit1, 0, 4);
+ inputlayout->addWidget(m_labelUnit1, 0, 4);
m_labelUnit2 = new TQLabel("", this);
- inputtqlayout->addWidget(m_labelUnit2, 1, 4);
- maintqlayout->addSpacing(5);
+ inputlayout->addWidget(m_labelUnit2, 1, 4);
+ mainlayout->addSpacing(5);
m_checkBoxPosition = new TQCheckBox(i18n("Relative &position"), this);
- maintqlayout->addWidget(m_checkBoxPosition);
- maintqlayout->addSpacing(5);
+ mainlayout->addWidget(m_checkBoxPosition);
+ mainlayout->addSpacing(5);
m_buttonDuplicate = new TQPushButton(i18n("&Duplicate"), this);
- maintqlayout->addWidget(m_buttonDuplicate);
- maintqlayout->addSpacing(1);
+ mainlayout->addWidget(m_buttonDuplicate);
+ mainlayout->addSpacing(1);
m_buttonApply = new KPushButton(KStdGuiItem::apply(), this);
- maintqlayout->addWidget(m_buttonApply);
+ mainlayout->addWidget(m_buttonApply);
- maintqlayout->activate();
+ mainlayout->activate();
setFixedSize(baseSize()); //Set the size tp fixed values
}