mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-27 00:11:33 +08:00
34 lines
571 B
C++
34 lines
571 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include "DockManager.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
QT_END_NAMESPACE
|
|
|
|
/**
|
|
* This example shows, how to place a dock widget container and a static
|
|
* sidebar into a QMainWindow
|
|
*/
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
~MainWindow();
|
|
|
|
protected:
|
|
virtual void closeEvent(QCloseEvent *event) override;
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
ads::CDockManager* m_DockManager;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|