47 """ |
47 """ |
48 Private slot to add an entry to the list. |
48 Private slot to add an entry to the list. |
49 """ |
49 """ |
50 filter, ok = QInputDialog.getText( |
50 filter, ok = QInputDialog.getText( |
51 self, |
51 self, |
52 self.trUtf8("Error Messages Filter"), |
52 self.tr("Error Messages Filter"), |
53 self.trUtf8("Enter message filter to add to the list:"), |
53 self.tr("Enter message filter to add to the list:"), |
54 QLineEdit.Normal) |
54 QLineEdit.Normal) |
55 if ok and filter != "" and filter not in self.__model.stringList(): |
55 if ok and filter != "" and filter not in self.__model.stringList(): |
56 self.__model.insertRow(self.__model.rowCount()) |
56 self.__model.insertRow(self.__model.rowCount()) |
57 self.__model.setData( |
57 self.__model.setData( |
58 self.__model.index(self.__model.rowCount() - 1), filter) |
58 self.__model.index(self.__model.rowCount() - 1), filter) |