28 lines
583 B
C++
28 lines
583 B
C++
#ifndef FRAMELESSWINDOW_H
|
|
#define FRAMELESSWINDOW_H
|
|
|
|
#include <QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
class QVBoxLayout;
|
|
QT_END_NAMESPACE
|
|
|
|
class FramelessHandler;
|
|
class FramelessWindow : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FramelessWindow(QWidget *parent = nullptr);
|
|
|
|
void setCentralWidget(QWidget * widget);
|
|
|
|
signals:
|
|
|
|
private:
|
|
QVBoxLayout * m_centralLayout = nullptr;
|
|
QWidget * m_centralWidget = nullptr; // just a pointer, doesn't take the ownership.
|
|
FramelessHandler * m_framelessHandler = nullptr;
|
|
};
|
|
|
|
#endif // FRAMELESSWINDOW_H
|