Replace Q_WS_* defines with TQ_WS_* equivalents

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 768eba7b4b)
r14.1.x
Michele Calgaro 9 months ago
parent 483545c2b8
commit 07a565d7c7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -548,7 +548,7 @@ namespace KBibTeX
int scnum = TQApplication::desktop()->screenNumber( parentWidget() ); int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
TQRect desk = TQApplication::desktop()->screenGeometry( scnum ); TQRect desk = TQApplication::desktop()->screenGeometry( scnum );
int w, h; int w, h;
#if defined Q_WS_X11 #if defined TQ_WS_X11
// save maximalization as desktop size + 1 in that direction // save maximalization as desktop size + 1 in that direction
KWin::WindowInfo info = KWin::windowInfo( m_dlgParent->winId(), NET::WMState ); KWin::WindowInfo info = KWin::windowInfo( m_dlgParent->winId(), NET::WMState );
w = info.state() & NET::MaxHoriz ? desk.width() + 1 : m_dlgParent->width(); w = info.state() & NET::MaxHoriz ? desk.width() + 1 : m_dlgParent->width();
@ -600,7 +600,7 @@ namespace KBibTeX
} }
if ( !size.isEmpty() ) if ( !size.isEmpty() )
{ {
#ifdef Q_WS_X11 #ifdef TQ_WS_X11
int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 ) int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 )
| ( size.height() > desk.height() ? NET::MaxVert : 0 ); | ( size.height() > desk.height() ? NET::MaxVert : 0 );
if (( state & NET::Max ) == NET::Max ) if (( state & NET::Max ) == NET::Max )

@ -774,7 +774,7 @@ namespace KBibTeX
int scnum = TQApplication::desktop()->screenNumber( parentWidget() ); int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
TQRect desk = TQApplication::desktop()->screenGeometry( scnum ); TQRect desk = TQApplication::desktop()->screenGeometry( scnum );
int w, h; int w, h;
#if defined Q_WS_X11 #if defined TQ_WS_X11
// save maximalization as desktop size + 1 in that direction // save maximalization as desktop size + 1 in that direction
KWin::WindowInfo info = KWin::windowInfo( winId(), NET::WMState ); KWin::WindowInfo info = KWin::windowInfo( winId(), NET::WMState );
w = info.state() & NET::MaxHoriz ? desk.width() + 1 : width(); w = info.state() & NET::MaxHoriz ? desk.width() + 1 : width();
@ -838,7 +838,7 @@ namespace KBibTeX
} }
if ( !size.isEmpty() ) if ( !size.isEmpty() )
{ {
#ifdef Q_WS_X11 #ifdef TQ_WS_X11
int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 ) int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 )
| ( size.height() > desk.height() ? NET::MaxVert : 0 ); | ( size.height() > desk.height() ? NET::MaxVert : 0 );
if (( state & NET::Max ) == NET::Max ) if (( state & NET::Max ) == NET::Max )

@ -526,7 +526,7 @@ namespace KBibTeX
int scnum = TQApplication::desktop()->screenNumber( parentWidget() ); int scnum = TQApplication::desktop()->screenNumber( parentWidget() );
TQRect desk = TQApplication::desktop()->screenGeometry( scnum ); TQRect desk = TQApplication::desktop()->screenGeometry( scnum );
int w, h; int w, h;
#if defined Q_WS_X11 #if defined TQ_WS_X11
// save maximalization as desktop size + 1 in that direction // save maximalization as desktop size + 1 in that direction
KWin::WindowInfo info = KWin::windowInfo( m_dlg->winId(), NET::WMState ); KWin::WindowInfo info = KWin::windowInfo( m_dlg->winId(), NET::WMState );
w = info.state() & NET::MaxHoriz ? desk.width() + 1 : m_dlg->width(); w = info.state() & NET::MaxHoriz ? desk.width() + 1 : m_dlg->width();
@ -576,7 +576,7 @@ namespace KBibTeX
} }
if ( !size.isEmpty() ) if ( !size.isEmpty() )
{ {
#ifdef Q_WS_X11 #ifdef TQ_WS_X11
int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 ) int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 )
| ( size.height() > desk.height() ? NET::MaxVert : 0 ); | ( size.height() > desk.height() ? NET::MaxVert : 0 );
if (( state & NET::Max ) == NET::Max ) if (( state & NET::Max ) == NET::Max )

Loading…
Cancel
Save