diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-03-13 16:20:06 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2012-03-15 10:21:43 +0100 |
commit | a2d3d7f3bf00a7cd95d0327c0d1b22bcfda42667 (patch) | |
tree | 1acc194bf71e0099e258840d743585da2307722f /src/libs/utils/appmainwindow.h | |
parent | 254185c4ea481ea53d960d34134c04a8a2dab167 (diff) | |
download | qt-creator-a2d3d7f3bf00a7cd95d0327c0d1b22bcfda42667.tar.gz |
Move EventFilteringMainWindow to utils
Also rename it to AppMainWindow. We add some more functionality to
it in following patches.
Change-Id: I752ccd07759eaaf6a2e96ec758e35b595bf788a2
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/libs/utils/appmainwindow.h')
-rw-r--r-- | src/libs/utils/appmainwindow.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/libs/utils/appmainwindow.h b/src/libs/utils/appmainwindow.h new file mode 100644 index 0000000000..928adb678d --- /dev/null +++ b/src/libs/utils/appmainwindow.h @@ -0,0 +1,67 @@ +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** +** GNU Lesser General Public License Usage +** +** This file may be used under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation and +** appearing in the file LICENSE.LGPL included in the packaging of this file. +** Please review the following information to ensure the GNU Lesser General +** Public License version 2.1 requirements will be met: +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** Other Usage +** +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +**************************************************************************/ + +#ifndef APPMAINWINDOW_H +#define APPMAINWINDOW_H + +#include "utils_global.h" +#include <QMainWindow> + +namespace Utils { + +/*! + * This class only exists because we can't include windows.h in mainwindow.cpp + * because windows defines an IContext... + */ + +class QTCREATOR_UTILS_EXPORT AppMainWindow : public QMainWindow +{ + Q_OBJECT +public: + AppMainWindow(); + +signals: + void deviceChange(); + +#ifdef Q_OS_WIN +protected: + virtual bool winEvent(MSG *message, long *result); + virtual bool event(QEvent *event); +#endif + +private: + const int m_deviceEventId; +}; + +} // Utils + +#endif // APPMAINWINDOW_H |