diff --git a/src/frontends/qt4/FloatPlacement.h b/src/frontends/qt4/FloatPlacement.h index dca71b9dba..73ed4eb010 100644 --- a/src/frontends/qt4/FloatPlacement.h +++ b/src/frontends/qt4/FloatPlacement.h @@ -33,8 +33,8 @@ public: /// \name DialogView inherited methods //@{ - InsetCode insetCode() { return FLOAT_CODE; } - FuncCode creationCode() { return LFUN_FLOAT_INSERT; } + InsetCode insetCode() const { return FLOAT_CODE; } + FuncCode creationCode() const { return LFUN_FLOAT_INSERT; } void paramsToDialog(Inset const *); docstring dialogToParams() const; //@} diff --git a/src/frontends/qt4/GuiBox.h b/src/frontends/qt4/GuiBox.h index 25b6bfa9b3..320efdab2d 100644 --- a/src/frontends/qt4/GuiBox.h +++ b/src/frontends/qt4/GuiBox.h @@ -37,8 +37,8 @@ private Q_SLOTS: private: /// \name DialogView inherited methods //@{ - InsetCode insetCode() { return BOX_CODE; } - FuncCode creationCode() { return LFUN_BOX_INSERT; } + InsetCode insetCode() const { return BOX_CODE; } + FuncCode creationCode() const { return LFUN_BOX_INSERT; } void paramsToDialog(Inset const *); docstring dialogToParams() const; //@} diff --git a/src/frontends/qt4/GuiERT.h b/src/frontends/qt4/GuiERT.h index 8177b01b8d..18a1a9163c 100644 --- a/src/frontends/qt4/GuiERT.h +++ b/src/frontends/qt4/GuiERT.h @@ -28,8 +28,8 @@ public: private: /// \name InsetParamsWidget inherited methods //@{ - InsetCode insetCode() { return ERT_CODE; } - FuncCode creationCode() { return LFUN_INSET_INSERT; } + InsetCode insetCode() const { return ERT_CODE; } + FuncCode creationCode() const { return LFUN_INSET_INSERT; } void paramsToDialog(Inset const *); docstring dialogToParams() const; //@} diff --git a/src/frontends/qt4/GuiInfo.h b/src/frontends/qt4/GuiInfo.h index 5b8259ba7c..8911172c0a 100644 --- a/src/frontends/qt4/GuiInfo.h +++ b/src/frontends/qt4/GuiInfo.h @@ -31,8 +31,8 @@ public: private: /// \name InsetParamsWidget inherited methods //@{ - InsetCode insetCode() { return INFO_CODE; } - FuncCode creationCode() { return LFUN_INFO_INSERT; } + InsetCode insetCode() const { return INFO_CODE; } + FuncCode creationCode() const { return LFUN_INFO_INSERT; } void paramsToDialog(Inset const *); docstring dialogToParams() const; //@} diff --git a/src/frontends/qt4/GuiVSpace.h b/src/frontends/qt4/GuiVSpace.h index dd1d8830ba..f36a519c99 100644 --- a/src/frontends/qt4/GuiVSpace.h +++ b/src/frontends/qt4/GuiVSpace.h @@ -35,8 +35,8 @@ private Q_SLOTS: private: /// \name InsetParamsWidget inherited methods //@{ - InsetCode insetCode() { return VSPACE_CODE; } - FuncCode creationCode() { return LFUN_INSET_INSERT; } + InsetCode insetCode() const { return VSPACE_CODE; } + FuncCode creationCode() const { return LFUN_INSET_INSERT; } void paramsToDialog(Inset const *); docstring dialogToParams() const; //@} diff --git a/src/frontends/qt4/InsetParamsWidget.h b/src/frontends/qt4/InsetParamsWidget.h index 0e989c7e3f..d0fbd1157f 100644 --- a/src/frontends/qt4/InsetParamsWidget.h +++ b/src/frontends/qt4/InsetParamsWidget.h @@ -58,9 +58,9 @@ public: /// This is a base class; destructor must exist and be virtual. virtual ~InsetParamsWidget() {} /// - virtual InsetCode insetCode() = 0; + virtual InsetCode insetCode() const = 0; /// - virtual FuncCode creationCode() = 0; + virtual FuncCode creationCode() const = 0; /// virtual void paramsToDialog(Inset const *) = 0; ///