From aa6be6881a729a3dc356e953f8436690bd0dc58b Mon Sep 17 00:00:00 2001 From: Tobias Rundstrom Date: Sun, 5 Mar 2006 17:04:18 -0300 Subject: [PATCH] Always resurrect playlist window in the correct pos. --- Playlist.cpp | 5 +++++ Playlist.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Playlist.cpp b/Playlist.cpp index 7e30bf1..c76399e 100644 --- a/Playlist.cpp +++ b/Playlist.cpp @@ -162,6 +162,11 @@ PlaylistWindow::mouseMoveEvent (QMouseEvent *event) move (event->globalPos().x() - m_diffx, event->globalPos().y() - m_diffy); +} + +void +PlaylistWindow::moveEvent (QMoveEvent *event) +{ QSettings s; s.setValue ("playlist/pos", pos ()); } diff --git a/Playlist.h b/Playlist.h index e5acf21..520c81c 100644 --- a/Playlist.h +++ b/Playlist.h @@ -112,6 +112,7 @@ class PlaylistWindow : public QMainWindow { void mouseMoveEvent (QMouseEvent *event); void enterEvent (QEvent *event); void leaveEvent (QEvent *event); + void moveEvent (QMoveEvent *event); void resizeEvent (QResizeEvent *event); private: