OTHER: Fix memleak and fixed small bug in hideEvent handlers
When promoe was minimized or on a different virtual desktop when it was quit, the visible setting of playlist and equalizer was set to false. So even when those two were visible before switching to a different desktop they where set to closed when promoe was started the next time
This commit is contained in:
parent
4df3266088
commit
c7e1a7fa6b
8 changed files with 105 additions and 112 deletions
|
|
@ -20,24 +20,33 @@
|
|||
#include <QMainWindow>
|
||||
#include <QPoint>
|
||||
#include <QMap>
|
||||
class QMouseEvent;
|
||||
class QPoint;
|
||||
|
||||
class MainWindow;
|
||||
class QHideEvent;
|
||||
class QShowEvent;
|
||||
class QMoveEvent;
|
||||
class QMouseEvent;
|
||||
|
||||
class MainWindow;
|
||||
class BaseWindow;
|
||||
typedef QMap<BaseWindow *, QPoint> AttachedWindowMap;
|
||||
|
||||
class BaseWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
|
||||
signals:
|
||||
void visibilityChanged (bool visible);
|
||||
|
||||
public:
|
||||
BaseWindow (QWidget *parent);
|
||||
|
||||
|
||||
bool touches (QWidget *);
|
||||
MainWindow * mw ();
|
||||
|
||||
protected:
|
||||
void hideEvent (QHideEvent *event);
|
||||
void showEvent (QShowEvent *event);
|
||||
void moveEvent (QMoveEvent *event);
|
||||
void mousePressEvent (QMouseEvent *event);
|
||||
void mouseReleaseEvent (QMouseEvent *event);
|
||||
void mouseMoveEvent (QMouseEvent *event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue