summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Swift/QtUI/QtHighlightEditor.cpp10
-rw-r--r--Swift/QtUI/QtHighlightEditor.ui2
2 files changed, 9 insertions, 3 deletions
diff --git a/Swift/QtUI/QtHighlightEditor.cpp b/Swift/QtUI/QtHighlightEditor.cpp
index 598a52b..d4e8899 100644
--- a/Swift/QtUI/QtHighlightEditor.cpp
+++ b/Swift/QtUI/QtHighlightEditor.cpp
@@ -97,9 +97,9 @@ std::string formatLongDescription(const HighlightRule& rule)
if (rule.getMatchChat() && rule.getMatchMUC()) {
text += "either in chats or in rooms";
} else if (rule.getMatchChat()) {
- text += "in chats only";
+ text += "in chats";
} else if (rule.getMatchMUC()) {
- text += "in rooms only";
+ text += "in rooms";
} else {
return "This rule has not been marked as a chat or room rule!";
}
@@ -328,6 +328,12 @@ void QtHighlightEditor::setChildWidgetStates()
ui_.matchWholeWords->setEnabled(false);
ui_.matchCase->setEnabled(false);
}
+
+ if (ui_.chatRadio->isChecked()) {
+ ui_.allMsgRadio->setText(tr("Apply to all chat messages"));
+ } else {
+ ui_.allMsgRadio->setText(tr("Apply to all room messages"));
+ }
}
void QtHighlightEditor::widgetClick()
diff --git a/Swift/QtUI/QtHighlightEditor.ui b/Swift/QtUI/QtHighlightEditor.ui
index 5f45d4a..cded649 100644
--- a/Swift/QtUI/QtHighlightEditor.ui
+++ b/Swift/QtUI/QtHighlightEditor.ui
@@ -344,7 +344,7 @@ p, li { white-space: pre-wrap; }
<bool>false</bool>
</property>
<property name="text">
- <string>&amp;Foreground</string>
+ <string>&amp;Text</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>