~saviq/unity-2d/unmaximize-on-drag

« back to all changes in this revision

Viewing changes to panel/applets/appname/menubarwidget.h

  • Committer: Michał Sawicz
  • Date: 2011-05-14 21:01:08 UTC
  • Revision ID: michal@sawicz.net-20110514210108-d7630tptbqgwtw5x
Unmaximize windows when their menubar is dragged down from the panel

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
private:
61
61
    MenuBarWidget* m_widget;
 
62
    QPoint m_dragStartPosition;
 
63
    bool m_dragInProgress;
62
64
    void menuBarActionEvent(QActionEvent*);
63
65
    void menuBarMouseEvent(QMouseEvent*);
64
66
};
76
78
    void menuBarClosed();
77
79
    void isEmptyChanged();
78
80
    void menuBarDblClicked();
 
81
    void menuBarDragged();
79
82
 
80
83
protected:
81
84
    bool eventFilter(QObject*, QEvent*); // reimp