summary refs log tree commit diff
path: root/src/popups
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-31 16:08:30 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-31 16:08:30 +0100
commit127fb9370b8e131ad460b27aaa72de178e929096 (patch)
tree5278c11f1b58dc9f2600f716d58301f116d05d29 /src/popups
parentOptimize includes a bit (diff)
downloadnheko-127fb9370b8e131ad460b27aaa72de178e929096.tar.xz
Remove metatypes from headers
Diffstat (limited to 'src/popups')
-rw-r--r--src/popups/SuggestionsPopup.cpp4
-rw-r--r--src/popups/SuggestionsPopup.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/popups/SuggestionsPopup.cpp b/src/popups/SuggestionsPopup.cpp

index ba1f77b9..8f355b38 100644 --- a/src/popups/SuggestionsPopup.cpp +++ b/src/popups/SuggestionsPopup.cpp
@@ -60,9 +60,9 @@ SuggestionsPopup::addRooms(const std::vector<RoomSearchResult> &rooms) } void -SuggestionsPopup::addUsers(const QVector<SearchResult> &users) +SuggestionsPopup::addUsers(const std::vector<SearchResult> &users) { - if (users.isEmpty()) { + if (users.empty()) { hide(); return; } diff --git a/src/popups/SuggestionsPopup.h b/src/popups/SuggestionsPopup.h
index de52760a..dcd054f8 100644 --- a/src/popups/SuggestionsPopup.h +++ b/src/popups/SuggestionsPopup.h
@@ -9,8 +9,6 @@ #include "ChatPage.h" #include "PopupItem.h" -Q_DECLARE_METATYPE(QVector<SearchResult>) - class SuggestionsPopup : public QWidget { Q_OBJECT @@ -33,7 +31,7 @@ public: } public slots: - void addUsers(const QVector<SearchResult> &users); + void addUsers(const std::vector<SearchResult> &users); void addRooms(const std::vector<RoomSearchResult> &rooms); //! Move to the next available suggestion item.