diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kdgantt/KDGanttSemiSizingControl.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt/KDGanttSemiSizingControl.cpp')
-rw-r--r-- | kdgantt/KDGanttSemiSizingControl.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kdgantt/KDGanttSemiSizingControl.cpp b/kdgantt/KDGanttSemiSizingControl.cpp index 47d089506..e6258e907 100644 --- a/kdgantt/KDGanttSemiSizingControl.cpp +++ b/kdgantt/KDGanttSemiSizingControl.cpp @@ -26,8 +26,8 @@ ** licensing are not clear to you. ** ** As a special exception, permission is given to link this program - ** with any edition of Qt, and distribute the resulting executable, - ** without including the source code for Qt in the source distribution. + ** with any edition of TQt, and distribute the resulting executable, + ** without including the source code for TQt in the source distribution. ** **********************************************************************/ @@ -57,15 +57,15 @@ orientation and the control arrow button on top of the controlled widget. - \param parent the parent widget. This parameter is passed to the + \param tqparent the tqparent widget. This parameter is passed to the base class. \param name the internal widget name. This parameter is passed to the base class. */ -KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* parent, +KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* tqparent, const char* name ) : - KDGanttSizingControl( parent, name ), _orient( Horizontal ), + KDGanttSizingControl( tqparent, name ), _orient( Horizontal ), _arrowPos( Before ), _minimizedWidget(0), _maximizedWidget(0) { init(); @@ -78,16 +78,16 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* parent, the controlled widget (depending on the orientation). \param orientation the orientation of the splitter - \param parent the parent widget. This parameter is passed to the + \param tqparent the tqparent widget. This parameter is passed to the base class. \param name the internal widget name. This parameter is passed to the base class. */ -KDGanttSemiSizingControl::KDGanttSemiSizingControl( Orientation orientation, - TQWidget* parent, +KDGanttSemiSizingControl::KDGanttSemiSizingControl( Qt::Orientation orientation, + TQWidget* tqparent, const char* name ) : - KDGanttSizingControl( parent, name ), _orient( orientation ), + KDGanttSizingControl( tqparent, name ), _orient( orientation ), _arrowPos( Before ), _minimizedWidget(0), _maximizedWidget(0) { init(); @@ -101,17 +101,17 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( Orientation orientation, \param arrowPosition specifies whether the control arrow button should appear before or after the controlled widget \param orientation the orientation of the splitter - \param parent the parent widget. This parameter is passed to the + \param tqparent the tqparent widget. This parameter is passed to the base class. \param name the internal widget name. This parameter is passed to the base class. */ KDGanttSemiSizingControl::KDGanttSemiSizingControl( ArrowPosition arrowPosition, - Orientation orientation, - TQWidget* parent, + Qt::Orientation orientation, + TQWidget* tqparent, const char* name ) : - KDGanttSizingControl( parent, name ), _orient( orientation ), + KDGanttSizingControl( tqparent, name ), _orient( orientation ), _arrowPos( arrowPosition ), _minimizedWidget(0), _maximizedWidget(0) { init(); @@ -290,10 +290,10 @@ void KDGanttSemiSizingControl::setup() //------------------------------ Setup the button at the correct possition if ( _arrowPos == After && _orient == Vertical && !isMinimized() ) { butLayout->addStretch( 1 ); - butLayout->addWidget( _but, 0, Qt::AlignLeft ); + butLayout->addWidget( _but, 0, TQt::AlignLeft ); } else { - butLayout->addWidget( _but, 0, Qt::AlignRight ); + butLayout->addWidget( _but, 0, TQt::AlignRight ); butLayout->addStretch( 1 ); } @@ -313,7 +313,7 @@ void KDGanttSemiSizingControl::setup() ************************************************** */ // hack for the usage in KDGantt as pop-up legend widget // for this purpose, - // the _maximizedWidget must be a child of the parent of this widget + // the _maximizedWidget must be a child of the tqparent of this widget if ( isMinimized() ) { widget = _minimizedWidget; |