diff --git a/src/gui/ALTimerTaskAddDialog.py b/src/gui/ALTimerTaskAddDialog.py index 4c73715..665ea01 100644 --- a/src/gui/ALTimerTaskAddDialog.py +++ b/src/gui/ALTimerTaskAddDialog.py @@ -60,28 +60,28 @@ class ALTimerTaskAddDialog(QDialog, Ui_ALTimerTaskAddDialog): self.TimerConfigLayout.addWidget(self.SpecificTimerWidget) self.RelativeTimerWidget = QWidget() - self.RelativeTimerLayout = QGridLayout(self.RelativeTimerWidget) - self.RelativeTimerLayout.addWidget(QLabel("相对时间:"), 0, 0) + self.RelativeTimerLayout = QHBoxLayout(self.RelativeTimerWidget) + self.RelativeTimerLayout.addWidget(QLabel("相对时间:")) self.RelativeDaySpinBox = QSpinBox() self.RelativeDaySpinBox.setMinimum(0) - self.RelativeDaySpinBox.setMaximum(365) + self.RelativeDaySpinBox.setMaximum(364) self.RelativeDaySpinBox.setSuffix("天") - self.RelativeTimerLayout.addWidget(self.RelativeDaySpinBox, 1, 0) + self.RelativeTimerLayout.addWidget(self.RelativeDaySpinBox) self.RelativeHourSpinBox = QSpinBox() self.RelativeHourSpinBox.setMinimum(0) self.RelativeHourSpinBox.setMaximum(23) self.RelativeHourSpinBox.setSuffix("时") - self.RelativeTimerLayout.addWidget(self.RelativeHourSpinBox, 1, 1) + self.RelativeTimerLayout.addWidget(self.RelativeHourSpinBox) self.RelativeMinuteSpinBox = QSpinBox() self.RelativeMinuteSpinBox.setMinimum(0) self.RelativeMinuteSpinBox.setMaximum(59) self.RelativeMinuteSpinBox.setSuffix("分") - self.RelativeTimerLayout.addWidget(self.RelativeMinuteSpinBox, 1, 2) + self.RelativeTimerLayout.addWidget(self.RelativeMinuteSpinBox) self.RelativeSecondSpinBox = QSpinBox() self.RelativeSecondSpinBox.setMinimum(0) self.RelativeSecondSpinBox.setMaximum(59) self.RelativeSecondSpinBox.setSuffix("秒") - self.RelativeTimerLayout.addWidget(self.RelativeSecondSpinBox, 1, 3) + self.RelativeTimerLayout.addWidget(self.RelativeSecondSpinBox) self.TimerConfigLayout.addWidget(self.RelativeTimerWidget) self.RelativeTimerWidget.setVisible(False)