summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttViewEventItem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kdgantt/KDGanttViewEventItem.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt/KDGanttViewEventItem.cpp')
-rw-r--r--kdgantt/KDGanttViewEventItem.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kdgantt/KDGanttViewEventItem.cpp b/kdgantt/KDGanttViewEventItem.cpp
index e7c548ac..38c1e767 100644
--- a/kdgantt/KDGanttViewEventItem.cpp
+++ b/kdgantt/KDGanttViewEventItem.cpp
@@ -27,8 +27,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.
**
**********************************************************************/
@@ -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();
@@ -64,15 +64,15 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
/*!
Constructs an empty Gantt item of type event.
- \param parent a parent item under which this one goes
+ \param tqparent a tqparent item under which this one goes
\param lvtext the text to show in the list view
\param name the name by which the item can be identified. If no name
is specified, a unique name will be generated
*/
-KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent,
- const QString& lvtext,
- const QString& name ) :
- KDGanttViewItem( Event, parent, lvtext, name )
+KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* tqparent,
+ const TQString& lvtext,
+ const TQString& name ) :
+ KDGanttViewItem( Event, tqparent, 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 )
{
@@ -102,17 +102,17 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view,
/*!
Constructs an empty Gantt item of type event.
- \param parent a parent item under which this one goes
+ \param tqparent a tqparent item under which this one goes
\param after another item at the same level behind which this one should go
\param lvtext the text to show in the list view
\param name the name by which the item can be identified. If no name
is specified, a unique name will be generated
*/
-KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent,
+KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* tqparent,
KDGanttViewItem* after,
- const QString& lvtext,
- const QString& name ) :
- KDGanttViewItem( Event, parent, after, lvtext, name )
+ const TQString& lvtext,
+ const TQString& name ) :
+ KDGanttViewItem( Event, tqparent, after, lvtext, name )
{
initItem();
@@ -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,13 +160,13 @@ 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;
+ if (!myLeadTime) myLeadTime = new TQDateTime;
*myLeadTime = leadTimeStart;
if ( startTime() < leadTime() )
setStartTime( 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;
@@ -209,7 +209,7 @@ void KDGanttViewEventItem::hideMe()
void KDGanttViewEventItem::showItem(bool show, int coordY)
{
isVisibleInGanttView = show;
- invalidateHeight () ;
+ tqinvalidateHeight () ;
if (!show) {
hideMe();
return;
@@ -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);