diff --git a/src/model/danboorupoolmodel.cpp b/src/model/danboorupoolmodel.cpp index 9378a13..6930602 100644 --- a/src/model/danboorupoolmodel.cpp +++ b/src/model/danboorupoolmodel.cpp @@ -44,7 +44,6 @@ DanbooruPoolModel::~DanbooruPoolModel() void DanbooruPoolModel::addPool(DanbooruPool *pool) { beginInsertRows(QModelIndex(), m_items.size(), m_items.size()); - qDebug() << "POOL NAME" << pool->name(); m_items.append(pool); endInsertRows(); } @@ -117,6 +116,11 @@ void DanbooruPoolModel::clear() reset(); } +DanbooruPool* DanbooruPoolModel::poolAt(int index) const +{ + return m_items.at(index); +} + } // namespace Danbooru \ No newline at end of file diff --git a/src/model/danboorupoolmodel.h b/src/model/danboorupoolmodel.h index e218fce..df038eb 100644 --- a/src/model/danboorupoolmodel.h +++ b/src/model/danboorupoolmodel.h @@ -40,6 +40,7 @@ public: QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE; QVariant headerData(int section, Qt::Orientation orientation, int role) const Q_DECL_OVERRIDE; void clear(); + DanbooruPool* poolAt(int index) const; private: QVector m_items;