Helpviewer/HelpClearPrivateDataDialog.py

changeset 4612
c9982bcd00f8
parent 4021
195a471c327b
child 4631
5c1a96925da4
equal deleted inserted replaced
4610:93732395fc1d 4612:c9982bcd00f8
34 """ 34 """
35 Public method to get the data from the dialog. 35 Public method to get the data from the dialog.
36 36
37 @return tuple with flags indicating which data to clear 37 @return tuple with flags indicating which data to clear
38 (browsing history, search history, favicons, disk cache, cookies, 38 (browsing history, search history, favicons, disk cache, cookies,
39 passwords, web databases, downloads, flash) and the selected 39 passwords, web databases, downloads, flash, zoom values) and the
40 history period in milliseconds (tuple of booleans and integer) 40 selected history period in milliseconds (tuple of booleans and
41 integer)
41 """ 42 """
42 index = self.historyCombo.currentIndex() 43 index = self.historyCombo.currentIndex()
43 if index == 0: 44 if index == 0:
44 # last hour 45 # last hour
45 historyPeriod = 60 * 60 * 1000 46 historyPeriod = 60 * 60 * 1000
63 self.cookiesCheckBox.isChecked(), 64 self.cookiesCheckBox.isChecked(),
64 self.passwordsCheckBox.isChecked(), 65 self.passwordsCheckBox.isChecked(),
65 self.databasesCheckBox.isChecked(), 66 self.databasesCheckBox.isChecked(),
66 self.downloadsCheckBox.isChecked(), 67 self.downloadsCheckBox.isChecked(),
67 self.flashCookiesCheckBox.isChecked(), 68 self.flashCookiesCheckBox.isChecked(),
69 self.zoomCheckBox.isChecked(),
68 historyPeriod) 70 historyPeriod)

eric ide

mercurial