diff --git a/declarativeimports/core/dialog.cpp b/declarativeimports/core/dialog.cpp index 427927dc0..81de30b68 100644 --- a/declarativeimports/core/dialog.cpp +++ b/declarativeimports/core/dialog.cpp @@ -350,10 +350,12 @@ int DialogProxy::windowFlags() const return (int)m_flags; } +#ifndef Q_WS_WIN qulonglong DialogProxy::windowId() const { return m_dialog->winId(); } +#endif void DialogProxy::setWindowFlags(const int flags) { diff --git a/declarativeimports/core/dialog.h b/declarativeimports/core/dialog.h index 1864eb736..ce416c931 100644 --- a/declarativeimports/core/dialog.h +++ b/declarativeimports/core/dialog.h @@ -139,11 +139,13 @@ class DialogProxy : public QObject * Plasma Location of the dialog window. Useful if this dialog is apopup for a panel */ Q_PROPERTY(int location READ location WRITE setLocation NOTIFY locationChanged) - +//This won't be available on windows, but should be used only by kwin and never by applets anyways +#ifndef Q_WS_WIN /** * Window ID of the dialog window. **/ Q_PROPERTY(qulonglong windowId READ windowId CONSTANT) +#endif public: enum WidgetAttribute { @@ -185,7 +187,9 @@ public: QObject *margins() const; +#ifndef Q_WS_WIN qulonglong windowId() const; +#endif /** * @returns The suggested screen position for the popup