]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToc.h
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiToc.h
index c7a797fb673a9ac3f8f678ae66043b6b9ca55ea4..6c7db9dae7aadc07ddcb6891cbd0898afc29388a 100644 (file)
 
 #include "DockView.h"
 
-#include "insets/InsetCommandParams.h"
-
-#include "TocBackend.h"
-
-#include <QStandardItemModel>
-
-#include <vector>
-
 namespace lyx {
 namespace frontend {
 
@@ -49,6 +41,8 @@ public:
        void updateView();
        void enableView(bool enable);
        bool wantInitialFocus() const { return false; }
+       void closeEvent(QCloseEvent * event);
+       bool isClosing() const { return is_closing_; }
 
 public:
        /// clean-up on hide.
@@ -65,6 +59,8 @@ public:
 private:
        ///
        TocWidget * widget_;
+       ///
+       bool is_closing_;
 };
 
 } // namespace frontend