From 9403679b404852edfc0509026da7d5c131d21c38 Mon Sep 17 00:00:00 2001 From: Richard Maudsley <richard.maudsley@isode.com> Date: Mon, 28 Jul 2014 11:13:04 +0100 Subject: Change highlight rule default to MUC for new rules. Test-Information: View highlight editor dialog and confirm that Rooms is now the default option. Change-Id: I4881efeb26c19fc0779dc99c3a4516f54ec3e211 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 @@ -170,7 +170,7 @@ 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))); 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 @@ -144,9 +144,9 @@ </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> @@ -154,9 +154,12 @@ </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> -- cgit v0.10.2-6-g49f6