summaryrefslogtreecommitdiffstats
path: root/application/widgets/VersionListView.h
diff options
context:
space:
mode:
Diffstat (limited to 'application/widgets/VersionListView.h')
-rw-r--r--application/widgets/VersionListView.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/application/widgets/VersionListView.h b/application/widgets/VersionListView.h
index f33a6fdb..4fcbd8ee 100644
--- a/application/widgets/VersionListView.h
+++ b/application/widgets/VersionListView.h
@@ -22,11 +22,22 @@ class VersionListView : public QTreeView
{
Q_OBJECT
public:
+
explicit VersionListView(QWidget *parent = 0);
virtual void paintEvent(QPaintEvent *event) override;
- void setEmptyString(QString emptyString);
virtual void setModel ( QAbstractItemModel* model );
+ enum EmptyMode
+ {
+ Empty,
+ String,
+ ErrorString
+ };
+
+ void setEmptyString(QString emptyString);
+ void setEmptyErrorString(QString emptyErrorString);
+ void setEmptyMode(EmptyMode mode);
+
public slots:
virtual void reset() override;
@@ -36,8 +47,11 @@ protected slots:
private: /* methods */
void paintInfoLabel(QPaintEvent *event);
+ void updateEmptyViewPort();
private: /* variables */
int m_itemCount = 0;
QString m_emptyString;
+ QString m_emptyErrorString;
+ EmptyMode m_emptyMode = Empty;
};