From 41bfcb06c9c0ff97ab69f323e96117b46529828b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 15 Sep 2019 20:05:18 +0800 Subject: qrtclient as submodule instead while librtclient has become qrtclient's submodule --- tasklist.hxx | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 tasklist.hxx (limited to 'tasklist.hxx') diff --git a/tasklist.hxx b/tasklist.hxx deleted file mode 100644 index 20b2220..0000000 --- a/tasklist.hxx +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef TASKLIST_HXX -#define TASKLIST_HXX - -#include - -class Task -{ - public: - Task(QString subject) : m_subject{subject} - {} - QString const& subject() const { return m_subject; } - - private: - QString m_subject; -}; - -class TaskList : public QAbstractListModel -{ - Q_OBJECT - Q_PROPERTY(int rowCount READ rowCount NOTIFY rowCountChanged) - - public: - enum TaskRoles { - SubjectRole = Qt::UserRole + 1, - }; - - explicit TaskList(QObject* parent = nullptr) - : QAbstractListModel{parent} {} - ~TaskList() {} - - int rowCount(QModelIndex const& parent = QModelIndex()) const Q_DECL_OVERRIDE; - QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE; - - protected: - QHash roleNames() const Q_DECL_OVERRIDE; - - signals: - void rowCountChanged(); - - private: - QList tasks; - void addTask(Task const& task); - - private slots: - void addTasks(struct rt_ticketlist* taskList); -}; - -#endif // TASKLIST_HXX -- cgit v1.2.3