Changeset View
Changeset View
Standalone View
Standalone View
plugins/scratchpad/emptymessagelistview.h
- This file was added.
1 | #ifndef EMPTYMESSAGELISTVIEW_H | ||||
---|---|---|---|---|---|
2 | #define EMPTYMESSAGELISTVIEW_H | ||||
3 | | ||||
4 | #include <QListView> | ||||
5 | | ||||
6 | // subclass to show a message when the list is empty | ||||
7 | class EmptyMessageListView | ||||
8 | : public QListView | ||||
9 | { | ||||
10 | public: | ||||
11 | EmptyMessageListView(QWidget* parent); | ||||
12 | void setEmptyMessage(const QString& message); | ||||
13 | protected: | ||||
14 | void paintEvent(QPaintEvent* event) override; | ||||
15 | private: | ||||
16 | QString m_message; | ||||
17 | }; | ||||
18 | | ||||
19 | #endif // EMPTYMESSAGELISTVIEW_H |