forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user