Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/skingui/skingui.cpp

    r176 r181  
    5656        , was_muted(false)
    5757{
    58         connect( this, SIGNAL(timeChanged(QString)),
    59              this, SLOT(displayTime(QString)) );
    60 
    6158        createActions();
    6259        createMainToolBars();
     
    106103
    107104        // Create the time label
    108         time_label_action = new TimeLabelAction(this);
     105        time_label_action = createTimeLabelAction(TimeLabelAction::CurrentAndTotalTime, this);
    109106        time_label_action->setObjectName("timelabel_action");
    110107
     
    183180        #endif
    184181#endif
    185         optionsMenu->addSeparator();
    186         optionsMenu->addMenu(toolbar_menu);
    187182
    188183        statusbar_menu = new QMenu(this);
    189184        statusbar_menu->addAction(viewVideoInfoAct);
    190185        statusbar_menu->addAction(scrollTitleAct);
     186
     187        populateMainMenu();
     188}
     189
     190void SkinGui::populateMainMenu() {
     191        BaseGuiPlus::populateMainMenu();
     192
     193        optionsMenu->addSeparator();
     194        optionsMenu->addMenu(toolbar_menu);
    191195        optionsMenu->addMenu(statusbar_menu);
    192196}
     
    308312void SkinGui::createFloatingControl() {
    309313        // Floating control
    310         floating_control = new AutohideWidget(panel);
     314        floating_control = new AutohideWidget(mplayerwindow);
    311315        floating_control->setAutoHide(true);
    312316
     
    407411        viewVideoInfoAct->change(Images::icon("view_video_info"), tr("&Video info") );
    408412        scrollTitleAct->change(Images::icon("scroll_title"), tr("&Scroll title") );
    409 }
    410 
    411 void SkinGui::displayTime(QString text) {
    412         time_label_action->setText(text);
    413413}
    414414
     
    591591
    592592                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());
    595596                }
    596597        }
Note: See TracChangeset for help on using the changeset viewer.