5 |
5 |
6 """ |
6 """ |
7 Module implementing the Git command dialog. |
7 Module implementing the Git command dialog. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import pyqtSlot |
10 from PyQt6.QtCore import Qt, pyqtSlot |
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
12 |
12 |
13 from eric7 import Utilities |
13 from eric7 import Utilities |
14 |
14 |
15 from .Ui_GitCommandDialog import Ui_GitCommandDialog |
15 from .Ui_GitCommandDialog import Ui_GitCommandDialog |
36 self.setupUi(self) |
36 self.setupUi(self) |
37 |
37 |
38 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
38 self.okButton = self.buttonBox.button(QDialogButtonBox.StandardButton.Ok) |
39 self.okButton.setEnabled(False) |
39 self.okButton.setEnabled(False) |
40 |
40 |
|
41 self.commandCombo.completer().setCaseSensitivity( |
|
42 Qt.CaseSensitivity.CaseSensitive |
|
43 ) |
41 self.commandCombo.clear() |
44 self.commandCombo.clear() |
42 self.commandCombo.addItems(argvList) |
45 self.commandCombo.addItems(argvList) |
43 if len(argvList) > 0: |
46 if len(argvList) > 0: |
44 self.commandCombo.setCurrentIndex(0) |
47 self.commandCombo.setCurrentIndex(0) |
45 self.projectDirLabel.setText(ppath) |
48 self.projectDirLabel.setText(ppath) |