diff --git a/src/frontends/qt/InsetParamsWidget.cpp b/src/frontends/qt/InsetParamsWidget.cpp index 86012a7fa9..9f6d4eeb57 100644 --- a/src/frontends/qt/InsetParamsWidget.cpp +++ b/src/frontends/qt/InsetParamsWidget.cpp @@ -13,6 +13,7 @@ #include "InsetParamsWidget.h" +#include "insets/Inset.h" #include "qt_helpers.h" #include @@ -42,9 +43,9 @@ bool CheckedWidget::check() const } - -InsetParamsWidget::InsetParamsWidget(QWidget * parent) : QWidget(parent) +QString InsetParamsWidget::dialogTitle() const { + return toqstr(insetName(insetCode())); } diff --git a/src/frontends/qt/InsetParamsWidget.h b/src/frontends/qt/InsetParamsWidget.h index 63d9944a58..0811ca5e49 100644 --- a/src/frontends/qt/InsetParamsWidget.h +++ b/src/frontends/qt/InsetParamsWidget.h @@ -13,9 +13,6 @@ #define INSET_PARAMS_WIDGET_H #include "insets/InsetCode.h" -#include "insets/Inset.h" - -#include "qt_helpers.h" #include "FuncCode.h" @@ -57,11 +54,11 @@ class InsetParamsWidget : public QWidget Q_SIGNALS: void changed(); public: - InsetParamsWidget(QWidget * parent); + InsetParamsWidget(QWidget * parent) : QWidget(parent) {} /// This is a base class; destructor must exist and be virtual. virtual ~InsetParamsWidget() {} /// - virtual QString dialogTitle() const { return toqstr(insetName(insetCode())); } + virtual QString dialogTitle() const; /// virtual InsetCode insetCode() const = 0; ///