diff --git a/src/frontends/qt4/GuiIdListModel.cpp b/src/frontends/qt4/GuiIdListModel.cpp index 807235297a..ceb88baaa5 100644 --- a/src/frontends/qt4/GuiIdListModel.cpp +++ b/src/frontends/qt4/GuiIdListModel.cpp @@ -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(); diff --git a/src/frontends/qt4/GuiIdListModel.h b/src/frontends/qt4/GuiIdListModel.h index 48709762e9..b0eb484990 100644 --- a/src/frontends/qt4/GuiIdListModel.h +++ b/src/frontends/qt4/GuiIdListModel.h @@ -16,12 +16,12 @@ #ifndef GUIIDLISTMODEL_H #define GUIIDLISTMODEL_H +#include "support/qstring_helpers.h" + #include #include #include -#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(); } ; };