can't use windowId in QML on Windows
This commit is contained in:
parent
091bde342d
commit
531031f753
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user