proxy to setAttribute()
This commit is contained in:
parent
8128291fee
commit
fcfafcbc6e
@ -159,5 +159,10 @@ void DialogProxy::showPopup(QGraphicsObject *item)
|
||||
emit visibleChanged();
|
||||
}
|
||||
|
||||
void DialogProxy::setAttribute(int attribute, bool on)
|
||||
{
|
||||
m_dialog->setAttribute((Qt::WidgetAttribute)attribute, on);
|
||||
}
|
||||
|
||||
#include "dialog.moc"
|
||||
|
||||
|
@ -39,6 +39,10 @@ class DialogProxy : public QObject
|
||||
Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged)
|
||||
|
||||
public:
|
||||
enum WidgetAttribute {
|
||||
WA_X11NetWmWindowTypeDock = Qt::WA_X11NetWmWindowTypeDock
|
||||
};
|
||||
|
||||
DialogProxy(QObject *parent = 0);
|
||||
~DialogProxy();
|
||||
|
||||
@ -49,6 +53,8 @@ public:
|
||||
void setVisible(const bool visible);
|
||||
|
||||
Q_INVOKABLE void showPopup(QGraphicsObject *item);
|
||||
//FIXME:: Qt::WidgetAttribute should be already
|
||||
Q_INVOKABLE void setAttribute(int attribute, bool on);
|
||||
|
||||
Q_SIGNALS:
|
||||
void mainItemChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user