src: Switched all Qt..View implementations to use QtThreadedLambdaFunctor

This commit is contained in:
Eberhard Graether
2017-09-21 01:37:17 +02:00
parent 49caaa1b0b
commit 1e7d934cb8
14 changed files with 340 additions and 462 deletions
+2 -9
View File
@@ -16,6 +16,7 @@ class QtStatusView
, public StatusView
{
Q_OBJECT
public:
QtStatusView(ViewLayout* viewLayout);
virtual ~QtStatusView();
@@ -36,17 +37,9 @@ private:
STATUS = 1,
};
void doClear();
void doRefreshView();
void doAddStatus(const std::vector<Status>& status);
QCheckBox* createFilterCheckbox(const QString& name, QBoxLayout* layout, bool checked = false);
void setStyleSheet() const;
QtThreadedFunctor<const std::vector<Status>&> m_addStatusFunctor;
QtThreadedFunctor<void> m_clearFunctor;
QtThreadedFunctor<void> m_refreshFunctor;
QtThreadedLambdaFunctor m_onQtThread;
QtTable* m_table;
QStandardItemModel* m_model;