diff options
author | Michele Calgaro <[email protected]> | 2024-02-13 11:03:23 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-02-13 11:03:23 +0900 |
commit | 768eba7b4bcb4df1cfebb140925be562576464fe (patch) | |
tree | 4ca62d51b51a3c23b45dcf633510d5a64e64391e | |
parent | 0a7295d1f8d11fd67a215215fa6a3ef1ad0e1b06 (diff) | |
download | kbibtex-768eba7b4bcb4df1cfebb140925be562576464fe.tar.gz kbibtex-768eba7b4bcb4df1cfebb140925be562576464fe.zip |
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | src/entrywidget.cpp | 4 | ||||
-rw-r--r-- | src/mergeelements.cpp | 4 | ||||
-rw-r--r-- | src/webquery.cpp | 4 |
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 ) |