~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to src/mpcgui/mpcgui.cpp

  • Committer: Package Import Robot
  • Author(s): Mateusz Łukasik, Mateusz Łukasik, Alessio Treglia
  • Date: 2014-09-10 13:50:48 UTC
  • mfrom: (1.3.3)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20140910135048-t043hd88bhpfvfow
[ Mateusz Łukasik ]
* New upstream release.

[ Alessio Treglia ]
* Repackaging upstream sources to get rid of
  zlib/contrib/dotzlib/DotZLib.chm.
* Enable parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
        floating_control->setAutoHide(true);
135
135
        floating_control->hide();
136
136
        spacer = new QSpacerItem(10,10);
 
137
 
 
138
        floating_control_time = new QLabel(floating_control);
 
139
        floating_control_time->setAlignment(Qt::AlignRight);
 
140
        floating_control_time->setAutoFillBackground(true);
 
141
        ColorUtils::setBackgroundColor( floating_control_time, QColor(0,0,0) );
 
142
        ColorUtils::setForegroundColor( floating_control_time, QColor(255,255,255) );
 
143
 
137
144
}
138
145
 
139
146
void MpcGui::retranslateStrings() {
176
183
        floating_control->layout()->addWidget(timeslidewidget);
177
184
        floating_control->layout()->addItem(spacer);
178
185
        floating_control->layout()->addWidget(controlwidget);
 
186
        floating_control->layout()->addWidget(floating_control_time);
179
187
        controlwidget->show();
180
188
        timeslidewidget->show();
181
189
        floating_control->adjustSize();
203
211
        floating_control->layout()->removeWidget(controlwidget);
204
212
        floating_control->layout()->removeWidget(timeslidewidget);
205
213
        floating_control->layout()->removeItem(spacer);
 
214
        floating_control->layout()->removeWidget(floating_control_time);
206
215
        addToolBar(Qt::BottomToolBarArea, controlwidget);
207
216
        addToolBarBreak(Qt::BottomToolBarArea);
208
217
        addToolBar(Qt::BottomToolBarArea, timeslidewidget);
417
426
void MpcGui::displayTime(QString text) {
418
427
        time_display->setText( text );
419
428
        time_label_action->setText(text );
 
429
        floating_control_time->setText(text);
420
430
}
421
431
 
422
432
void MpcGui::displayFrame(int frame) {