summaryrefslogtreecommitdiffstats
path: root/twin/tabbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'twin/tabbox.cpp')
-rw-r--r--twin/tabbox.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/twin/tabbox.cpp b/twin/tabbox.cpp
index d88146f22..f638d755e 100644
--- a/twin/tabbox.cpp
+++ b/twin/tabbox.cpp
@@ -25,7 +25,7 @@ License. See the file "COPYING" for the exact licensing terms.
#include <kstringhandler.h>
#include <stdarg.h>
#include <kdebug.h>
-#include <kglobalaccel.h>
+#include <tdeglobalaccel.h>
#include <kkeynative.h>
#include <tdeglobalsettings.h>
#include <kiconeffect.h>
@@ -53,7 +53,7 @@ TabBox::TabBox( Workspace *ws, const char *name )
m = DesktopMode; // init variables
reconfigure();
reset();
- connect(&delayedShowTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(show()));
+ connect(&delayedShowTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(show()));
XSetWindowAttributes attr;
attr.override_redirect = 1;
@@ -203,7 +203,7 @@ void TabBox::reset()
if ( clients.count() == 0 ) // height for the "not tasks" text
{
TQFont f = font();
- f.setBold( TRUE );
+ f.setBold( true );
f.setPointSize( 14 );
h = TQFontMetrics(f).height()*4;
@@ -401,7 +401,7 @@ void TabBox::drawContents( TQPainter * )
if ( !currentClient() )
{
TQFont f = font();
- f.setBold( TRUE );
+ f.setBold( true );
f.setPointSize( 14 );
p.setFont(f);
@@ -474,7 +474,7 @@ void TabBox::drawContents( TQPainter * )
p.setPen(colorGroup().text());
p.drawText(x+5 + iconWidth + 8, y, r.width() - 5 - iconWidth - 8, lineHeight,
- Qt::AlignLeft | Qt::AlignVCenter | TQt::SingleLine, s);
+ TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, s);
y += lineHeight;
}
@@ -521,7 +521,7 @@ void TabBox::drawContents( TQPainter * )
// draw desktop-number
p.setFont(f);
TQString num = TQString::number(iDesktop);
- p.drawText(x+5, y+2, iconWidth, iconHeight, Qt::AlignCenter, num);
+ p.drawText(x+5, y+2, iconWidth, iconHeight, TQt::AlignCenter, num);
p.restore();
@@ -532,7 +532,7 @@ void TabBox::drawContents( TQPainter * )
p.setPen(colorGroup().text());
p.drawText(x+5 + iconWidth + 8, y, r.width() - 5 - iconWidth - 8, lineHeight,
- Qt::AlignLeft | Qt::AlignVCenter | TQt::SingleLine,
+ TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine,
workspace()->desktopName(iDesktop));
// show mini icons from that desktop aligned to each other
@@ -708,7 +708,7 @@ void TabBox::delayedShow()
void TabBox::handleMouseEvent( XEvent* e )
{
- XAllowEvents( tqt_xdisplay(), AsyncPointer, GET_QT_X_TIME() );
+ XAllowEvents( tqt_xdisplay(), AsyncPointer, get_tqt_x_time() );
if( e->type != ButtonPress )
return;
TQPoint pos( e->xbutton.x_root, e->xbutton.y_root );
@@ -866,7 +866,7 @@ void Workspace::slotWalkThroughWindows()
return;
if ( options->altTabStyle == Options::CDE || !options->focusPolicyIsReasonable())
{
- //XUngrabKeyboard(tqt_xdisplay(), GET_QT_X_TIME()); // need that because of accelerator raw mode
+ //XUngrabKeyboard(tqt_xdisplay(), get_tqt_x_time()); // need that because of accelerator raw mode
// CDE style raise / lower
CDEWalkThroughWindows( true );
}
@@ -993,26 +993,26 @@ bool Workspace::startKDEWalkThroughWindows()
{
if( !establishTabBoxGrab())
return false;
- tab_grab = TRUE;
+ tab_grab = true;
keys->suspend( true );
disable_shortcuts_keys->suspend( true );
client_keys->suspend( true );
tab_box->setMode( TabBox::WindowsMode );
tab_box->reset();
- return TRUE;
+ return true;
}
bool Workspace::startWalkThroughDesktops( int mode )
{
if( !establishTabBoxGrab())
return false;
- control_grab = TRUE;
+ control_grab = true;
keys->suspend( true );
disable_shortcuts_keys->suspend( true );
client_keys->suspend( true );
tab_box->setMode( (TabBox::Mode) mode );
tab_box->reset();
- return TRUE;
+ return true;
}
bool Workspace::startWalkThroughDesktops()
@@ -1180,7 +1180,7 @@ void Workspace::tabBoxKeyPress( const KKeyNative& keyX )
if (control_grab || tab_grab)
{
uint keyQt = keyX.keyCodeQt();
- if ( ((keyQt & 0xffff) == Qt::Key_Escape)
+ if ( ((keyQt & 0xffff) == TQt::Key_Escape)
&& !(forward || backward) )
{ // if Escape is part of the shortcut, don't cancel
closeTabBox();
@@ -1195,8 +1195,8 @@ void Workspace::closeTabBox()
keys->suspend( false );
disable_shortcuts_keys->suspend( false );
client_keys->suspend( false );
- tab_grab = FALSE;
- control_grab = FALSE;
+ tab_grab = false;
+ control_grab = false;
}
/*!
@@ -1360,7 +1360,7 @@ Client* Workspace::previousStaticClient( Client* c ) const
bool Workspace::establishTabBoxGrab()
{
if( XGrabKeyboard( tqt_xdisplay(), root, FALSE,
- GrabModeAsync, GrabModeAsync, GET_QT_X_TIME()) != GrabSuccess )
+ GrabModeAsync, GrabModeAsync, get_tqt_x_time()) != GrabSuccess )
return false;
// Don't try to establish a global mouse grab using XGrabPointer, as that would prevent
// using Alt+Tab while DND (#44972). However force passive grabs on all windows
@@ -1376,7 +1376,7 @@ bool Workspace::establishTabBoxGrab()
void Workspace::removeTabBoxGrab()
{
- XUngrabKeyboard(tqt_xdisplay(), GET_QT_X_TIME());
+ XUngrabKeyboard(tqt_xdisplay(), get_tqt_x_time());
assert( forced_global_mouse_grab );
forced_global_mouse_grab = false;
if( active_client != NULL )