]> git.lyx.org Git - features.git/commitdiff
InsetParamsWidget(): fix method constness.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 18 Feb 2010 07:56:38 +0000 (07:56 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 18 Feb 2010 07:56:38 +0000 (07:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33493 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/FloatPlacement.h
src/frontends/qt4/GuiBox.h
src/frontends/qt4/GuiERT.h
src/frontends/qt4/GuiInfo.h
src/frontends/qt4/GuiVSpace.h
src/frontends/qt4/InsetParamsWidget.h

index dca71b9dbabb8449cbf3e9b48bb3d37ffb18dde6..73ed4eb01003b27cd2f4e6862dbf6e4f2a9461d2 100644 (file)
@@ -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;
        //@}
index 25b6bfa9b35fae5c739b465678d9db59eab3a477..320efdab2df97e051c9c47bc9188304c15aa9fde 100644 (file)
@@ -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;
        //@}
index 8177b01b8d0b77546fc902c778712447eb3b0c1a..18a1a9163cee358ed343c6ce1fbf8d60bda80448 100644 (file)
@@ -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;
        //@}
index 5b8259ba7cc96f09708b758acccb2e85d4c22ec0..8911172c0aa64142dadd5f7286848a01362775e9 100644 (file)
@@ -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;
        //@}
index dd1d8830bad4976b3842c70e430866314c0dd319..f36a519c99cccd5a3ae420f3878395519e846a3c 100644 (file)
@@ -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;
        //@}
index 0e989c7e3f3de0441d56025ed98b3353825ec230..d0fbd1157f93a0e534f1f012c8cc3989c13f22f3 100644 (file)
@@ -58,9 +58,9 @@ public:
        /// This is a base class; destructor must exist and be virtual.\r
        virtual ~InsetParamsWidget() {}\r
        ///\r
-       virtual InsetCode insetCode() = 0;\r
+       virtual InsetCode insetCode() const = 0;\r
        ///\r
-       virtual FuncCode creationCode() = 0;\r
+       virtual FuncCode creationCode() const = 0;\r
        ///\r
        virtual void paramsToDialog(Inset const *) = 0;\r
        ///\r