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.
This commit is contained in:
Gary Wang
2020-12-29 23:28:17 +08:00
parent dc17e1d0b1
commit 3abc16d3ff
5 changed files with 66 additions and 17 deletions

View File

@ -1,7 +1,8 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "framelesswindow.h"
#include <QParallelAnimationGroup>
#include <QPropertyAnimation>
#include <QPushButton>
@ -15,7 +16,7 @@ class ToolButton;
class GraphicsView;
class NavigatorView;
class BottomButtonGroup;
class MainWindow : public QMainWindow
class MainWindow : public FramelessWindow
{
Q_OBJECT