summaryrefslogtreecommitdiffstats
path: root/kgantt
diff options
context:
space:
mode:
Diffstat (limited to 'kgantt')
-rw-r--r--kgantt/kgantt/xQGanttBarViewPort_Events.cpp18
-rw-r--r--kgantt/kgantt/xQGanttListViewPort.h2
2 files changed, 10 insertions, 10 deletions
diff --git a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
index 52f017e27..94b597263 100644
--- a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
+++ b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
@@ -43,7 +43,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
_itemTextEdit->hide();
// right mousebutton & control -> popup menu
- if(e->button() == Qt::RightButton && e->state() == ControlButton ) {
+ if(e->button() == TQt::RightButton && e->state() == ControlButton ) {
_menu->popup(e->globalPos());
return;
}
@@ -64,7 +64,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
/*
* edit text
*/
- if(e->button() == Qt::MidButton && _mode == Select) {
+ if(e->button() == TQt::MidButton && _mode == Select) {
xTQTaskPosition* tp = _gItemList.find(_currentItem);
TQPainter p(this);
@@ -91,7 +91,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
/*
* open/close item, move start, end, item
*/
- if(e->button() == Qt::LeftButton && _mode == Select) {
+ if(e->button() == TQt::LeftButton && _mode == Select) {
_timediff = 0;
@@ -210,21 +210,21 @@ xQGanttBarViewPort::mouseReleaseEvent(TQMouseEvent* e)
if(!_Mousemoved) {
- if(e->button() == Qt::LeftButton)
+ if(e->button() == TQt::LeftButton)
zoom(1.4, e->x(), e->y() );
- if(e->button() == Qt::RightButton)
+ if(e->button() == TQt::RightButton)
zoom(0.7, e->x(), e->y() );
- if(e->button() == Qt::MidButton)
+ if(e->button() == TQt::MidButton)
zoomAll();
}
else {
- if(_currentMButton == Qt::LeftButton) {
+ if(_currentMButton == TQt::LeftButton) {
TQPainter p(this);
TQPen pen(DashLine);
@@ -284,7 +284,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
case Select: {
- if(_currentMButton == Qt::LeftButton && _currentItem) {
+ if(_currentMButton == TQt::LeftButton && _currentItem) {
TQPainter p(this);
p.setRasterOp(XorROP);
@@ -442,7 +442,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
case Zoom: {
- if(_currentMButton == Qt::LeftButton) {
+ if(_currentMButton == TQt::LeftButton) {
static TQString strpos;
diff --git a/kgantt/kgantt/xQGanttListViewPort.h b/kgantt/kgantt/xQGanttListViewPort.h
index 21f3f02f0..1f937521e 100644
--- a/kgantt/kgantt/xQGanttListViewPort.h
+++ b/kgantt/kgantt/xQGanttListViewPort.h
@@ -114,7 +114,7 @@ protected:
void mousePressEvent(TQMouseEvent* e) {
- if(e->button() == Qt::RightButton && e->state() == ControlButton ) {
+ if(e->button() == TQt::RightButton && e->state() == ControlButton ) {
_menu->popup(e->globalPos());
return;
}