Changeset 181 for smplayer/trunk/src/skingui/skingui.cpp
- Timestamp:
- Aug 31, 2016, 5:31:04 PM (9 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 179
- Property svn:mergeinfo changed
-
smplayer/trunk/src/skingui/skingui.cpp
r176 r181 56 56 , was_muted(false) 57 57 { 58 connect( this, SIGNAL(timeChanged(QString)),59 this, SLOT(displayTime(QString)) );60 61 58 createActions(); 62 59 createMainToolBars(); … … 106 103 107 104 // Create the time label 108 time_label_action = new TimeLabelAction(this);105 time_label_action = createTimeLabelAction(TimeLabelAction::CurrentAndTotalTime, this); 109 106 time_label_action->setObjectName("timelabel_action"); 110 107 … … 183 180 #endif 184 181 #endif 185 optionsMenu->addSeparator();186 optionsMenu->addMenu(toolbar_menu);187 182 188 183 statusbar_menu = new QMenu(this); 189 184 statusbar_menu->addAction(viewVideoInfoAct); 190 185 statusbar_menu->addAction(scrollTitleAct); 186 187 populateMainMenu(); 188 } 189 190 void SkinGui::populateMainMenu() { 191 BaseGuiPlus::populateMainMenu(); 192 193 optionsMenu->addSeparator(); 194 optionsMenu->addMenu(toolbar_menu); 191 195 optionsMenu->addMenu(statusbar_menu); 192 196 } … … 308 312 void SkinGui::createFloatingControl() { 309 313 // Floating control 310 floating_control = new AutohideWidget( panel);314 floating_control = new AutohideWidget(mplayerwindow); 311 315 floating_control->setAutoHide(true); 312 316 … … 407 411 viewVideoInfoAct->change(Images::icon("view_video_info"), tr("&Video info") ); 408 412 scrollTitleAct->change(Images::icon("scroll_title"), tr("&Scroll title") ); 409 }410 411 void SkinGui::displayTime(QString text) {412 time_label_action->setText(text);413 413 } 414 414 … … 591 591 592 592 if (!DesktopInfo::isInsideScreen(this)) { 593 move(0,0); 594 qWarning("SkinGui::loadConfig: window is outside of the screen, moved to 0x0"); 593 QPoint tl = DesktopInfo::topLeftPrimaryScreen(); 594 move(tl); 595 qWarning("DefaultGui::loadConfig: window is outside of the screen, moved to %d x %d", tl.x(), tl.y()); 595 596 } 596 597 }
Note:
See TracChangeset
for help on using the changeset viewer.