Replace QHash with QMultiHash to avoid a deprecation warning.
[toast/confclerk.git] / src / gui / searchtabcontainer.cpp
index 8b59153ec348274f381e1b63b70985ee41ce99c9..af2f8d38e192ef59b34d6e1cce0f6e0e26009d5a 100644 (file)
@@ -60,19 +60,19 @@ void SearchTabContainer::showSearchDialog(bool show) {
 void SearchTabContainer::searchButtonClicked() {
     if (!sqlEngine) return;
 
-    QHash<QString,QString> columns;
+    QMultiHash<QString,QString> columns;
 
     SearchHead *searchHeader = static_cast<SearchHead*>(header);
     if( searchHeader->searchTitle->isChecked() )
-        columns.insertMulti("EVENT", "title");
+        columns.insert("EVENT", "title");
     if( searchHeader->searchAbstract->isChecked() )
-        columns.insertMulti("EVENT", "abstract");
+        columns.insert("EVENT", "abstract");
     if( searchHeader->searchTag->isChecked() )
-        columns.insertMulti("EVENT", "tag");
+        columns.insert("EVENT", "tag");
     if( searchHeader->searchSpeaker->isChecked() )
-        columns["PERSON"] = "name";
+        columns.insert("PERSON", "name");
     if( searchHeader->searchRoom->isChecked() )
-        columns["ROOM"] = "name";
+        columns.insert("ROOM", "name");
 
     QString keyword = searchHeader->searchEdit->text();