diff options
author | Michele Calgaro <[email protected]> | 2023-11-06 11:29:31 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-07 09:58:54 +0900 |
commit | 185ed081e216488c0e5dc3e64219cbaac6a5b471 (patch) | |
tree | 959c25b171b9eb8783ef7c1159eee67b21ca7e17 /twin-styles/riscos | |
parent | b371ec89eb49b1a15fb97fef46c0ab1e88af9b01 (diff) | |
download | tdeartwork-185ed081e216488c0e5dc3e64219cbaac6a5b471.tar.gz tdeartwork-185ed081e216488c0e5dc3e64219cbaac6a5b471.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 96f53316c2d7b72477825b53206998efc9bfd315)
Diffstat (limited to 'twin-styles/riscos')
-rw-r--r-- | twin-styles/riscos/Button.cpp | 6 | ||||
-rw-r--r-- | twin-styles/riscos/Button.h | 2 | ||||
-rw-r--r-- | twin-styles/riscos/Manager.cpp | 2 | ||||
-rw-r--r-- | twin-styles/riscos/MaximiseButton.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/twin-styles/riscos/Button.cpp b/twin-styles/riscos/Button.cpp index f1f150d1..4d11e0c7 100644 --- a/twin-styles/riscos/Button.cpp +++ b/twin-styles/riscos/Button.cpp @@ -31,7 +31,7 @@ Button::Button(TQWidget *parent, const TQString& tip, const ButtonState realizeButtons) : TQWidget(parent, "Button", 0), realizeButtons_(realizeButtons), - lastButton_(Qt::NoButton), + lastButton_(TQt::NoButton), alignment_(Left), down_ (false), active_ (false) @@ -72,7 +72,7 @@ void Button::mousePressEvent(TQMouseEvent *e) repaint(); TQMouseEvent me(e->type(), e->pos(), e->globalPos(), - (e->button()&realizeButtons_) ? Qt::LeftButton : Qt::NoButton, + (e->button()&realizeButtons_) ? TQt::LeftButton : TQt::NoButton, e->state()); TQWidget::mousePressEvent(&me); } @@ -83,7 +83,7 @@ void Button::mouseReleaseEvent(TQMouseEvent *e) lastButton_ = e->button(); repaint(); TQMouseEvent me(e->type(), e->pos(), e->globalPos(), - (e->button()&realizeButtons_) ? Qt::LeftButton : Qt::NoButton, + (e->button()&realizeButtons_) ? TQt::LeftButton : TQt::NoButton, e->state()); TQWidget::mouseReleaseEvent(&me); } diff --git a/twin-styles/riscos/Button.h b/twin-styles/riscos/Button.h index 5d20e9a6..afff9925 100644 --- a/twin-styles/riscos/Button.h +++ b/twin-styles/riscos/Button.h @@ -43,7 +43,7 @@ class Button : public TQWidget enum Alignment { Left, Right }; Button(TQWidget *parent, const TQString &tip, - const ButtonState realizeButton = Qt::LeftButton); + const ButtonState realizeButton = TQt::LeftButton); virtual ~Button(); void setAlignment(Alignment); diff --git a/twin-styles/riscos/Manager.cpp b/twin-styles/riscos/Manager.cpp index 14c81a84..ada3336f 100644 --- a/twin-styles/riscos/Manager.cpp +++ b/twin-styles/riscos/Manager.cpp @@ -352,7 +352,7 @@ KDecoration::Position Manager::mousePosition(const TQPoint& p) const void Manager::mouseDoubleClickEvent(TQMouseEvent *e) { - if (e->button() == Qt::LeftButton && titleSpacer_->geometry().contains(e->pos())) + if (e->button() == TQt::LeftButton && titleSpacer_->geometry().contains(e->pos())) titlebarDblClickOperation(); } diff --git a/twin-styles/riscos/MaximiseButton.cpp b/twin-styles/riscos/MaximiseButton.cpp index aa54b52a..524c2a8a 100644 --- a/twin-styles/riscos/MaximiseButton.cpp +++ b/twin-styles/riscos/MaximiseButton.cpp @@ -67,7 +67,7 @@ static const char * const unmaximise_xpm[] = { MaximiseButton::MaximiseButton(TQWidget * parent) : Button(parent, i18n("Maximize"), - (ButtonState)(Qt::LeftButton|Qt::MidButton|Qt::RightButton)), + (ButtonState)(TQt::LeftButton|TQt::MidButton|TQt::RightButton)), on_(false) { setPixmap(TQPixmap((const char **)maximise_xpm)); |