diff options
Diffstat (limited to 'Swift/Controllers/HighlightAction.cpp')
-rw-r--r-- | Swift/Controllers/HighlightAction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swift/Controllers/HighlightAction.cpp b/Swift/Controllers/HighlightAction.cpp index 80d9d85..4603408 100644 --- a/Swift/Controllers/HighlightAction.cpp +++ b/Swift/Controllers/HighlightAction.cpp | |||
@@ -12,14 +12,14 @@ | |||
12 | 12 | ||
13 | #include <Swift/Controllers/HighlightAction.h> | 13 | #include <Swift/Controllers/HighlightAction.h> |
14 | 14 | ||
15 | namespace Swift { | 15 | namespace Swift { |
16 | 16 | ||
17 | void HighlightAction::setHighlightAllText(bool highlightText) | 17 | void HighlightAction::setHighlightWholeMessage(bool highlightText) |
18 | { | 18 | { |
19 | highlightText_ = highlightText; | 19 | highlightWholeMessage_ = highlightText; |
20 | if (!highlightText_) { | 20 | if (!highlightWholeMessage_) { |
21 | textColor_.clear(); | 21 | textColor_.clear(); |
22 | textBackground_.clear(); | 22 | textBackground_.clear(); |
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
@@ -30,11 +30,11 @@ void HighlightAction::setPlaySound(bool playSound) | |||
30 | soundFile_.clear(); | 30 | soundFile_.clear(); |
31 | } | 31 | } |
32 | } | 32 | } |
33 | 33 | ||
34 | bool operator ==(HighlightAction const& a, HighlightAction const& b) { | 34 | bool operator ==(HighlightAction const& a, HighlightAction const& b) { |
35 | if (a.highlightAllText() != b.highlightAllText()) { | 35 | if (a.highlightWholeMessage() != b.highlightWholeMessage()) { |
36 | return false; | 36 | return false; |
37 | } | 37 | } |
38 | 38 | ||
39 | if (a.getTextColor() != b.getTextColor()) { | 39 | if (a.getTextColor() != b.getTextColor()) { |
40 | return false; | 40 | return false; |