|
Lines 1173-1179
Link Here
|
| 1173 |
unsigned long props = NET::WMWindowType; |
1173 |
unsigned long props = NET::WMWindowType; |
| 1174 |
NETWinInfo winfo (qt_xdisplay (), winId (), qt_xrootwin (), props); |
1174 |
NETWinInfo winfo (qt_xdisplay (), winId (), qt_xrootwin (), props); |
| 1175 |
if (m_minimal_mode) { |
1175 |
if (m_minimal_mode) { |
| 1176 |
winfo.setWindowType (NET::Normal); |
1176 |
//winfo.setWindowType (NET::Normal); |
| 1177 |
readOptions (); |
1177 |
readOptions (); |
| 1178 |
if (by_user) |
1178 |
if (by_user) |
| 1179 |
disconnect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ())); |
1179 |
disconnect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ())); |
|
Lines 1187-1203
Link Here
|
| 1187 |
connect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ())); |
1187 |
connect (m_view->controlPanel ()->button (KMPlayer::ControlPanel::button_playlist), TQT_SIGNAL (clicked ()), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ())); |
| 1188 |
if (by_user) |
1188 |
//if (by_user) |
| 1189 |
#if KDE_IS_VERSION(3, 1, 90) |
1189 |
#if KDE_IS_VERSION(3, 1, 90) |
| 1190 |
winfo.setWindowType (NET::Utility); |
1190 |
//winfo.setWindowType (NET::Utility); |
| 1191 |
#else |
1191 |
#else |
| 1192 |
winfo.setWindowType (NET::Menu); |
1192 |
//winfo.setWindowType (NET::Menu); |
| 1193 |
#endif |
1193 |
#endif |
| 1194 |
} |
1194 |
} |
| 1195 |
m_view->viewArea ()->minimalMode (); |
1195 |
m_view->viewArea ()->minimalMode (); |
| 1196 |
if (by_user) { |
1196 |
if (by_user) { |
| 1197 |
TQRect rect = m_view->viewArea ()->topWindowRect (); |
1197 |
TQRect rect = m_view->viewArea ()->topWindowRect (); |
| 1198 |
hide (); |
1198 |
//hide (); |
| 1199 |
TQTimer::singleShot (0, TQT_TQOBJECT(this), TQT_SLOT (zoom100 ())); |
1199 |
TQTimer::singleShot (0, TQT_TQOBJECT(this), TQT_SLOT (zoom100 ())); |
| 1200 |
show (); |
1200 |
//show (); |
| 1201 |
move (rect.x (), rect.y ()); |
1201 |
move (rect.x (), rect.y ()); |
| 1202 |
} |
1202 |
} |
| 1203 |
m_minimal_mode = !m_minimal_mode; |
1203 |
m_minimal_mode = !m_minimal_mode; |