summaryrefslogtreecommitdiffstats
path: root/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgantt/kgantt/xQGanttBarViewPort_Events.cpp')
-rw-r--r--kgantt/kgantt/xQGanttBarViewPort_Events.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kgantt/kgantt/xQGanttBarViewPort_Events.cpp b/kgantt/kgantt/xQGanttBarViewPort_Events.cpp
index be6d38b5..d7542d1c 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() == RightButton && e->state() == ControlButton ) {
+ if(e->button() == Qt::RightButton && e->state() == ControlButton ) {
_menu->popup(e->globalPos());
return;
}
@@ -64,7 +64,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
/*
* edit text
*/
- if(e->button() == MidButton && _mode == Select) {
+ if(e->button() == Qt::MidButton && _mode == Select) {
xTQTaskPosition* tp = _gItemList.tqfind(_currentItem);
TQPainter p(this);
@@ -91,7 +91,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
/*
* open/close item, move start, end, item
*/
- if(e->button() == LeftButton && _mode == Select) {
+ if(e->button() == Qt::LeftButton && _mode == Select) {
_timediff = 0;
@@ -210,21 +210,21 @@ xQGanttBarViewPort::mouseReleaseEvent(TQMouseEvent* e)
if(!_Mousemoved) {
- if(e->button() == LeftButton)
+ if(e->button() == Qt::LeftButton)
zoom(1.4, e->x(), e->y() );
- if(e->button() == RightButton)
+ if(e->button() == Qt::RightButton)
zoom(0.7, e->x(), e->y() );
- if(e->button() == MidButton)
+ if(e->button() == Qt::MidButton)
zoomAll();
}
else {
- if(_currentMButton == LeftButton) {
+ if(_currentMButton == Qt::LeftButton) {
TQPainter p(this);
TQPen pen(DashLine);
@@ -284,7 +284,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
case Select: {
- if(_currentMButton == LeftButton && _currentItem) {
+ if(_currentMButton == Qt::LeftButton && _currentItem) {
TQPainter p(this);
p.setRasterOp(XorROP);
@@ -442,7 +442,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
case Zoom: {
- if(_currentMButton == LeftButton) {
+ if(_currentMButton == Qt::LeftButton) {
static TQString strpos;