Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/statuswidget.cpp
Show All 29 Lines | 28 | { | |||
---|---|---|---|---|---|
30 | auto hBoxLayout = new QHBoxLayout; | 30 | auto hBoxLayout = new QHBoxLayout; | ||
31 | 31 | | |||
32 | printingProgress = new QProgressBar; | 32 | printingProgress = new QProgressBar; | ||
33 | printingProgress->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); | 33 | printingProgress->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); | ||
34 | hBoxLayout->addWidget(printingProgress); | 34 | hBoxLayout->addWidget(printingProgress); | ||
35 | 35 | | |||
36 | if (showStop) { | 36 | if (showStop) { | ||
37 | auto newButton = new QPushButton(style()->standardIcon(QStyle::SP_BrowserStop), QString()); | 37 | auto newButton = new QPushButton(style()->standardIcon(QStyle::SP_BrowserStop), QString()); | ||
38 | connect(newButton, &QPushButton::clicked, [this] { | 38 | connect(newButton, &QPushButton::clicked, this, [this] { | ||
39 | emit(stopPressed()); | 39 | emit(stopPressed()); | ||
40 | }); | 40 | }); | ||
41 | hBoxLayout->addWidget(newButton); | 41 | hBoxLayout->addWidget(newButton); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | lblTime = new QLabel(QStringLiteral("00:00:00")); | 44 | lblTime = new QLabel(QStringLiteral("00:00:00")); | ||
45 | lblTime->setAlignment(Qt::AlignHCenter); | 45 | lblTime->setAlignment(Qt::AlignHCenter); | ||
46 | auto newLabel = new QLabel(QStringLiteral(" / ")); | 46 | auto newLabel = new QLabel(QStringLiteral(" / ")); | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |