From 9f42ff302d835688abafc1309ce993fc801b23b8 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Thu, 5 May 2016 19:02:12 +0200 Subject: Set the rename dialog box stretchable --- mageiaSync/mageiaSyncDBrename.py | 62 +++++++-------- mageiaSync/mageiaSyncDBrename.ui | 160 ++++++++++++++++++--------------------- 2 files changed, 105 insertions(+), 117 deletions(-) (limited to 'mageiaSync') diff --git a/mageiaSync/mageiaSyncDBrename.py b/mageiaSync/mageiaSyncDBrename.py index 7164889..4e550ba 100644 --- a/mageiaSync/mageiaSyncDBrename.py +++ b/mageiaSync/mageiaSyncDBrename.py @@ -11,43 +11,43 @@ from PyQt5 import QtCore, QtGui, QtWidgets class Ui_renameDialog(object): def setupUi(self, renameDialog): renameDialog.setObjectName("renameDialog") - renameDialog.resize(562, 138) - self.buttonBox = QtWidgets.QDialogButtonBox(renameDialog) - self.buttonBox.setGeometry(QtCore.QRect(10, 100, 541, 32)) - self.buttonBox.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) - self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) - self.buttonBox.setCenterButtons(True) - self.buttonBox.setObjectName("buttonBox") - self.gridLayoutWidget = QtWidgets.QWidget(renameDialog) - self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 0, 655, 115)) - self.gridLayoutWidget.setObjectName("gridLayoutWidget") - self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) + renameDialog.resize(667, 155) + self.gridLayout = QtWidgets.QGridLayout(renameDialog) self.gridLayout.setObjectName("gridLayout") - self.label = QtWidgets.QLabel(self.gridLayoutWidget) - self.label.setObjectName("label") - self.gridLayout.addWidget(self.label, 2, 0, 1, 1) - self.oldRelease = QtWidgets.QLineEdit(self.gridLayoutWidget) - self.oldRelease.setObjectName("oldRelease") - self.gridLayout.addWidget(self.oldRelease, 2, 1, 1, 1) - self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) - self.label_2.setObjectName("label_2") - self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1) - self.label_3 = QtWidgets.QLabel(self.gridLayoutWidget) + self.gridLayout_2 = QtWidgets.QGridLayout() + self.gridLayout_2.setObjectName("gridLayout_2") + self.label_3 = QtWidgets.QLabel(renameDialog) self.label_3.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) self.label_3.setWordWrap(False) self.label_3.setObjectName("label_3") - self.gridLayout.addWidget(self.label_3, 0, 0, 1, 2) - self.label_4 = QtWidgets.QLabel(self.gridLayoutWidget) + self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 2) + self.label_4 = QtWidgets.QLabel(renameDialog) self.label_4.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) self.label_4.setObjectName("label_4") - self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1) - self.chooseDir = QtWidgets.QPushButton(self.gridLayoutWidget) + self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1) + self.chooseDir = QtWidgets.QPushButton(renameDialog) self.chooseDir.setObjectName("chooseDir") - self.gridLayout.addWidget(self.chooseDir, 1, 1, 1, 1) - self.newRelease = QtWidgets.QLineEdit(self.gridLayoutWidget) + self.gridLayout_2.addWidget(self.chooseDir, 1, 1, 1, 1) + self.label = QtWidgets.QLabel(renameDialog) + self.label.setObjectName("label") + self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1) + self.oldRelease = QtWidgets.QLineEdit(renameDialog) + self.oldRelease.setObjectName("oldRelease") + self.gridLayout_2.addWidget(self.oldRelease, 2, 1, 1, 1) + self.label_2 = QtWidgets.QLabel(renameDialog) + self.label_2.setObjectName("label_2") + self.gridLayout_2.addWidget(self.label_2, 3, 0, 1, 1) + self.newRelease = QtWidgets.QLineEdit(renameDialog) self.newRelease.setObjectName("newRelease") - self.gridLayout.addWidget(self.newRelease, 3, 1, 1, 1) + self.gridLayout_2.addWidget(self.newRelease, 3, 1, 1, 1) + self.gridLayout.addLayout(self.gridLayout_2, 0, 0, 1, 1) + self.buttonBox = QtWidgets.QDialogButtonBox(renameDialog) + self.buttonBox.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) + self.buttonBox.setOrientation(QtCore.Qt.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) + self.buttonBox.setCenterButtons(True) + self.buttonBox.setObjectName("buttonBox") + self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1) self.retranslateUi(renameDialog) self.buttonBox.accepted.connect(renameDialog.accept) @@ -59,9 +59,9 @@ class Ui_renameDialog(object): def retranslateUi(self, renameDialog): _translate = QtCore.QCoreApplication.translate renameDialog.setWindowTitle(_translate("renameDialog", "Rename release")) - self.label.setText(_translate("renameDialog", "Old release")) - self.label_2.setText(_translate("renameDialog", "New release")) self.label_3.setText(_translate("renameDialog", "This action renames the directories and names from a former version to a new one.")) self.label_4.setText(_translate("renameDialog", "Base directory")) self.chooseDir.setText(_translate("renameDialog", "PushButton")) + self.label.setText(_translate("renameDialog", "Old release")) + self.label_2.setText(_translate("renameDialog", "New release")) diff --git a/mageiaSync/mageiaSyncDBrename.ui b/mageiaSync/mageiaSyncDBrename.ui index 9db208e..8b4b348 100644 --- a/mageiaSync/mageiaSyncDBrename.ui +++ b/mageiaSync/mageiaSyncDBrename.ui @@ -6,97 +6,85 @@ 0 0 - 562 - 138 + 667 + 155 Rename release - - - - 10 - 100 - 541 - 32 - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - true - - - - - - 0 - 0 - 655 - 115 - - - - - - - Old release - - - - - - - - - - New release - - - - - - - - - - This action renames the directories and names from a former version to a new one. - - - false - - - - - - - - - - Base directory - - - - - - - PushButton - - - - - - - - + + + + + + + + + + This action renames the directories and names from a former version to a new one. + + + false + + + + + + + + + + Base directory + + + + + + + PushButton + + + + + + + Old release + + + + + + + + + + New release + + + + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + true + + + + chooseDir -- cgit v1.2.1