]> git.lyx.org Git - lyx.git/commitdiff
Help from Andre.
authorRichard Heck <rgheck@comcast.net>
Sat, 12 Jan 2008 16:11:55 +0000 (16:11 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 12 Jan 2008 16:11:55 +0000 (16:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22524 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiIdListModel.cpp
src/frontends/qt4/GuiIdListModel.h

index 807235297affe766b446490c3e613f30972c7914..ceb88baaa5d2cdd152b653d513e3a47be87eb9b3 100644 (file)
@@ -21,11 +21,6 @@ using std::vector;
 namespace lyx {
 namespace frontend {
 
-GuiIdListModel::GuiIdListModel() :
-               QAbstractListModel()
-{}
-
-
 QVariant GuiIdListModel::data(QModelIndex const & index, int role) const
 {
        int const row = index.row();
index 48709762e9bee9055027c921f6491bebf28a0b69..b0eb4849905f7d5ba7ec3c670118b14793d60b53 100644 (file)
 #ifndef GUIIDLISTMODEL_H
 #define GUIIDLISTMODEL_H
 
+#include "support/qstring_helpers.h"
+
 #include <QAbstractListModel>
 #include <vector>
 #include <string>
 
-#include "support/qstring_helpers.h"
-
 namespace lyx {
 namespace frontend {
 
@@ -39,7 +39,7 @@ namespace frontend {
 class GuiIdListModel : public QAbstractListModel {
 public:
        ///
-       explicit GuiIdListModel();
+       explicit GuiIdListModel() {};
        //////////////////////////////////////////////////////////////////////
        // Methods overridden from QAbstractListModel
        //////////////////////////////////////////////////////////////////////
@@ -63,16 +63,16 @@ public:
        // New methods
        //////////////////////////////////////////////////////////////////////
        ///
-       inline void setUIString(QModelIndex const & index, QString const & value)
+       void setUIString(QModelIndex const & index, QString const & value)
                        { setData(index, value); };
        ///
-       inline void setUIString(int const i, std::string const & value)
+       void setUIString(int const i, std::string const & value)
                        {  setUIString(index(i), toqstr(value));  };
        ///
-       inline void setIDString(QModelIndex const & index, QString const & value)
+       void setIDString(QModelIndex const & index, QString const & value)
                        { setData(index, value, Qt::UserRole); };
        ///
-       inline void setIDString(int const i, std::string const & value)
+       void setIDString(int const i, std::string const & value)
                        { setIDString(index(i), toqstr(value)); };
        ///
        virtual QString getIDString(QModelIndex const & index) const
@@ -112,7 +112,7 @@ private:
        ///
        inline bool rowIsValid(int const i) const
        {
-               return (i >= 0 && (i <= userData_.size()));
+               return i >= 0 && i <= userData_.size();
        }
 ;
 };