Windows snapped to the mainwindow now move, if the mainwindow is moves
This commit is contained in:
parent
c7531032d7
commit
77f8c332f1
4 changed files with 130 additions and 12 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <QSettings>
|
||||
class QWidget;
|
||||
class QMouseEvent;
|
||||
|
||||
class MainDisplay;
|
||||
class ShadedDisplay;
|
||||
|
@ -45,8 +46,11 @@ class MainWindow : public BaseWindow
|
|||
bool isTimemodeReverse(void) { QSettings s; return s.value("MainWindow/timemodereverse").toBool(); }
|
||||
void setTimemodeReverse(bool b) { QSettings s; return s.setValue("MainWindow/timemodereverse",b); }
|
||||
|
||||
void attachWidgets ();
|
||||
|
||||
public slots:
|
||||
void switchDisplay ();
|
||||
void mouseMoveEvent (QMouseEvent *event);
|
||||
|
||||
private:
|
||||
bool isShaded (void) { QSettings s; return s.value("MainWindow/shaded").toBool(); }
|
||||
|
@ -56,7 +60,7 @@ class MainWindow : public BaseWindow
|
|||
EqualizerWindow *m_equalizer;
|
||||
PlaylistWindow *m_playlistwin;
|
||||
|
||||
QMap<QWidget *,QPoint> m_connectedWidgets;
|
||||
QMap<BaseWindow *,QPoint> m_attachedWidgets;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue