12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QPushButton> 20 #include <QtWidgets/QVBoxLayout> 21 #include <QtWidgets/QWidget> 47 if (MiniMode->objectName().isEmpty())
48 MiniMode->setObjectName(QStringLiteral(
"MiniMode"));
49 MiniMode->resize(275, 30);
50 MiniMode->setMaximumSize(QSize(275, 30));
51 MiniMode->setWindowTitle(QStringLiteral(
""));
52 vBoxLayout =
new QVBoxLayout(MiniMode);
53 vBoxLayout->setSpacing(0);
54 vBoxLayout->setObjectName(QStringLiteral(
"vBoxLayout"));
55 vBoxLayout->setContentsMargins(0, 0, 0, 0);
56 topHBoxLayout =
new QHBoxLayout();
57 topHBoxLayout->setSpacing(0);
58 topHBoxLayout->setObjectName(QStringLiteral(
"topHBoxLayout"));
59 title =
new QLabel(MiniMode);
60 title->setObjectName(QStringLiteral(
"title"));
61 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
62 sizePolicy.setHorizontalStretch(0);
63 sizePolicy.setVerticalStretch(0);
64 sizePolicy.setHeightForWidth(title->sizePolicy().hasHeightForWidth());
65 title->setSizePolicy(sizePolicy);
67 font.setFamily(QStringLiteral(
"Arial"));
72 title->setText(QStringLiteral(
"Mini Miam-Player"));
75 topHBoxLayout->addWidget(title);
77 previous =
new QPushButton(MiniMode);
78 previous->setObjectName(QStringLiteral(
"previous"));
79 previous->setMaximumSize(QSize(12, 12));
81 font1.setPointSize(1);
82 previous->setFont(font1);
83 previous->setStyleSheet(QLatin1String(
"QPushButton:focus {\n" 87 previous->setIconSize(QSize(10, 10));
88 previous->setFlat(
true);
90 topHBoxLayout->addWidget(previous);
92 playPause =
new QPushButton(MiniMode);
93 playPause->setObjectName(QStringLiteral(
"playPause"));
94 playPause->setMaximumSize(QSize(12, 12));
95 playPause->setFont(font1);
96 playPause->setStyleSheet(QLatin1String(
"QPushButton:focus {\n" 100 playPause->setIconSize(QSize(10, 10));
101 playPause->setFlat(
true);
103 topHBoxLayout->addWidget(playPause);
105 stop =
new QPushButton(MiniMode);
106 stop->setObjectName(QStringLiteral(
"stop"));
107 stop->setMaximumSize(QSize(12, 12));
108 stop->setFont(font1);
109 stop->setStyleSheet(QLatin1String(
"QPushButton:focus {\n" 113 stop->setIconSize(QSize(10, 10));
116 topHBoxLayout->addWidget(stop);
118 next =
new QPushButton(MiniMode);
119 next->setObjectName(QStringLiteral(
"next"));
120 next->setMaximumSize(QSize(12, 12));
121 next->setFont(font1);
122 next->setStyleSheet(QLatin1String(
"QPushButton:focus {\n" 126 next->setIconSize(QSize(10, 10));
129 topHBoxLayout->addWidget(next);
132 slider->setObjectName(QStringLiteral(
"slider"));
133 slider->setMaximumSize(QSize(16, 7));
134 slider->setMaximum(999);
135 slider->setOrientation(Qt::Horizontal);
137 topHBoxLayout->addWidget(slider);
139 minimize =
new QPushButton(MiniMode);
140 minimize->setObjectName(QStringLiteral(
"minimize"));
141 minimize->setMaximumSize(QSize(12, 12));
142 minimize->setFont(font1);
143 minimize->setStyleSheet(QLatin1String(
"QPushButton:focus {\n" 147 minimize->setIconSize(QSize(10, 10));
148 minimize->setFlat(
true);
150 topHBoxLayout->addWidget(minimize);
152 restore =
new QPushButton(MiniMode);
153 restore->setObjectName(QStringLiteral(
"restore"));
154 restore->setMaximumSize(QSize(12, 12));
155 restore->setFont(font1);
156 restore->setStyleSheet(QLatin1String(
"QPushButton:focus {\n" 160 restore->setIconSize(QSize(10, 10));
161 restore->setFlat(
true);
163 topHBoxLayout->addWidget(restore);
165 closeButton =
new QPushButton(MiniMode);
166 closeButton->setObjectName(QStringLiteral(
"closeButton"));
167 closeButton->setMaximumSize(QSize(12, 12));
168 closeButton->setFont(font1);
169 closeButton->setStyleSheet(QLatin1String(
"QPushButton:focus {\n" 173 closeButton->setIconSize(QSize(10, 10));
174 closeButton->setFlat(
true);
176 topHBoxLayout->addWidget(closeButton);
179 vBoxLayout->addLayout(topHBoxLayout);
181 bottomHBoxLayout =
new QHBoxLayout();
182 bottomHBoxLayout->setSpacing(0);
183 bottomHBoxLayout->setObjectName(QStringLiteral(
"bottomHBoxLayout"));
184 currentTrack =
new QLabel(MiniMode);
185 currentTrack->setObjectName(QStringLiteral(
"currentTrack"));
187 font2.setFamily(QStringLiteral(
"Arial"));
188 font2.setPointSize(6);
189 currentTrack->setFont(font2);
190 currentTrack->setIndent(5);
192 bottomHBoxLayout->addWidget(currentTrack);
195 time->setObjectName(QStringLiteral(
"time"));
196 time->setFont(font2);
197 time->setText(QStringLiteral(
"-- : --"));
198 time->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
201 bottomHBoxLayout->addWidget(time);
203 bottomHBoxLayout->setStretch(0, 5);
204 bottomHBoxLayout->setStretch(1, 1);
206 vBoxLayout->addLayout(bottomHBoxLayout);
211 QMetaObject::connectSlotsByName(MiniMode);
216 previous->setText(QString());
217 playPause->setText(QString());
218 stop->setText(QString());
219 next->setText(QString());
220 minimize->setText(QString());
221 restore->setText(QString());
222 closeButton->setText(QString());
223 currentTrack->setText(QApplication::translate(
"MiniMode",
"<No track>", Q_NULLPTR));
235 #endif // UI_MINIMODE_H QPushButton * restore
Definition: ui_minimode.h:39
QPushButton * stop
Definition: ui_minimode.h:35
QLabel * title
Definition: ui_minimode.h:32
QPushButton * playPause
Definition: ui_minimode.h:34
Definition: ui_matchingrecords.h:88
Definition: ui_minimode.h:27
QHBoxLayout * bottomHBoxLayout
Definition: ui_minimode.h:41
void retranslateUi(QWidget *MiniMode)
Definition: ui_minimode.h:214
TimeLabel * time
Definition: ui_minimode.h:43
QPushButton * closeButton
Definition: ui_minimode.h:40
Display up to three modes for the length of a track.
Definition: timelabel.h:12
MiniSlider * slider
Definition: ui_minimode.h:37
QPushButton * minimize
Definition: ui_minimode.h:38
QVBoxLayout * vBoxLayout
Definition: ui_minimode.h:30
void setupUi(QWidget *MiniMode)
Definition: ui_minimode.h:45
QLabel * currentTrack
Definition: ui_minimode.h:42
Definition: ui_minimode.h:230
QPushButton * next
Definition: ui_minimode.h:36
QHBoxLayout * topHBoxLayout
Definition: ui_minimode.h:31
QPushButton * previous
Definition: ui_minimode.h:33
Definition: minislider.h:7