summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttViewEventItem.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/KDGanttViewEventItem.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/KDGanttViewEventItem.cpp')
-rw-r--r--kdgantt/KDGanttViewEventItem.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kdgantt/KDGanttViewEventItem.cpp b/kdgantt/KDGanttViewEventItem.cpp
index aa6e707db..01172af82 100644
--- a/kdgantt/KDGanttViewEventItem.cpp
+++ b/kdgantt/KDGanttViewEventItem.cpp
@@ -53,8 +53,8 @@
is specified, a unique name will be generated
*/
KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
- const QString& lvtext,
- const QString& name ) :
+ const TQString& lvtext,
+ const TQString& name ) :
KDGanttViewItem( Event, view, lvtext, name )
{
initItem();
@@ -70,8 +70,8 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
is specified, a unique name will be generated
*/
KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent,
- const QString& lvtext,
- const QString& name ) :
+ const TQString& lvtext,
+ const TQString& name ) :
KDGanttViewItem( Event, parent, lvtext, name )
{
initItem();
@@ -90,8 +90,8 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent,
*/
KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
KDGanttViewItem* after,
- const QString& lvtext,
- const QString& name ) :
+ const TQString& lvtext,
+ const TQString& name ) :
KDGanttViewItem( Event, view, after, lvtext, name )
{
@@ -110,8 +110,8 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
*/
KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent,
KDGanttViewItem* after,
- const QString& lvtext,
- const QString& name ) :
+ const TQString& lvtext,
+ const TQString& name ) :
KDGanttViewItem( Event, parent, after, lvtext, name )
{
@@ -136,7 +136,7 @@ KDGanttViewEventItem::~KDGanttViewEventItem()
\param start the start time
\sa startTime()
*/
-void KDGanttViewEventItem::setStartTime( const QDateTime& start )
+void KDGanttViewEventItem::setStartTime( const TQDateTime& start )
{
if (! start.isValid() ) {
qDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set");
@@ -160,11 +160,11 @@ void KDGanttViewEventItem::setStartTime( const QDateTime& start )
the start time is set to this lead time automatically.
\param leadTimeStart the start time of the lead time; pass an
- invalid QDateTime object in order to turn the lead time off.
+ invalid TQDateTime object in order to turn the lead time off.
\sa leadTime()
*/
-void KDGanttViewEventItem::setLeadTime( const QDateTime& leadTimeStart )
+void KDGanttViewEventItem::setLeadTime( const TQDateTime& leadTimeStart )
{
if (!myLeadTime) myLeadTime = new QDateTime;
*myLeadTime = leadTimeStart;
@@ -182,11 +182,11 @@ void KDGanttViewEventItem::setLeadTime( const QDateTime& leadTimeStart )
yes, when the lead time starts.
\return if the event item is shown with a lead time line, returns
- the QDateTime object representing the start of the lead time,
- otherwise returns an invalid QDateTime object
+ the TQDateTime object representing the start of the lead time,
+ otherwise returns an invalid TQDateTime object
\sa setLeadTime()
*/
-QDateTime KDGanttViewEventItem::leadTime() const
+TQDateTime KDGanttViewEventItem::leadTime() const
{
if(myLeadTime)
return *myLeadTime;
@@ -255,9 +255,9 @@ void KDGanttViewEventItem::showItem(bool show, int coordY)
int floatStartX = myGanttView->myTimeHeader->getCoordX(myFloatStartTime);
int hei = startShape->boundingRect().height();
// FIXME: Configurable colors
- QBrush b(startShape->brush().color(), Dense4Pattern);
+ TQBrush b(startShape->brush().color(), Dense4Pattern);
floatStartTemp->setBrush(b);
- floatStartTemp->setPen(QPen(gray));
+ floatStartTemp->setPen(TQPen(gray));
if (floatStartX < startX) {
floatStartTemp->setSize(startX - floatStartX, hei/2);
floatStartTemp->move(floatStartX, allY-hei/4);
@@ -272,9 +272,9 @@ void KDGanttViewEventItem::showItem(bool show, int coordY)
int floatEndX = myGanttView->myTimeHeader->getCoordX(myFloatEndTime);
int hei = startShape->boundingRect().height();
// FIXME: Configurable colors
- QBrush b(startShape->brush().color(), Dense4Pattern);
+ TQBrush b(startShape->brush().color(), Dense4Pattern);
floatEndTemp->setBrush(b);
- floatEndTemp->setPen(QPen(gray));
+ floatEndTemp->setPen(TQPen(gray));
if (floatEndX > startX) {
floatEndTemp->setSize(floatEndX - startX, hei/2);
floatEndTemp->move(startX, allY-hei/4);