Compare commits

..

2 Commits

Author SHA1 Message Date
dc43db69a3 Change version schemes 2021-11-30 19:04:00 +01:00
60295cf369 Remove unused method 2021-11-30 18:57:59 +01:00
2 changed files with 2 additions and 7 deletions

View File

@ -7,4 +7,5 @@ requires = [
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.setuptools_scm] [tool.setuptools_scm]
version_scheme = "python-simplified-semver" version_scheme = "guess-next-dev"
local_scheme = "dirty-tag"

View File

@ -243,12 +243,6 @@ class WorklogDialog(QtWidgets.QDialog):
self.tableWidget.setMinimumWidth(min(desired_width, self.tableWidget.maximumWidth())) self.tableWidget.setMinimumWidth(min(desired_width, self.tableWidget.maximumWidth()))
self.adjustSize() self.adjustSize()
def center_dialog(self):
screen = QtGui.QGuiApplication.screenAt(self.pos())
x = ((screen.size().width() - self.tableWidget.width()) // 2) + screen.geometry().left()
y = ((screen.size().height() - self.height()) // 2) + screen.geometry().top()
self.move(x, y)
def update_status_view(self, row): def update_status_view(self, row):
if self._statuses[row][0] is Status.PROGRESS: if self._statuses[row][0] is Status.PROGRESS:
icon = ProgressIndicator(self) icon = ProgressIndicator(self)