-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12759 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
jef
committed
Jan 14, 2010
1 parent
f4d909e
commit 3e184f7
Showing
18 changed files
with
345 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#ifndef QWINEVENTNOTIFIER_H | ||
#define QWINEVENTNOTIFIER_H | ||
#include <QObject> | ||
|
||
#include <windows.h> | ||
|
||
// Ugly: copied private Qt header file | ||
QT_BEGIN_NAMESPACE | ||
|
||
class Q_CORE_EXPORT QWinEventNotifier : public QObject | ||
{ | ||
Q_OBJECT | ||
Q_DECLARE_PRIVATE(QObject) | ||
|
||
public: | ||
explicit QWinEventNotifier(QObject *parent = 0); | ||
explicit QWinEventNotifier(HANDLE hEvent, QObject *parent = 0); | ||
~QWinEventNotifier(); | ||
|
||
void setHandle(HANDLE hEvent); | ||
HANDLE handle() const; | ||
|
||
bool isEnabled() const; | ||
|
||
public Q_SLOTS: | ||
void setEnabled(bool enable); | ||
|
||
Q_SIGNALS: | ||
void activated(HANDLE hEvent); | ||
|
||
protected: | ||
bool event(QEvent *e); | ||
|
||
private: | ||
Q_DISABLE_COPY(QWinEventNotifier) | ||
|
||
HANDLE handleToEvent; | ||
bool enabled; | ||
}; | ||
|
||
QT_END_NAMESPACE | ||
|
||
#endif // QWINEVENTNOTIFIER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
#include "qwineventnotifier.h" | ||
|
||
#include <QMutexLocker> | ||
#include <QDebug> | ||
|
Oops, something went wrong.