summaryrefslogtreecommitdiffstats
path: root/kpager
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-13 21:03:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-13 21:03:36 +0900
commitb965cbac5b21345e9dfc768a7e4f660ffa4aa72f (patch)
tree7fcff5d301752cbdcdfff64d8791aff1369b803f /kpager
parent7d6d35b42e00d6b6658951871b29489bdec80714 (diff)
downloadtdebase-b965cbac5b21345e9dfc768a7e4f660ffa4aa72f.tar.gz
tdebase-b965cbac5b21345e9dfc768a7e4f660ffa4aa72f.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 )
{