FluentUI/src/WindowHelper.h

28 lines
564 B
C
Raw Normal View History

2023-02-27 18:46:39 +08:00
#ifndef WINDOWHELPER_H
#define WINDOWHELPER_H
#include <QObject>
#include <QQuickWindow>
#include <QQuickItem>
2023-02-27 23:04:52 +08:00
#include <QWindow>
#include "FramelessView.h"
2023-02-27 18:46:39 +08:00
2023-02-27 23:04:52 +08:00
class WindowHelper : public QObject
2023-02-27 18:46:39 +08:00
{
Q_OBJECT
public:
explicit WindowHelper(QObject *parent = nullptr);
2023-02-27 23:04:52 +08:00
Q_INVOKABLE void initWindow(FramelessView* window);
2023-02-27 18:46:39 +08:00
Q_INVOKABLE void setTitle(const QString& text);
2023-03-01 11:58:30 +08:00
Q_INVOKABLE void setMinimumSize(const QSize &size);
Q_INVOKABLE void setMaximumSize(const QSize &size);
2023-02-27 18:46:39 +08:00
2023-02-27 23:04:52 +08:00
private:
FramelessView* window;
2023-02-27 18:46:39 +08:00
};
#endif // WINDOWHELPER_H