diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-08 18:01:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-08 18:01:40 +0300 |
commit | 6303e605ef23003aabace85cde3f04574f1fb05c (patch) | |
tree | 6c9477f7314e4d371081473d7b96503b47573dea /src/gui/widgets/tabs/chat | |
parent | 568cd6279a753b1f04afb08a9193ab0873bf8e53 (diff) | |
download | plus-6303e605ef23003aabace85cde3f04574f1fb05c.tar.gz plus-6303e605ef23003aabace85cde3f04574f1fb05c.tar.bz2 plus-6303e605ef23003aabace85cde3f04574f1fb05c.tar.xz plus-6303e605ef23003aabace85cde3f04574f1fb05c.zip |
In whisper constructor allow separatly set nick and caption.
Diffstat (limited to 'src/gui/widgets/tabs/chat')
-rw-r--r-- | src/gui/widgets/tabs/chat/whispertab.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/tabs/chat/whispertab.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/chat/whispertab.cpp b/src/gui/widgets/tabs/chat/whispertab.cpp index 53712c6b2..5ca65f580 100644 --- a/src/gui/widgets/tabs/chat/whispertab.cpp +++ b/src/gui/widgets/tabs/chat/whispertab.cpp @@ -35,8 +35,9 @@ #include "debug.h" WhisperTab::WhisperTab(const Widget2 *const widget, + const std::string &caption, const std::string &nick) : - ChatTab(widget, nick, nick, nick, ChatTabType::WHISPER), + ChatTab(widget, caption, nick, nick, ChatTabType::WHISPER), mNick(nick) { setWhisperTabColors(); diff --git a/src/gui/widgets/tabs/chat/whispertab.h b/src/gui/widgets/tabs/chat/whispertab.h index 24fc2abe0..677e8b470 100644 --- a/src/gui/widgets/tabs/chat/whispertab.h +++ b/src/gui/widgets/tabs/chat/whispertab.h @@ -57,6 +57,7 @@ class WhisperTab final : public ChatTab * @param nick the name of the player this tab is whispering to */ WhisperTab(const Widget2 *const widget, + const std::string &caption, const std::string &nick); ~WhisperTab(); |