Removed window changes when switching normal / minimal mode

This partially resolves Bug 1032
pull/1/head
Slávek Banko 12 years ago
parent b9ae0ccfa9
commit d306f1c84f

@ -1222,7 +1222,6 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
unsigned long props = NET::WMWindowType; unsigned long props = NET::WMWindowType;
NETWinInfo winfo (tqt_xdisplay (), winId (), tqt_xrootwin (), props); NETWinInfo winfo (tqt_xdisplay (), winId (), tqt_xrootwin (), props);
if (m_minimal_mode) { if (m_minimal_mode) {
winfo.setWindowType (NET::Normal);
readOptions (); readOptions ();
if (by_user) if (by_user)
disconnect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ())); disconnect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ()));
@ -1234,21 +1233,8 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
statusBar()->hide(); statusBar()->hide();
if (by_user) if (by_user)
connect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ())); connect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ()));
if (by_user)
#if KDE_IS_VERSION(3, 1, 90)
winfo.setWindowType (NET::Utility);
#else
winfo.setWindowType (NET::Menu);
#endif
} }
m_view->viewArea ()->minimalMode (); m_view->viewArea ()->minimalMode ();
if (by_user) {
TQRect rect = m_view->viewArea ()->topWindowRect ();
hide ();
TQTimer::singleShot (0, TQT_TQOBJECT(this), TQT_SLOT (zoom100 ()));
show ();
move (rect.x (), rect.y ());
}
m_minimal_mode = !m_minimal_mode; m_minimal_mode = !m_minimal_mode;
} }

Loading…
Cancel
Save