]> git.lyx.org Git - features.git/commitdiff
Devirtualize some methods
authorGeorg Baum <baum@lyx.org>
Sat, 18 Jul 2015 14:23:24 +0000 (16:23 +0200)
committerGeorg Baum <baum@lyx.org>
Sat, 18 Jul 2015 14:23:24 +0000 (16:23 +0200)
These do not need to be virtual, since no class inherits from LengthCombo.h,
and they do not exist in the base class either.

src/frontends/qt4/LengthCombo.h

index 1701dcfa0fc73a20b57909f9ca17ad06ed1420ca..3e69de486531b8662f8d1bd1076bb312ee553c7f 100644 (file)
@@ -30,7 +30,7 @@ public:
        LengthCombo(QWidget * parent);
 
        /// set the current item from unit
-       virtual void setCurrentItem(lyx::Length::UNIT unit);
+       void setCurrentItem(lyx::Length::UNIT unit);
        /// set the current item from length string
        virtual void setCurrentItem(QString const & item);
        /// set the current item from int
@@ -40,11 +40,11 @@ public:
        /// enable the widget
        virtual void setEnabled(bool b);
        /// use the %-items?
-       virtual void noPercents();
+       void noPercents();
        /// remove a unit from the combo
-       virtual void removeUnit(lyx::Length::UNIT unit);
+       void removeUnit(lyx::Length::UNIT unit);
        /// add a unit to the combo
-       virtual void addUnit(lyx::Length::UNIT unit);
+       void addUnit(lyx::Length::UNIT unit);
 
 protected Q_SLOTS:
        virtual void hasActivated(int index);