From ba2a3ce341c0c71bbbcf350fcbcd60c552220b31 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 21 Dec 2011 14:23:13 -0600 Subject: Rename obsolete tq methods to standard names --- kdgantt/KDGanttSemiSizingControl.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kdgantt/KDGanttSemiSizingControl.cpp') diff --git a/kdgantt/KDGanttSemiSizingControl.cpp b/kdgantt/KDGanttSemiSizingControl.cpp index 199fb2c72..dcc2f40d2 100644 --- a/kdgantt/KDGanttSemiSizingControl.cpp +++ b/kdgantt/KDGanttSemiSizingControl.cpp @@ -249,7 +249,7 @@ void KDGanttSemiSizingControl::init() _but = new TQPushButton( this ); _but->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); connect( _but, TQT_SIGNAL( clicked() ), this, TQT_SLOT(changeState()) ); - _tqlayout = 0; + _layout = 0; TQWhatsThis::add( _but, "Click on this button to show the \nlegend at the bottom of the widget"); TQToolTip::add( _but, "Show / hide legend"); @@ -258,19 +258,19 @@ void KDGanttSemiSizingControl::init() void KDGanttSemiSizingControl::setup() { - //-------------------------------------------------- Setup tqlayout - delete _tqlayout; - TQBoxLayout* butLayout; // _tqlayout will delete me + //-------------------------------------------------- Setup layout + delete _layout; + TQBoxLayout* butLayout; // _layout will delete me if ( _orient == Qt::Horizontal || isMinimized() ) - _tqlayout = new TQHBoxLayout( this ); + _layout = new TQHBoxLayout( this ); else - _tqlayout = new TQVBoxLayout( this ); + _layout = new TQVBoxLayout( this ); if ( _orient == Qt::Vertical && !isMinimized() ) - butLayout = new TQHBoxLayout( _tqlayout ); + butLayout = new TQHBoxLayout( _layout ); else - butLayout = new TQVBoxLayout( _tqlayout ); + butLayout = new TQVBoxLayout( _layout ); @@ -306,9 +306,9 @@ void KDGanttSemiSizingControl::setup() widget = _maximizedWidget; if( widget ) { if ( _arrowPos == Before || _orient == Qt::Vertical && !isMinimized() ) - _tqlayout->addWidget( widget, 1 ); + _layout->addWidget( widget, 1 ); else - _tqlayout->insertWidget( 0, widget, 1 ); + _layout->insertWidget( 0, widget, 1 ); } ************************************************** */ // hack for the usage in KDGantt as pop-up legend widget @@ -319,16 +319,16 @@ void KDGanttSemiSizingControl::setup() widget = _minimizedWidget; if( widget ) { if ( _arrowPos == Before || _orient == Qt::Vertical && !isMinimized() ) - _tqlayout->addWidget( widget, 1 ); + _layout->addWidget( widget, 1 ); else - _tqlayout->insertWidget( 0, widget, 1 ); + _layout->insertWidget( 0, widget, 1 ); } } else { if ( _arrowPos == Before || _orient == Qt::Vertical && !isMinimized() ) - _tqlayout->addStretch( 1 ); + _layout->addStretch( 1 ); else - _tqlayout->insertStretch( 0, 1 ); + _layout->insertStretch( 0, 1 ); widget = _maximizedWidget; // the following is only the special case // arrowPos == Before and _orient == Qt::Vertical -- cgit v1.2.1