diff options
author | Mavridis Philippe <[email protected]> | 2023-08-05 15:50:55 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-12 14:01:03 +0900 |
commit | 83e74d1e550db6a814ec252968b601f6a9b14f9b (patch) | |
tree | f5b58985811f820f89cdb2564711ce04a744af37 /twin/lib/kcommondecoration.cpp | |
parent | 42f97b681bd0a2bab49875cbcae5cacef4dfa7c2 (diff) | |
download | tdebase-83e74d1e550db6a814ec252968b601f6a9b14f9b.tar.gz tdebase-83e74d1e550db6a814ec252968b601f6a9b14f9b.zip |
twin: update Qt:: -> TQt::
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'twin/lib/kcommondecoration.cpp')
-rw-r--r-- | twin/lib/kcommondecoration.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/twin/lib/kcommondecoration.cpp b/twin/lib/kcommondecoration.cpp index 3d97027a3..0ada039b0 100644 --- a/twin/lib/kcommondecoration.cpp +++ b/twin/lib/kcommondecoration.cpp @@ -349,7 +349,7 @@ void KCommonDecoration::addButtons(ButtonContainer &btnContainer, const TQString btn = createButton(MenuButton); if (!btn) break; btn->setTipText(i18n("Menu") ); - btn->setRealizeButtons(Qt::LeftButton|Qt::RightButton); + btn->setRealizeButtons(TQt::LeftButton|TQt::RightButton); connect(btn, TQT_SIGNAL(pressed()), TQT_SLOT(menuButtonPressed())); connect(btn, TQT_SIGNAL(released()), this, TQT_SLOT(menuButtonReleased())); @@ -396,7 +396,7 @@ void KCommonDecoration::addButtons(ButtonContainer &btnContainer, const TQString if ((!m_button[MaxButton]) && isMaximizable()){ btn = createButton(MaxButton); if (!btn) break; - btn->setRealizeButtons(Qt::LeftButton|Qt::MidButton|Qt::RightButton); + btn->setRealizeButtons(TQt::LeftButton|TQt::MidButton|TQt::RightButton); const bool max = maximizeMode()==MaximizeFull; btn->setTipText(max?i18n("Restore"):i18n("Maximize") ); btn->setToggleButton(true); @@ -710,7 +710,7 @@ void KCommonDecoration::resizeWidget(int w, int h, TQWidget *widget) const void KCommonDecoration::mouseDoubleClickEvent(TQMouseEvent *e) { - if( e->button() != Qt::LeftButton ) + if( e->button() != TQt::LeftButton ) return; int tb = layoutMetric(LM_TitleEdgeTop)+layoutMetric(LM_TitleHeight)+layoutMetric(LM_TitleEdgeBottom); @@ -900,8 +900,8 @@ KCommonDecorationButton::KCommonDecorationButton(ButtonType type, KCommonDecorat : TQButton(parent->widget(), name), m_decoration(parent), m_type(type), - m_realizeButtons(Qt::LeftButton), - m_lastMouse(Qt::NoButton), + m_realizeButtons(TQt::LeftButton), + m_lastMouse(TQt::NoButton), m_isLeft(true) { setCursor(ArrowCursor); @@ -975,7 +975,7 @@ void KCommonDecorationButton::mousePressEvent(TQMouseEvent* e) m_lastMouse = e->button(); // pass on event after changing button to LeftButton TQMouseEvent me(e->type(), e->pos(), e->globalPos(), - (e->button()&m_realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state()); + (e->button()&m_realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state()); TQButton::mousePressEvent(&me); } @@ -985,7 +985,7 @@ void KCommonDecorationButton::mouseReleaseEvent(TQMouseEvent* e) m_lastMouse = e->button(); // pass on event after changing button to LeftButton TQMouseEvent me(e->type(), e->pos(), e->globalPos(), - (e->button()&m_realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state()); + (e->button()&m_realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state()); TQButton::mouseReleaseEvent(&me); } |