summaryrefslogtreecommitdiffstats
path: root/tdeui/tdemainwindow.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-02-13 11:10:37 +0900
committerMichele Calgaro <[email protected]>2024-02-15 10:29:09 +0900
commit5e51787f9af4fd86450fab9e787b4037a772bca3 (patch)
treea792ad1d832ef77fd48f6c545d5bf35f8490d6eb /tdeui/tdemainwindow.cpp
parent3b1a091b3f8c0e88904ed2395e9d7efe590c9495 (diff)
downloadtdelibs-5e51787f9af4fd86450fab9e787b4037a772bca3.tar.gz
tdelibs-5e51787f9af4fd86450fab9e787b4037a772bca3.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 03aa7238b34bb438632b6d572b008e32960f0895)
Diffstat (limited to 'tdeui/tdemainwindow.cpp')
-rw-r--r--tdeui/tdemainwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tdeui/tdemainwindow.cpp b/tdeui/tdemainwindow.cpp
index 2a112f196..817c14423 100644
--- a/tdeui/tdemainwindow.cpp
+++ b/tdeui/tdemainwindow.cpp
@@ -49,7 +49,7 @@
#include <tdelocale.h>
#include <kstandarddirs.h>
#include <kstaticdeleter.h>
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <netwm.h>
#endif
@@ -290,7 +290,7 @@ void TDEMainWindow::parseGeometry(bool parsewidth)
assert ( !kapp->geometryArgument().isNull() );
assert ( d->care_about_geometry );
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
int x, y;
int w, h;
int m = XParseGeometry( kapp->geometryArgument().latin1(), &x, &y, (unsigned int*)&w, (unsigned int*)&h);
@@ -600,7 +600,7 @@ void TDEMainWindow::setCaption( const TQString &caption, bool modified )
void TDEMainWindow::setPlainCaption( const TQString &caption )
{
TQMainWindow::setCaption( caption );
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
NETWinInfo info( tqt_xdisplay(), winId(), tqt_xrootwin(), 0 );
info.setName( caption.utf8().data() );
#endif
@@ -913,7 +913,7 @@ void TDEMainWindow::saveWindowSize( TDEConfig * config ) const
int scnum = TQApplication::desktop()->screenNumber(parentWidget());
TQRect desk = TQApplication::desktop()->screenGeometry(scnum);
int w, h;
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
// save maximalization as desktop size + 1 in that direction
KWin::WindowInfo info = KWin::windowInfo( winId(), NET::WMState );
w = info.state() & NET::MaxHoriz ? desk.width() + 1 : width();
@@ -963,7 +963,7 @@ void TDEMainWindow::restoreWindowSize( TDEConfig * config )
}
}
if ( !size.isEmpty() ) {
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
int state = 0;
if (size.width() > desk.width()) {
state = state | NET::MaxHoriz;
@@ -1244,7 +1244,7 @@ TQSize TDEMainWindow::sizeForCentralWidgetSize(TQSize size)
void TDEMainWindow::setIcon( const TQPixmap& p )
{
TQMainWindow::setIcon( p );
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// Qt3 doesn't support _NET_WM_ICON, but TDEApplication::setTopWidget(), which
// is used by TDEMainWindow, sets it
KWin::setIcons( winId(), p, TQPixmap());