summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-07-29 14:46:41 (GMT)
committerKevin Smith <kevin.smith@isode.com>2016-08-02 11:43:07 (GMT)
commitdbd57ffd259b9dba6990de0b02b450fa2a59a563 (patch)
treee34502cd609ca16715957c043cc2c812964635e5 /Swift/QtUI/EventViewer/QtEventWindow.h
parent5eeb7327e4d5b713feb26f8d59f417f653705b48 (diff)
downloadswift-dbd57ffd259b9dba6990de0b02b450fa2a59a563.zip
swift-dbd57ffd259b9dba6990de0b02b450fa2a59a563.tar.bz2
Fix notice sometimes showing empty popup dialog on activation
Test-Information: Tried editing a contact on a server prohibiting contact editing. Previously the first double-click on the notice showed an empty popup. Now the correct popup text is shown. Change-Id: I996cf5b654e866ec6dd3f5198b694ae564018695
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_;