diff options
author | Richard Maudsley <richard.maudsley@isode.com> | 2014-04-15 14:49:05 (GMT) |
---|---|---|
committer | Richard Maudsley <richard.maudsley@isode.com> | 2014-04-25 08:38:30 (GMT) |
commit | b42a5c5849813fe8db3bd3889378a53238cc36f7 (patch) | |
tree | 2c9265025c0281acfde3077d884e17c834400358 /Swift/QtUI | |
parent | d5f701fdd6826421c0c83b8e299918065b6c99d1 (diff) | |
download | swift-b42a5c5849813fe8db3bd3889378a53238cc36f7.zip swift-b42a5c5849813fe8db3bd3889378a53238cc36f7.tar.bz2 |
Hide reason field in impromptu chat invites.
Change-Id: Icb5075f85a23fc181ff8f5ee00633bb768c4eb5f
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchWindow.cpp | 5 | ||||
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchWindow.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp index c154c8f..40b4e28 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp +++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.cpp @@ -399,6 +399,11 @@ void QtUserSearchWindow::addContacts(const std::vector<Contact::ref>& contacts) } } +void QtUserSearchWindow::setCanSupplyDescription(bool allowed) { + firstMultiJIDPage_->label->setVisible(allowed); + firstMultiJIDPage_->reason_->setVisible(allowed); +} + void QtUserSearchWindow::handleAddViaSearch() { searchNext_ = true; next(); diff --git a/Swift/QtUI/UserSearch/QtUserSearchWindow.h b/Swift/QtUI/UserSearch/QtUserSearchWindow.h index bb89e51..0349ba4 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchWindow.h +++ b/Swift/QtUI/UserSearch/QtUserSearchWindow.h @@ -51,6 +51,7 @@ namespace Swift { virtual void setCanStartImpromptuChats(bool supportsImpromptu); virtual void updateContacts(const std::vector<Contact::ref> &contacts); virtual void addContacts(const std::vector<Contact::ref>& contacts); + virtual void setCanSupplyDescription(bool allowed); protected: virtual int nextId() const; |