16 |
16 |
17 from .PasswordModel import PasswordModel |
17 from .PasswordModel import PasswordModel |
18 |
18 |
19 from .Ui_PasswordsDialog import Ui_PasswordsDialog |
19 from .Ui_PasswordsDialog import Ui_PasswordsDialog |
20 |
20 |
21 import UI.PixmapCache |
|
22 |
|
23 |
21 |
24 class PasswordsDialog(QDialog, Ui_PasswordsDialog): |
22 class PasswordsDialog(QDialog, Ui_PasswordsDialog): |
25 """ |
23 """ |
26 Class implementing a dialog to show all saved logins. |
24 Class implementing a dialog to show all saved logins. |
27 """ |
25 """ |
31 |
29 |
32 @param parent reference to the parent widget (QWidget) |
30 @param parent reference to the parent widget (QWidget) |
33 """ |
31 """ |
34 super().__init__(parent) |
32 super().__init__(parent) |
35 self.setupUi(self) |
33 self.setupUi(self) |
36 |
|
37 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) |
|
38 |
34 |
39 self.__showPasswordsText = self.trUtf8("Show Passwords") |
35 self.__showPasswordsText = self.trUtf8("Show Passwords") |
40 self.__hidePasswordsText = self.trUtf8("Hide Passwords") |
36 self.__hidePasswordsText = self.trUtf8("Hide Passwords") |
41 self.passwordsButton.setText(self.__showPasswordsText) |
37 self.passwordsButton.setText(self.__showPasswordsText) |
42 |
38 |