From c679a1c79eda74912fd9e7eacb9ce48b10fd9548 Mon Sep 17 00:00:00 2001 From: KenanZhu <3471685733@qq.com> Date: Tue, 17 Mar 2026 14:35:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(ALTimerTaskAddDialog):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=97=B6=E9=97=B4=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=AD=E7=9B=B8=E5=AF=B9=E6=97=B6=E9=97=B4=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=B8=83=E5=B1=80=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 由栅格布局改为水平布局,该区域的高度与绝对时间控件的高度一致 --- src/gui/ALTimerTaskAddDialog.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)