Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/printwidget.cpp
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 26 | { | |||
---|---|---|---|---|---|
104 | hBoxLayout->addWidget(comboFanSelect, 60); | 104 | hBoxLayout->addWidget(comboFanSelect, 60); | ||
105 | hBoxLayout->addWidget(sbFanSpeed, 20); | 105 | hBoxLayout->addWidget(sbFanSpeed, 20); | ||
106 | hBoxLayout->addWidget(newButton, 20); | 106 | hBoxLayout->addWidget(newButton, 20); | ||
107 | mainLayout->addLayout(hBoxLayout); | 107 | mainLayout->addLayout(hBoxLayout); | ||
108 | 108 | | |||
109 | setLayout(mainLayout); | 109 | setLayout(mainLayout); | ||
110 | } | 110 | } | ||
111 | 111 | | |||
112 | QString PrintWidget::postPauseCommand(void) const | 112 | QString PrintWidget::postPauseCommand() const | ||
113 | { | 113 | { | ||
114 | return linePostPause->text(); | 114 | return linePostPause->text(); | ||
115 | } | 115 | } | ||
116 | 116 | | |||
117 | void PrintWidget::setPrintText(const QString &text) | 117 | void PrintWidget::setPrintText(const QString &text) | ||
118 | { | 118 | { | ||
119 | buttonPrint->setText(text); | 119 | buttonPrint->setText(text); | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | void PrintWidget::updateFanCount(const int count) | 122 | void PrintWidget::updateFanCount(const int count) | ||
123 | { | 123 | { | ||
124 | comboFanSelect->clear(); | 124 | comboFanSelect->clear(); | ||
125 | for (int i = 0; i < count; i++) { | 125 | for (int i = 0; i < count; i++) { | ||
126 | comboFanSelect->insertItem(i, tr("Fan %1 speed").arg(i)); | 126 | comboFanSelect->insertItem(i, tr("Fan %1 speed").arg(i)); | ||
127 | } | 127 | } | ||
128 | } | 128 | } |