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 15:25:28 +0900 |
commit | 2b50d74ff03fba4c1fb372cc745325014e8a91a8 (patch) | |
tree | 42c0c6caf03e26be040cb8e3c37436adedfa5e0e /client | |
parent | 8805ca8534c9501aef1504fb1418aa7f72e9ab27 (diff) | |
download | twin-style-crystal-2b50d74ff03fba4c1fb372cc745325014e8a91a8.tar.gz twin-style-crystal-2b50d74ff03fba4c1fb372cc745325014e8a91a8.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'client')
-rw-r--r-- | client/crystalbutton.cpp | 28 | ||||
-rw-r--r-- | client/crystalclient.cpp | 16 |
2 files changed, 22 insertions, 22 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()); diff --git a/client/crystalclient.cpp b/client/crystalclient.cpp index 506f743..32eca46 100644 --- a/client/crystalclient.cpp +++ b/client/crystalclient.cpp @@ -1211,7 +1211,7 @@ void CrystalClient::ClientWindows(Window* v_frame,Window* v_wrapper,Window *v_cl void CrystalClient::mouseDoubleClickEvent(TQMouseEvent *e) { - if (/*(titlebar_->geometry().contains(e->pos()))&&*/(e->button()==Qt::LeftButton)) titlebarDblClickOperation(); + if (/*(titlebar_->geometry().contains(e->pos()))&&*/(e->button()==TQt::LeftButton)) titlebarDblClickOperation(); else { TQMouseEvent me(TQEvent::MouseButtonPress,e->pos(),e->button(),e->state()); processMousePressEvent(&me); @@ -1545,10 +1545,10 @@ void CrystalClient::maxButtonPressed() { switch (button[ButtonMax]->lastMousePress()) { - case Qt::MidButton: + case TQt::MidButton: maximize(maximizeMode() ^ MaximizeVertical); break; - case Qt::RightButton: + case TQt::RightButton: maximize(maximizeMode() ^ MaximizeHorizontal); break; default: @@ -1561,11 +1561,11 @@ void CrystalClient::minButtonPressed() { if (button[ButtonMin]) { switch (button[ButtonMin]->lastMousePress()) { - case Qt::MidButton:{ + case TQt::MidButton:{ performWindowOperation(LowerOp); break; } - case Qt::RightButton: + case TQt::RightButton: if (isShadeable()) setShade(!isShade()); break; default: @@ -1604,7 +1604,7 @@ void CrystalClient::closeButtonPressed() { if (button[ButtonClose]) switch (button[ButtonClose]->lastMousePress()) { - case Qt::RightButton: + case TQt::RightButton: { Window frame,wrapper,client; char param[20]; @@ -1629,8 +1629,8 @@ void CrystalClient::shadeButtonPressed() { if (button[ButtonShade]) { switch (button[ButtonShade]->lastMousePress()) { - case Qt::MidButton: - case Qt::RightButton: + case TQt::MidButton: + case TQt::RightButton: break; default: if (isShadeable()) setShade(!isShade()); |