diff options
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtHighlightEditor.cpp | 2 | ||||
-rw-r--r-- | Swift/QtUI/QtHighlightEditor.ui | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/Swift/QtUI/QtHighlightEditor.cpp b/Swift/QtUI/QtHighlightEditor.cpp index 3900cf9..ce07003 100644 --- a/Swift/QtUI/QtHighlightEditor.cpp +++ b/Swift/QtUI/QtHighlightEditor.cpp @@ -164,19 +164,19 @@ void QtHighlightEditor::soundCustomSelect() ui_.soundFile->setEnabled(true); ui_.soundFileButton->setEnabled(true); } void QtHighlightEditor::onNewButtonClicked() { int row = getSelectedRow() + 1; populateList(); HighlightRule newRule; - newRule.setMatchChat(true); + newRule.setMatchMUC(true); highlightManager_->insertRule(row, newRule); QListWidgetItem *item = new QListWidgetItem(); item->setText(P2QSTRING(formatShortDescription(newRule))); ui_.listWidget->insertItem(row, item); selectRow(row); } void QtHighlightEditor::onDeleteButtonClicked() { diff --git a/Swift/QtUI/QtHighlightEditor.ui b/Swift/QtUI/QtHighlightEditor.ui index a2baffd..be2e99b 100644 --- a/Swift/QtUI/QtHighlightEditor.ui +++ b/Swift/QtUI/QtHighlightEditor.ui @@ -138,31 +138,34 @@ <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="title"> <string>Apply Rule To</string> </property> <layout class="QHBoxLayout" name="horizontalLayout"> <item> - <widget class="QRadioButton" name="chatRadio"> + <widget class="QRadioButton" name="roomRadio"> <property name="text"> - <string>Chats</string> + <string>Rooms</string> </property> <property name="checked"> <bool>true</bool> </property> </widget> </item> <item> - <widget class="QRadioButton" name="roomRadio"> + <widget class="QRadioButton" name="chatRadio"> <property name="text"> - <string>Rooms</string> + <string>Chats</string> + </property> + <property name="checked"> + <bool>false</bool> </property> </widget> </item> <item> <spacer name="horizontalSpacer"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeHint" stdset="0"> |