summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-13 11:03:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-14 21:13:42 +0900
commit07a565d7c7fb12eb2ee404fe99004d7642ae2e09 (patch)
tree5994a866f4573d174f2d57f07abd8bfa67b576a9
parent483545c2b890016403048fe55037c58bbdc339ab (diff)
downloadkbibtex-07a565d7.tar.gz
kbibtex-07a565d7.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 768eba7b4bcb4df1cfebb140925be562576464fe)
-rw-r--r--src/entrywidget.cpp4
-rw-r--r--src/mergeelements.cpp4
-rw-r--r--src/webquery.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/entrywidget.cpp b/src/entrywidget.cpp
index 87dba16..46cad7c 100644
--- a/src/entrywidget.cpp
+++ b/src/entrywidget.cpp
@@ -548,7 +548,7 @@ namespace KBibTeX
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( m_dlgParent->winId(), NET::WMState );
w = info.state() & NET::MaxHoriz ? desk.width() + 1 : m_dlgParent->width();
@@ -600,7 +600,7 @@ namespace KBibTeX
}
if ( !size.isEmpty() )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 )
| ( size.height() > desk.height() ? NET::MaxVert : 0 );
if (( state & NET::Max ) == NET::Max )
diff --git a/src/mergeelements.cpp b/src/mergeelements.cpp
index 3eb745b..5137f59 100644
--- a/src/mergeelements.cpp
+++ b/src/mergeelements.cpp
@@ -774,7 +774,7 @@ namespace KBibTeX
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();
@@ -838,7 +838,7 @@ namespace KBibTeX
}
if ( !size.isEmpty() )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 )
| ( size.height() > desk.height() ? NET::MaxVert : 0 );
if (( state & NET::Max ) == NET::Max )
diff --git a/src/webquery.cpp b/src/webquery.cpp
index e0eac3f..959ac44 100644
--- a/src/webquery.cpp
+++ b/src/webquery.cpp
@@ -526,7 +526,7 @@ namespace KBibTeX
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( m_dlg->winId(), NET::WMState );
w = info.state() & NET::MaxHoriz ? desk.width() + 1 : m_dlg->width();
@@ -576,7 +576,7 @@ namespace KBibTeX
}
if ( !size.isEmpty() )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 )
| ( size.height() > desk.height() ? NET::MaxVert : 0 );
if (( state & NET::Max ) == NET::Max )