mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 20:25:29 +08:00
refs #503, thanks to RW`s research, changed to non-QDockwidget navigator
* QDialog based navigator * Removed no longer used info area and navigator dock widget * fixed style sheet * added some space which can be used to drag navigator when frameless * callback when frameless is toggled Status: https://dev.vatsim-germany.org/issues/503#note-10
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackgui/enableforframelesswindow.h"
|
||||
#include "blackmisc/icons.h"
|
||||
#include <QDialog>
|
||||
#include <QScopedPointer>
|
||||
#include <QMenu>
|
||||
@@ -24,13 +25,12 @@ namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
|
||||
/*!
|
||||
* Navigators dialog
|
||||
* Navigator dialog
|
||||
*/
|
||||
class BLACKGUI_EXPORT CNavigatorDialog :
|
||||
public QDialog,
|
||||
public CEnableForFramelessWindow
|
||||
public QDialog,
|
||||
public CEnableForFramelessWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -44,9 +44,13 @@ namespace BlackGui
|
||||
//! Navigator
|
||||
void buildNavigator(int columns);
|
||||
|
||||
public slots:
|
||||
//! Toggle frameless mode
|
||||
void toggleFrameless();
|
||||
|
||||
//! Toggle visibility
|
||||
void toggleNavigator();
|
||||
|
||||
protected:
|
||||
//! Style sheet has changed
|
||||
void ps_onStyleSheetsChanged();
|
||||
@@ -57,6 +61,12 @@ namespace BlackGui
|
||||
//! \copydoc QMainWindow::mousePressEvent
|
||||
virtual void mousePressEvent(QMouseEvent *event) override;
|
||||
|
||||
//! \copydoc QMainWindow::mousePressEvent
|
||||
virtual void changeEvent(QEvent *evt) override;
|
||||
|
||||
//! \copydoc CEnableForFramelessWindow::windowFlagsChanged
|
||||
virtual void windowFlagsChanged() override;
|
||||
|
||||
private slots:
|
||||
//! Context menu
|
||||
void ps_showContextMenu(const QPoint &pos);
|
||||
@@ -76,8 +86,8 @@ namespace BlackGui
|
||||
|
||||
QScopedPointer<Ui::CNavigatorDialog> ui;
|
||||
bool m_firstBuild = true;
|
||||
int m_currentColumns = 1;
|
||||
};
|
||||
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user