mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 21:37:04 +08:00
30 lines
652 B
C++
30 lines
652 B
C++
#ifndef WINDOWHELPER_H
|
|
#define WINDOWHELPER_H
|
|
|
|
#include <QObject>
|
|
#include <QQuickWindow>
|
|
#include <QQuickItem>
|
|
#include <QWindow>
|
|
#include "FramelessView.h"
|
|
|
|
class WindowHelper : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WindowHelper(QObject *parent = nullptr);
|
|
|
|
Q_INVOKABLE void initWindow(FramelessView* window);
|
|
Q_INVOKABLE void setTitle(const QString& text);
|
|
Q_INVOKABLE void setMinimumWidth(int width);
|
|
Q_INVOKABLE void setMaximumWidth(int width);
|
|
Q_INVOKABLE void setMinimumHeight(int height);
|
|
Q_INVOKABLE void setMaximumHeight(int height);
|
|
|
|
private:
|
|
FramelessView* window;
|
|
|
|
};
|
|
|
|
#endif // WINDOWHELPER_H
|