mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 16:01:36 +08:00
75ad302d21
Number of warnings like this has been fixed DockWidget.h:62:9: warning: class 'DockContainerWidgetPrivate' was previously declared as a struct [-Wmismatched-tags] Also in ads_globals.cpp Clang didn’t like how that code setup so I changed it to what I think is the correct way. This would be good to get verified.
64 lines
1.9 KiB
C++
64 lines
1.9 KiB
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
/*******************************************************************************
|
|
** Qt Advanced Docking System
|
|
** Copyright (C) 2017 Uwe Kindler
|
|
**
|
|
** This library is free software; you can redistribute it and/or
|
|
** modify it under the terms of the GNU Lesser General Public
|
|
** License as published by the Free Software Foundation; either
|
|
** version 2.1 of the License, or (at your option) any later version.
|
|
**
|
|
** This library is distributed in the hope that it will be useful,
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
** Lesser General Public License for more details.
|
|
**
|
|
** You should have received a copy of the GNU Lesser General Public
|
|
** License along with this library; If not, see <http://www.gnu.org/licenses/>.
|
|
******************************************************************************/
|
|
|
|
|
|
//============================================================================
|
|
/// \file MainWindow.h
|
|
/// \author Uwe Kindler
|
|
/// \date 13.02.2018
|
|
/// \brief Declaration of CMainWindow class
|
|
//============================================================================
|
|
|
|
|
|
//============================================================================
|
|
// INCLUDES
|
|
//============================================================================
|
|
#include <QMainWindow>
|
|
|
|
|
|
|
|
struct MainWindowPrivate;
|
|
|
|
|
|
/**
|
|
* Simple main window for demo
|
|
*/
|
|
class CMainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
MainWindowPrivate* d;///< private data - pimpl
|
|
friend struct MainWindowPrivate;
|
|
|
|
protected:
|
|
virtual void closeEvent(QCloseEvent* event) override;
|
|
|
|
public:
|
|
explicit CMainWindow(QWidget *parent = 0);
|
|
virtual ~CMainWindow();
|
|
|
|
private slots:
|
|
void on_actionSaveState_triggered(bool);
|
|
void on_actionRestoreState_triggered(bool);
|
|
void savePerspective();
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|