summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttSemiSizingControl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kdgantt/KDGanttSemiSizingControl.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
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
Diffstat (limited to 'kdgantt/KDGanttSemiSizingControl.cpp')
-rw-r--r--kdgantt/KDGanttSemiSizingControl.cpp32
1 files changed, 16 insertions, 16 deletions
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 );