11 from PyQt6.QtCore import pyqtSlot, QUrl |
11 from PyQt6.QtCore import pyqtSlot, QUrl |
12 from PyQt6.QtWidgets import QDialog, QLineEdit |
12 from PyQt6.QtWidgets import QDialog, QLineEdit |
13 |
13 |
14 from .Ui_HgRepoConfigDataDialog import Ui_HgRepoConfigDataDialog |
14 from .Ui_HgRepoConfigDataDialog import Ui_HgRepoConfigDataDialog |
15 |
15 |
16 import UI.PixmapCache |
16 from eric7.EricGui import EricPixmapCache |
17 |
17 |
18 from .LargefilesExtension import getDefaults as getLargefilesDefaults |
18 from .LargefilesExtension import getDefaults as getLargefilesDefaults |
19 |
19 |
20 |
20 |
21 class HgRepoConfigDataDialog(QDialog, Ui_HgRepoConfigDataDialog): |
21 class HgRepoConfigDataDialog(QDialog, Ui_HgRepoConfigDataDialog): |
35 @param parent reference to the parent widget (QWidget) |
35 @param parent reference to the parent widget (QWidget) |
36 """ |
36 """ |
37 super().__init__(parent) |
37 super().__init__(parent) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 |
39 |
40 self.defaultShowPasswordButton.setIcon(UI.PixmapCache.getIcon("showPassword")) |
40 self.defaultShowPasswordButton.setIcon(EricPixmapCache.getIcon("showPassword")) |
41 self.defaultPushShowPasswordButton.setIcon( |
41 self.defaultPushShowPasswordButton.setIcon( |
42 UI.PixmapCache.getIcon("showPassword") |
42 EricPixmapCache.getIcon("showPassword") |
43 ) |
43 ) |
44 |
44 |
45 self.__withLargefiles = withLargefiles |
45 self.__withLargefiles = withLargefiles |
46 if withLargefiles: |
46 if withLargefiles: |
47 if largefilesData is None: |
47 if largefilesData is None: |