summaryrefslogtreecommitdiffstats
path: root/kpager
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-13 21:03:36 +0900
committerMichele Calgaro <[email protected]>2023-11-14 12:59:42 +0900
commita49b0e2c531c81e420dc103b5130e2fa8643f46d (patch)
tree42ee6213b300c2366208f6c122bee39845b5a89c /kpager
parent36eda89f538b610db9dbda129d7c8e81089caf1a (diff)
downloadtdebase-a49b0e2c531c81e420dc103b5130e2fa8643f46d.tar.gz
tdebase-a49b0e2c531c81e420dc103b5130e2fa8643f46d.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit b965cbac5b21345e9dfc768a7e4f660ffa4aa72f)
Diffstat (limited to 'kpager')
-rw-r--r--kpager/desktop.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kpager/desktop.cpp b/kpager/desktop.cpp
index 74ead587f..dc7b27f05 100644
--- a/kpager/desktop.cpp
+++ b/kpager/desktop.cpp
@@ -78,7 +78,7 @@ void Desktop::mouseMoveEvent( TQMouseEvent *ev )
{
if ( !KPagerConfigDialog::m_windowDragging )
return;
- if ( (ev->state() & Qt::LeftButton) == 0 )
+ if ( (ev->state() & TQt::LeftButton) == 0 )
return;
TQPoint p( ev->pos() - pressPos );
if ( p.manhattanLength() >= tqApp->startDragDistance() )
@@ -88,12 +88,12 @@ void Desktop::mouseMoveEvent( TQMouseEvent *ev )
void Desktop::mousePressEvent( TQMouseEvent * ev)
{
bool showWindows= KPagerConfigDialog::m_showWindows;
- if (ev->button()==Qt::LeftButton){
+ if (ev->button()==TQt::LeftButton){
pressPos = ev->pos();
}
- else if ((ev->button()==Qt::MidButton)&&(showWindows))
+ else if ((ev->button()==TQt::MidButton)&&(showWindows))
startDrag(ev->pos());
- else if (ev->button()==Qt::RightButton) {
+ else if (ev->button()==TQt::RightButton) {
TQPoint pos;
KWin::WindowInfo *info = windowAtPosition(ev->pos(), &pos);
if ( info && showWindows )
@@ -107,7 +107,7 @@ void Desktop::mouseReleaseEvent( TQMouseEvent *ev )
{
/** Note that mouseReleaseEvent is not called when releasing the mouse
to drop a window in this desktop */
- if (ev->button()==Qt::LeftButton)
+ if (ev->button()==TQt::LeftButton)
{
bool showWindows= KPagerConfigDialog::m_showWindows;
TQPoint pos;
@@ -426,7 +426,7 @@ void Desktop::paintEvent( TQPaintEvent * )
p.begin(&pixmap);
// p.setFont(font());
// p.fillRect(rect(), colorGroup().brush(TQColorGroup::Dark));
-// p.setPen(Qt::black);
+// p.setPen(TQt::black);
// p.drawRect(rect());
if (KPagerConfigDialog::m_showBackground )
@@ -447,7 +447,7 @@ void Desktop::paintEvent( TQPaintEvent * )
p.drawPixmap(0,0,tmp);
}
- else pixmap.fill(Qt::gray);
+ else pixmap.fill(TQt::gray);
}
else
p.fillRect(rect(), colorGroup().brush(TQColorGroup::Mid));
@@ -528,7 +528,7 @@ void Desktop::paintWindowPlain(TQPainter &p, const KWin::WindowInfo *info, bool
if ( m_transparentMode==AllWindows
|| (m_transparentMode==MaximizedWindows && ( info->state() & NET::Max )) )
- brush.setStyle(Qt::Dense4Pattern);
+ brush.setStyle(TQt::Dense4Pattern);
if ( isActive )
{