Files
newspark110/main/mainwindowx.h
Chenwenxuan edac2715f0 init
2024-03-06 14:54:30 +08:00

30 lines
651 B
C++

#ifndef MAINWINDOWX_H
#define MAINWINDOWX_H
#include <QMainWindow>
/**
* an eXtension of QMainWindow;
* It is intended to be generic,
* for use with other projects.
*/
class MainWindowX : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindowX(QWidget* parent = 0);
void sortWidgetsByTitle(QList<QDockWidget*>& list);
void sortWidgetsByTitle(QList<QToolBar*>& list);
public slots:
void toggleRightDockArea(bool state);
void toggleLeftDockArea(bool state);
void toggleTopDockArea(bool state);
void toggleBottomDockArea(bool state);
void toggleFloatingDockwidgets(bool state);
};
#endif // MAINWINDOWX_H