From 2cb36faa5329de9250f06e08d77793b6f898b88c Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 12 Nov 2013 20:24:19 +0100 Subject: [PATCH] =?UTF-8?q?=C2=A8New=20files.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 4 ++++ src/core/feedsmodel.cpp | 5 +++++ src/core/feedsmodel.h | 19 +++++++++++++++++++ src/core/feedsproxymodel.cpp | 6 ++++++ src/core/feedsproxymodel.h | 19 +++++++++++++++++++ 5 files changed, 53 insertions(+) create mode 100644 src/core/feedsmodel.cpp create mode 100644 src/core/feedsmodel.h create mode 100644 src/core/feedsproxymodel.cpp create mode 100644 src/core/feedsproxymodel.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c45cd5cc..461c808b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,6 +212,8 @@ set(APP_SOURCES src/core/databasefactory.cpp src/core/messagesmodel.cpp src/core/messagesproxymodel.cpp + src/core/feedsmodel.cpp + src/core/feedsproxymodel.cpp # Basic application sources. src/main.cpp @@ -257,6 +259,8 @@ set(APP_HEADERS src/core/databasefactory.h src/core/messagesmodel.h src/core/messagesproxymodel.h + src/core/feedsmodel.h + src/core/feedsproxymodel.h ) # Add form files. diff --git a/src/core/feedsmodel.cpp b/src/core/feedsmodel.cpp new file mode 100644 index 000000000..ba3c5e502 --- /dev/null +++ b/src/core/feedsmodel.cpp @@ -0,0 +1,5 @@ +#include "core/feedsmodel.h" + + +FeedsModel::FeedsModel(QObject *parent) : QAbstractItemModel(parent) { +} diff --git a/src/core/feedsmodel.h b/src/core/feedsmodel.h new file mode 100644 index 000000000..038719360 --- /dev/null +++ b/src/core/feedsmodel.h @@ -0,0 +1,19 @@ +#ifndef FEEDSMODEL_H +#define FEEDSMODEL_H + +#include + + +class FeedsModel : public QAbstractItemModel { + Q_OBJECT + + public: + explicit FeedsModel(QObject *parent = 0); + + signals: + + public slots: + +}; + +#endif // FEEDSMODEL_H diff --git a/src/core/feedsproxymodel.cpp b/src/core/feedsproxymodel.cpp new file mode 100644 index 000000000..f9d00a44b --- /dev/null +++ b/src/core/feedsproxymodel.cpp @@ -0,0 +1,6 @@ +#include "core/feedsproxymodel.h" + + +FeedsProxyModel::FeedsProxyModel(QObject *parent) + : QSortFilterProxyModel(parent) { +} diff --git a/src/core/feedsproxymodel.h b/src/core/feedsproxymodel.h new file mode 100644 index 000000000..c737ae4b8 --- /dev/null +++ b/src/core/feedsproxymodel.h @@ -0,0 +1,19 @@ +#ifndef FEEDSPROXYMODEL_H +#define FEEDSPROXYMODEL_H + +#include + + +class FeedsProxyModel : public QSortFilterProxyModel { + Q_OBJECT + + public: + explicit FeedsProxyModel(QObject *parent = 0); + + signals: + + public slots: + +}; + +#endif // FEEDSPROXYMODEL_H