diff options
| -rw-r--r-- | Swift/QtUI/QtHighlightEditor.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Swift/QtUI/QtHighlightEditor.cpp b/Swift/QtUI/QtHighlightEditor.cpp index c6e4319..7aea26b 100644 --- a/Swift/QtUI/QtHighlightEditor.cpp +++ b/Swift/QtUI/QtHighlightEditor.cpp | |||
| @@ -10,18 +10,20 @@ | |||
| 10 | * See the COPYING file for more information. | 10 | * See the COPYING file for more information. |
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | #include <Swift/QtUI/QtHighlightEditor.h> | ||
| 14 | |||
| 13 | #include <cassert> | 15 | #include <cassert> |
| 14 | 16 | ||
| 15 | #include <boost/lexical_cast.hpp> | 17 | #include <boost/lexical_cast.hpp> |
| 16 | 18 | ||
| 17 | #include <Swift/QtUI/UserSearch/QtSuggestingJIDInput.h> | 19 | #include <QFileDialog> |
| 20 | #include <QTreeWidgetItem> | ||
| 21 | |||
| 18 | #include <Swift/Controllers/HighlightManager.cpp> | 22 | #include <Swift/Controllers/HighlightManager.cpp> |
| 19 | #include <Swift/QtUI/QtHighlightEditor.h> | ||
| 20 | #include <Swift/QtUI/QtSwiftUtil.h> | ||
| 21 | #include <Swift/QtUI/QtSettingsProvider.h> | ||
| 22 | 23 | ||
| 23 | #include <QTreeWidgetItem> | 24 | #include <Swift/QtUI/QtSettingsProvider.h> |
| 24 | #include <QFileDialog> | 25 | #include <Swift/QtUI/QtSwiftUtil.h> |
| 26 | #include <Swift/QtUI/UserSearch/QtSuggestingJIDInput.h> | ||
| 25 | 27 | ||
| 26 | namespace Swift { | 28 | namespace Swift { |
| 27 | 29 | ||
| @@ -419,6 +421,10 @@ HighlightRule QtHighlightEditor::ruleFromDialog() | |||
| 419 | rule.setMatchMUC(true); | 421 | rule.setMatchMUC(true); |
| 420 | } | 422 | } |
| 421 | 423 | ||
| 424 | if (ui_.allMsgRadio->isChecked()) { | ||
| 425 | action.setHighlightAllText(true); | ||
| 426 | } | ||
| 427 | |||
| 422 | if (ui_.senderRadio->isChecked()) { | 428 | if (ui_.senderRadio->isChecked()) { |
| 423 | QString senderName = jid_->text(); | 429 | QString senderName = jid_->text(); |
| 424 | if (!senderName.isEmpty()) { | 430 | if (!senderName.isEmpty()) { |
Swift