mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-04 09:05:30 +08:00
update
This commit is contained in:
@ -4,20 +4,21 @@
|
||||
#include <QObject>
|
||||
#include <QQuickWindow>
|
||||
#include <QQuickItem>
|
||||
#include <QWindow>
|
||||
#include "FramelessView.h"
|
||||
|
||||
class WindowHelper : public QObject, public QQmlParserStatus
|
||||
class WindowHelper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit WindowHelper(QObject *parent = nullptr);
|
||||
void classBegin() override;
|
||||
void componentComplete() override;
|
||||
|
||||
Q_INVOKABLE void initWindow(FramelessView* window);
|
||||
Q_INVOKABLE void setTitle(const QString& text);
|
||||
private:
|
||||
|
||||
QQuickWindow* window;
|
||||
private:
|
||||
FramelessView* window;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user