diff options
Diffstat (limited to 'client/crystalbutton.cpp')
-rw-r--r-- | client/crystalbutton.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/client/crystalbutton.cpp b/client/crystalbutton.cpp index 77f6e06..c714e99 100644 --- a/client/crystalbutton.cpp +++ b/client/crystalbutton.cpp @@ -107,19 +107,19 @@ void CrystalButton::mousePressEvent(TQMouseEvent* e) int button; switch(e->button()) { - case Qt::LeftButton: - button=Qt::LeftButton; + case TQt::LeftButton: + button=TQt::LeftButton; break; - case Qt::RightButton: + case TQt::RightButton: if ((type_ == ButtonMax) || (type_ == ButtonMin) || (type_ == ButtonMenu) || (type_ == ButtonClose)) - button=Qt::LeftButton; else button=Qt::NoButton; + button=TQt::LeftButton; else button=TQt::NoButton; break; - case Qt::MidButton: + case TQt::MidButton: if ((type_ == ButtonMax) || (type_ == ButtonMin)) - button=Qt::LeftButton; else button=Qt::NoButton; + button=TQt::LeftButton; else button=TQt::NoButton; break; - default:button=Qt::NoButton; + default:button=TQt::NoButton; break; } TQMouseEvent me(e->type(), e->pos(), e->globalPos(),button, e->state()); @@ -132,19 +132,19 @@ void CrystalButton::mouseReleaseEvent(TQMouseEvent* e) int button; switch(e->button()) { - case Qt::LeftButton: - button=Qt::LeftButton; + case TQt::LeftButton: + button=TQt::LeftButton; break; - case Qt::RightButton: + case TQt::RightButton: if ((type_ == ButtonMax) || (type_ == ButtonMin) || (type_ == ButtonMenu) || (type_==ButtonClose)) - button=Qt::LeftButton; else button=Qt::NoButton; + button=TQt::LeftButton; else button=TQt::NoButton; break; - case Qt::MidButton: + case TQt::MidButton: if ((type_ == ButtonMax) || (type_ == ButtonMin)) - button=Qt::LeftButton; else button=Qt::NoButton; + button=TQt::LeftButton; else button=TQt::NoButton; break; - default:button=Qt::NoButton; + default:button=TQt::NoButton; break; } TQMouseEvent me(e->type(), e->pos(), e->globalPos(), button, e->state()); |