diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 15:25:28 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 22:37:56 +0900 |
| commit | 858d33cc7c6063f6988690722187ab75a80b1709 (patch) | |
| tree | 761c6c16775751d49d4b3a642e83beadbf0a6f42 /client/crystalbutton.cpp | |
| parent | d2f9ba26af829ad2fc8c71386a85dc9635b6587b (diff) | |
| download | twin-style-crystal-858d33cc7c6063f6988690722187ab75a80b1709.tar.gz twin-style-crystal-858d33cc7c6063f6988690722187ab75a80b1709.zip | |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2b50d74ff03fba4c1fb372cc745325014e8a91a8)
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()); |
