diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kgantt/kgantt/KGantt.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'kgantt/kgantt/KGantt.cpp')
-rw-r--r-- | kgantt/kgantt/KGantt.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kgantt/kgantt/KGantt.cpp b/kgantt/kgantt/KGantt.cpp index 6e2c01c0..f16d4776 100644 --- a/kgantt/kgantt/KGantt.cpp +++ b/kgantt/kgantt/KGantt.cpp @@ -9,14 +9,14 @@ #include "KGantt.h" -#include <qcolor.h> -#include <qstylefactory.h> -#include <qscrollview.h> +#include <tqcolor.h> +#include <tqstylefactory.h> +#include <tqscrollview.h> KGantt::KGantt(KGanttItem* toplevelitem, - QWidget* parent, const char * name, WFlags f) - : QWidget(parent,name,f) + TQWidget* parent, const char * name, WFlags f) + : TQWidget(parent,name,f) { #ifdef _DEBUG_ printf("KGantt::KGantt()\n"); @@ -24,8 +24,8 @@ KGantt::KGantt(KGanttItem* toplevelitem, if(toplevelitem == 0) { _toplevelitem = new KGanttItem(0, "toplevelitem", - QDateTime::currentDateTime(), - QDateTime::currentDateTime() ); + TQDateTime::currentDateTime(), + TQDateTime::currentDateTime() ); _toplevelitem->setMode(KGanttItem::Rubberband); _deleteItem = true; } @@ -34,19 +34,19 @@ KGantt::KGantt(KGanttItem* toplevelitem, _deleteItem = false; } - setBackgroundColor(QColor(white)); + setBackgroundColor(TQColor(white)); - _splitter = new QSplitter(this); + _splitter = new TQSplitter(this); /* -// QStyle *cdestyle=QStyleFactory::create("CDE"); +// TQStyle *cdestyle=TQStyleFactory::create("CDE"); // if(cdestyle) // _splitter->setStyle(cdestyle); */ - QPalette pal1(_splitter->palette()); -/* QPalette pal(_splitter->palette()); - QColorGroup cg(pal.active()); - cg.setColor( QColorGroup::Foreground, blue ); - cg.setColor( QColorGroup::Background, white ); + TQPalette pal1(_splitter->palette()); +/* TQPalette pal(_splitter->palette()); + TQColorGroup cg(pal.active()); + cg.setColor( TQColorGroup::Foreground, blue ); + cg.setColor( TQColorGroup::Background, white ); pal.setActive( cg ); _splitter->setPalette(pal);*/ @@ -58,8 +58,8 @@ KGantt::KGantt(KGanttItem* toplevelitem, _ganttbar = new xQGanttBarView(_toplevelitem, _splitter); _ganttbar->setPalette(pal1); - connect(_ganttbar, SIGNAL(contentsMoving(int,int)), - _ganttlist, SLOT(contentsMoved(int,int))); + connect(_ganttbar, TQT_SIGNAL(contentsMoving(int,int)), + _ganttlist, TQT_SLOT(contentsMoved(int,int))); _ganttlist->setBarView(_ganttbar); @@ -81,7 +81,7 @@ void KGantt::dumpItems() ///////////////////////// { - QTextOStream cout(stdout); + TQTextOStream cout(stdout); cout << "\n<Gantt>\n"; cout << " start : " << _toplevelitem->getStart().toString() << endl; |