]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/DockView.h
Make string-widget combination more l7n friendly
[lyx.git] / src / frontends / qt / DockView.h
index 897fb392ffb3083566d52eb579a6ab66b92948a4..aef0c8281ac0cb2f86a8d7a2daff77f96134f7d4 100644 (file)
 #define DOCK_VIEW_H
 
 #include "Dialog.h"
-#include "GuiView.h"
 
 #include <QDockWidget>
-#include <QKeyEvent>
 
 namespace lyx {
 namespace frontend {
@@ -35,10 +33,9 @@ public:
        DockView(GuiView & parent, ///< the main window where to dock.
                 QString const & name, ///< dialog identifier.
                 QString const & title, ///< dialog title.
-                Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of
-                                                                                                                          ///the dock (and
-                                                                                                                          ///also drawer)
-                Qt::WindowFlags flags = 0);
+                Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock
+                                                                  /// (and also drawer)
+                Qt::WindowFlags flags = {});
 
        virtual ~DockView() {}
 
@@ -48,7 +45,7 @@ public:
        /// We don't want to restore geometry session for dock widgets.
        void restoreSession() override {}
 
-       void keyPressEvent(QKeyEvent * ev);
+       void keyPressEvent(QKeyEvent * ev) override;
 
        /// Dialog inherited methods
        //@{