From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdgantt/KDGanttSemiSizingControl.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'kdgantt/KDGanttSemiSizingControl.cpp') diff --git a/kdgantt/KDGanttSemiSizingControl.cpp b/kdgantt/KDGanttSemiSizingControl.cpp index e81b77817..47d089506 100644 --- a/kdgantt/KDGanttSemiSizingControl.cpp +++ b/kdgantt/KDGanttSemiSizingControl.cpp @@ -247,9 +247,9 @@ KDGanttSemiSizingControl::ArrowPosition KDGanttSemiSizingControl::arrowPosition( void KDGanttSemiSizingControl::init() { _but = new TQPushButton( this ); - _but->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); + _but->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); connect( _but, TQT_SIGNAL( clicked() ), this, TQT_SLOT(changeState()) ); - _layout = 0; + _tqlayout = 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 layout - delete _layout; - TQBoxLayout* butLayout; // _layout will delete me + //-------------------------------------------------- Setup tqlayout + delete _tqlayout; + TQBoxLayout* butLayout; // _tqlayout will delete me if ( _orient == Horizontal || isMinimized() ) - _layout = new TQHBoxLayout( this ); + _tqlayout = new TQHBoxLayout( this ); else - _layout = new TQVBoxLayout( this ); + _tqlayout = new TQVBoxLayout( this ); if ( _orient == Vertical && !isMinimized() ) - butLayout = new TQHBoxLayout( _layout ); + butLayout = new TQHBoxLayout( _tqlayout ); else - butLayout = new TQVBoxLayout( _layout ); + butLayout = new TQVBoxLayout( _tqlayout ); @@ -306,9 +306,9 @@ void KDGanttSemiSizingControl::setup() widget = _maximizedWidget; if( widget ) { if ( _arrowPos == Before || _orient == Vertical && !isMinimized() ) - _layout->addWidget( widget, 1 ); + _tqlayout->addWidget( widget, 1 ); else - _layout->insertWidget( 0, widget, 1 ); + _tqlayout->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 == Vertical && !isMinimized() ) - _layout->addWidget( widget, 1 ); + _tqlayout->addWidget( widget, 1 ); else - _layout->insertWidget( 0, widget, 1 ); + _tqlayout->insertWidget( 0, widget, 1 ); } } else { if ( _arrowPos == Before || _orient == Vertical && !isMinimized() ) - _layout->addStretch( 1 ); + _tqlayout->addStretch( 1 ); else - _layout->insertStretch( 0, 1 ); + _tqlayout->insertStretch( 0, 1 ); widget = _maximizedWidget; // the following is only the special case // arrowPos == Before and _orient == Vertical @@ -395,7 +395,7 @@ TQPixmap KDGanttSemiSizingControl::pixmap( Direction direction ) { TQPainter p( &pix ); p.setPen( black ); - p.setBrush( colorGroup().button() ); + p.setBrush( tqcolorGroup().button() ); p.drawPolygon( arr ); TQBitmap bit( s, s ); bit.fill( color0 ); -- cgit v1.2.1