summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/EventViewer/QtEventWindow.h')
-rw-r--r--Swift/QtUI/EventViewer/QtEventWindow.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Swift/QtUI/EventViewer/QtEventWindow.h b/Swift/QtUI/EventViewer/QtEventWindow.h
index bad20e4..7ae33ec 100644
--- a/Swift/QtUI/EventViewer/QtEventWindow.h
+++ b/Swift/QtUI/EventViewer/QtEventWindow.h
@@ -8,9 +8,6 @@
#include <memory>
-#include <QTreeView>
-
-#include <Swift/Controllers/UIEvents/UIEventStream.h>
#include <Swift/Controllers/UIInterfaces/EventWindow.h>
#include <Swift/QtUI/EventViewer/EventDelegate.h>
@@ -18,8 +15,11 @@
#include <Swift/QtUI/EventViewer/EventView.h>
class QPushButton;
+class QTreeView;
namespace Swift {
+ class UIEventStream;
+
class QtEventWindow : public QWidget, public EventWindow {
Q_OBJECT
public:
@@ -27,12 +27,15 @@ namespace Swift {
~QtEventWindow();
void addEvent(std::shared_ptr<StanzaEvent> event, bool active);
void removeEvent(std::shared_ptr<StanzaEvent> event);
+
signals:
void onNewEventCountUpdated(int count);
+
private slots:
void handleItemActivated(const QModelIndex& item);
void handleItemClicked(const QModelIndex& item);
void handleReadClicked();
+
private:
EventModel* model_;
EventDelegate* delegate_;