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