Helpviewer/WebPlugins/ClickToFlash/ClickToFlashWhitelistDialog.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3345
071afe8be2a1
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
50 """ 50 """
51 Private slot to add an entry to the whitelist. 51 Private slot to add an entry to the whitelist.
52 """ 52 """
53 host, ok = QInputDialog.getText( 53 host, ok = QInputDialog.getText(
54 self, 54 self,
55 self.trUtf8("ClickToFlash Whitelist"), 55 self.tr("ClickToFlash Whitelist"),
56 self.trUtf8("Enter host name to add to whitelist:"), 56 self.tr("Enter host name to add to whitelist:"),
57 QLineEdit.Normal) 57 QLineEdit.Normal)
58 if ok and host != "" and host not in self.__model.stringList(): 58 if ok and host != "" and host not in self.__model.stringList():
59 self.__model.insertRow(self.__model.rowCount()) 59 self.__model.insertRow(self.__model.rowCount())
60 self.__model.setData( 60 self.__model.setData(
61 self.__model.index(self.__model.rowCount() - 1), host) 61 self.__model.index(self.__model.rowCount() - 1), host)

eric ide

mercurial