pineapple-pictures/app/framelesswindow.h
Gary Wang 3abc16d3ff chore: no longer based on QMainWindow
Since most of the features that QMainWindow offered will never be
used in this program. We don't need a statusbar, a menubar, etc.
2020-12-29 23:28:21 +08:00

26 lines
504 B
C++

#ifndef FRAMELESSWINDOW_H
#define FRAMELESSWINDOW_H
#include <QWidget>
QT_BEGIN_NAMESPACE
class QVBoxLayout;
QT_END_NAMESPACE
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.
};
#endif // FRAMELESSWINDOW_H