Move WindowType to QWindow.
(cherry picked from commit cfa7dc87bc962bd0f3a43a464723d74d87f997e2)
This commit is contained in:
parent
498f938f2d
commit
6d28965b10
@ -61,7 +61,15 @@ class Q_GUI_EXPORT QWindow : public QObject
|
|||||||
Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle)
|
Q_PROPERTY(QString windowTitle READ windowTitle WRITE setWindowTitle)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QWindow(const QWindowFormat &format, QWindow *parent);
|
enum WindowType {
|
||||||
|
Window = 0x00000001,
|
||||||
|
Dialog = 0x00000002,
|
||||||
|
Popup = 0x00000004,
|
||||||
|
ToolTip = 0x00000008
|
||||||
|
};
|
||||||
|
Q_DECLARE_FLAGS(WindowTypes, WindowType)
|
||||||
|
|
||||||
|
QWindow(const QWindowFormat &format, WindowType type = Window, QWindow *parent = 0);
|
||||||
void setVisible(bool visible);
|
void setVisible(bool visible);
|
||||||
void create();
|
void create();
|
||||||
|
|
||||||
@ -129,6 +137,8 @@ private:
|
|||||||
Q_DISABLE_COPY(QWindow)
|
Q_DISABLE_COPY(QWindow)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_OPERATORS_FOR_FLAGS(QWindow::WindowTypes)
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
QT_END_HEADER
|
QT_END_HEADER
|
||||||
|
@ -60,16 +60,6 @@ public:
|
|||||||
};
|
};
|
||||||
Q_DECLARE_FLAGS(FormatOptions, FormatOption)
|
Q_DECLARE_FLAGS(FormatOptions, FormatOption)
|
||||||
|
|
||||||
#if 0
|
|
||||||
enum WindowType {
|
|
||||||
Window = 0x00000001,
|
|
||||||
Dialog = 0x00000002,
|
|
||||||
Popup = 0x00000004,
|
|
||||||
ToolTip = 0x00000008
|
|
||||||
};
|
|
||||||
Q_DECLARE_FLAGS(WindowTypes, WindowType)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum ColorFormat {
|
enum ColorFormat {
|
||||||
InvalidColorFormat,
|
InvalidColorFormat,
|
||||||
RGB565,
|
RGB565,
|
||||||
|
Loading…
Reference in New Issue
Block a user