Replace Q_WS_* defines with TQ_WS_* equivalents

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 10 months ago
parent 0a7295d1f8
commit 768eba7b4b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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 )

@ -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 )

@ -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 )

Loading…
Cancel
Save