actions->insert("fullscreen", fullscreenAct);
connect(fullscreenAct, SIGNAL(triggered()), this, SLOT(fullscreen()));
- compactViewAct = new QAction(tr("&Compact View"), this);
- compactViewAct->setStatusTip(tr("Go compact view"));
- compactViewAct->setShortcut(QKeySequence(Qt::ALT + Qt::Key_M));
- compactViewAct->setCheckable(true);
- compactViewAct->setChecked(false);
- compactViewAct->setEnabled(false);
- actions->insert("compactView", compactViewAct);
- connect(compactViewAct, SIGNAL(toggled(bool)), this, SLOT(compactView(bool)));
+ compactViewAct = new QAction(tr("&Compact mode"), this);
+ compactViewAct->setStatusTip(tr("Hide the playlist and the toolbar"));
+ compactViewAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_M));
+ compactViewAct->setCheckable(true);
+ compactViewAct->setChecked(false);
+ compactViewAct->setEnabled(false);
+ actions->insert("compactView", compactViewAct);
+ connect(compactViewAct, SIGNAL(toggled(bool)), this, SLOT(compactView(bool)));
/*
// icon should be document-save but it is ugly
webPageAct = new QAction(QtIconLoader::icon("internet-web-browser", QIcon(":/images/internet-web-browser.png")), tr("&YouTube"), this);
webPageAct->setStatusTip(tr("Open the YouTube video page"));
- webPageAct->setShortcut(tr("Ctrl+Y"));
+ webPageAct->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Y));
webPageAct->setEnabled(false);
actions->insert("webpage", webPageAct);
connect(webPageAct, SIGNAL(triggered()), mediaView, SLOT(openWebPage()));
void MainWindow::createStatusBar() {
currentTime = new QLabel(this);
+ currentTime->setFrameShape(QFrame::NoFrame);
statusBar()->addPermanentWidget(currentTime);
+
totalTime = new QLabel(this);
+ totalTime->setFrameShape(QFrame::NoFrame);
statusBar()->addPermanentWidget(totalTime);
+
statusBar()->show();
}
// settingsAct->setEnabled(widget != settingsView);
stopAct->setEnabled(widget == mediaView);
fullscreenAct->setEnabled(widget == mediaView);
- compactViewAct->setEnabled(widget == mediaView);
+ compactViewAct->setEnabled(widget == mediaView);
webPageAct->setEnabled(widget == mediaView);
aboutAct->setEnabled(widget != aboutView);
}
void MainWindow::compactView(bool enable) {
- mediaView->setPlaylistVisible(!enable);
- mainToolBar->setVisible(!enable);
+ if (m_fullscreen) fullscreen();
+ mediaView->setPlaylistVisible(!enable);
+ mainToolBar->setVisible(!enable);
}
void MainWindow::searchFocus() {