Show list of external windows in Window menu, and in Dock menu on OS X

Change-Id: I8b81fff7e33878282e9a4c9d9335985a5949cba2
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Eike Ziller
2014-08-25 17:28:25 +02:00
parent 8e2ccd28b6
commit 9c36ad3a20
4 changed files with 106 additions and 1 deletions

View File

@@ -36,12 +36,31 @@
QT_BEGIN_NAMESPACE
class QAction;
class QMenu;
class QWidget;
QT_END_NAMESPACE
namespace Core {
namespace Internal {
class WindowList : public QObject
{
Q_OBJECT
public:
static void addWindow(QWidget *window);
static void removeWindow(QWidget *window);
static void setActiveWindow(QWidget *window);
private:
static void activateWindow(QAction *action);
static void updateTitle(QWidget *window);
static QMenu *m_dockMenu;
static QList<QWidget *> m_windows;
static QList<QAction *> m_windowActions;
static QList<Id> m_windowActionIds;
};
class WindowSupport : public QObject
{
Q_OBJECT