154 self.__quickCommitButton = QToolButton(self) |
154 self.__quickCommitButton = QToolButton(self) |
155 self.__quickCommitButton.setIcon( |
155 self.__quickCommitButton.setIcon( |
156 UI.PixmapCache.getIcon("vcsCommit")) |
156 UI.PixmapCache.getIcon("vcsCommit")) |
157 self.__quickCommitButton.setToolTip( |
157 self.__quickCommitButton.setToolTip( |
158 self.tr("Press to commit the marked entries")) |
158 self.tr("Press to commit the marked entries")) |
159 self.__quickCommitButton.clicked.connect( |
159 self.__quickCommitButton.clicked.connect(self.__quickCommit) |
160 self.__quickCommit) |
|
161 self.__quickCommitLayout2.addWidget(self.__quickCommitButton) |
160 self.__quickCommitLayout2.addWidget(self.__quickCommitButton) |
162 |
161 |
163 self.__quickCommitLayout.addLayout(self.__quickCommitLayout2) |
162 self.__quickCommitLayout.addLayout(self.__quickCommitLayout2) |
164 self.__quickCommitGroup.setLayout(self.__quickCommitLayout) |
163 self.__quickCommitGroup.setLayout(self.__quickCommitLayout) |
165 self.__layout.addWidget(self.__quickCommitGroup) |
164 self.__layout.addWidget(self.__quickCommitGroup) |
903 commitMessage = self.__quickCommitEdit.toPlainText() |
902 commitMessage = self.__quickCommitEdit.toPlainText() |
904 vcs = self.__project.getVcs() |
903 vcs = self.__project.getVcs() |
905 if vcs: |
904 if vcs: |
906 vcs.vcsCommit(names, commitMessage, noDialog=True) |
905 vcs.vcsCommit(names, commitMessage, noDialog=True) |
907 vcs.vcsAddCommitMessage(commitMessage) |
906 vcs.vcsAddCommitMessage(commitMessage) |
|
907 self.__quickCommitEdit.clear() |
908 |
908 |
909 @pyqtSlot() |
909 @pyqtSlot() |
910 def __quickCommitEditTextChanged(self): |
910 def __quickCommitEditTextChanged(self): |
911 """ |
911 """ |
912 Private slot to react upon changes of the quick commit text. |
912 Private slot to react upon changes of the quick commit text. |