summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttSemiSizingControl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kdgantt/KDGanttSemiSizingControl.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt/KDGanttSemiSizingControl.cpp')
-rw-r--r--kdgantt/KDGanttSemiSizingControl.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kdgantt/KDGanttSemiSizingControl.cpp b/kdgantt/KDGanttSemiSizingControl.cpp
index 916296627..e81b77817 100644
--- a/kdgantt/KDGanttSemiSizingControl.cpp
+++ b/kdgantt/KDGanttSemiSizingControl.cpp
@@ -33,12 +33,12 @@
#include "KDGanttSemiSizingControl.h"
-#include <qpushbutton.h>
-#include <qpointarray.h>
-#include <qpainter.h>
-#include <qbitmap.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqpushbutton.h>
+#include <tqpointarray.h>
+#include <tqpainter.h>
+#include <tqbitmap.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
/*!
\class KDGanttSemiSizingControl KDGanttSemiSizingControl.h
This class provides exactly one child widget with a button for
@@ -63,7 +63,7 @@
the base class.
*/
-KDGanttSemiSizingControl::KDGanttSemiSizingControl( QWidget* parent,
+KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* parent,
const char* name ) :
KDGanttSizingControl( parent, name ), _orient( Horizontal ),
_arrowPos( Before ), _minimizedWidget(0), _maximizedWidget(0)
@@ -85,7 +85,7 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( QWidget* parent,
*/
KDGanttSemiSizingControl::KDGanttSemiSizingControl( Orientation orientation,
- QWidget* parent,
+ TQWidget* parent,
const char* name ) :
KDGanttSizingControl( parent, name ), _orient( orientation ),
_arrowPos( Before ), _minimizedWidget(0), _maximizedWidget(0)
@@ -109,7 +109,7 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( Orientation orientation,
KDGanttSemiSizingControl::KDGanttSemiSizingControl( ArrowPosition arrowPosition,
Orientation orientation,
- QWidget* parent,
+ TQWidget* parent,
const char* name ) :
KDGanttSizingControl( parent, name ), _orient( orientation ),
_arrowPos( arrowPosition ), _minimizedWidget(0), _maximizedWidget(0)
@@ -127,7 +127,7 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( ArrowPosition arrowPosition,
\sa minimizedWidget()
*/
-void KDGanttSemiSizingControl::setMinimizedWidget( QWidget* widget )
+void KDGanttSemiSizingControl::setMinimizedWidget( TQWidget* widget )
{
_minimizedWidget = widget;
if( _minimizedWidget ) _minimizedWidget->hide();
@@ -143,7 +143,7 @@ void KDGanttSemiSizingControl::setMinimizedWidget( QWidget* widget )
\sa setMinimizedWidget()
*/
-QWidget* KDGanttSemiSizingControl::minimizedWidget() const
+TQWidget* KDGanttSemiSizingControl::minimizedWidget() const
{
return _minimizedWidget;
}
@@ -157,7 +157,7 @@ QWidget* KDGanttSemiSizingControl::minimizedWidget() const
\sa maximizedWidget()
*/
-void KDGanttSemiSizingControl::setMaximizedWidget( QWidget* widget )
+void KDGanttSemiSizingControl::setMaximizedWidget( TQWidget* widget )
{
_maximizedWidget = widget;
//if( _maximizedWidget ) _maximizedWidget->show();
@@ -172,7 +172,7 @@ void KDGanttSemiSizingControl::setMaximizedWidget( QWidget* widget )
\sa setMaximizedWidget()
*/
-QWidget* KDGanttSemiSizingControl::maximizedWidget() const
+TQWidget* KDGanttSemiSizingControl::maximizedWidget() const
{
return _maximizedWidget;
}
@@ -246,12 +246,12 @@ KDGanttSemiSizingControl::ArrowPosition KDGanttSemiSizingControl::arrowPosition(
void KDGanttSemiSizingControl::init()
{
- _but = new QPushButton( this );
- _but->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
- connect( _but, SIGNAL( clicked() ), this, SLOT(changeState()) );
+ _but = new TQPushButton( this );
+ _but->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
+ connect( _but, TQT_SIGNAL( clicked() ), this, TQT_SLOT(changeState()) );
_layout = 0;
- QWhatsThis::add( _but, "Click on this button to show the \nlegend at the bottom of the widget");
- QToolTip::add( _but, "Show / hide legend");
+ TQWhatsThis::add( _but, "Click on this button to show the \nlegend at the bottom of the widget");
+ TQToolTip::add( _but, "Show / hide legend");
}
@@ -260,17 +260,17 @@ void KDGanttSemiSizingControl::setup()
{
//-------------------------------------------------- Setup layout
delete _layout;
- QBoxLayout* butLayout; // _layout will delete me
+ TQBoxLayout* butLayout; // _layout will delete me
if ( _orient == Horizontal || isMinimized() )
- _layout = new QHBoxLayout( this );
+ _layout = new TQHBoxLayout( this );
else
- _layout = new QVBoxLayout( this );
+ _layout = new TQVBoxLayout( this );
if ( _orient == Vertical && !isMinimized() )
- butLayout = new QHBoxLayout( _layout );
+ butLayout = new TQHBoxLayout( _layout );
else
- butLayout = new QVBoxLayout( _layout );
+ butLayout = new TQVBoxLayout( _layout );
@@ -298,7 +298,7 @@ void KDGanttSemiSizingControl::setup()
}
// Set widget in the correct possition
- QWidget* widget;
+ TQWidget* widget;
/* ************************** old code ***************
if ( isMinimized() )
widget = _minimizedWidget;
@@ -380,12 +380,12 @@ void KDGanttSemiSizingControl::minimize( bool minimize )
}
}
-QPixmap KDGanttSemiSizingControl::pixmap( Direction direction ) {
+TQPixmap KDGanttSemiSizingControl::pixmap( Direction direction ) {
int s = 10;
- QPixmap pix( s, s );
+ TQPixmap pix( s, s );
pix.fill( blue );
- QPointArray arr;
+ TQPointArray arr;
switch ( direction ) {
case Up: arr.setPoints( 3, 0, s-1, s-1, s-1, 0, s/2 ); ;break;
case Down: arr.setPoints( 3, 0, 0, s-1, 0, s/2, s-1 ); break;
@@ -393,14 +393,14 @@ QPixmap KDGanttSemiSizingControl::pixmap( Direction direction ) {
case Right: arr.setPoints( 3, 0,0, s-1, s/2, 0, s-1 ); break;
}
- QPainter p( &pix );
+ TQPainter p( &pix );
p.setPen( black );
p.setBrush( colorGroup().button() );
p.drawPolygon( arr );
- QBitmap bit( s, s );
+ TQBitmap bit( s, s );
bit.fill( color0 );
- QPainter p2( &bit );
+ TQPainter p2( &bit );
p2.setPen( color1 );
p2.setBrush( color1 );
p2.drawPolygon( arr );