SLOT(updateDownloadMessage(QString)));
connect(DownloadManager::instance(), SIGNAL(finished()),
SLOT(downloadsFinished()));
-
- this->setMouseTracking(true);
}
MainWindow::~MainWindow() {
setDefinitionMode(nextDefinition);
}
+void MainWindow::showFullscreenToolbar(bool show) {
+ if (!m_fullscreen) return;
+ mainToolBar->setVisible(show);
+}
+
+void MainWindow::showFullscreenPlaylist(bool show) {
+ if (!m_fullscreen) return;
+ mediaView->setPlaylistVisible(show);
+}
+
void MainWindow::clearRecentKeywords() {
QSettings settings;
settings.remove("recentKeywords");
void volumeChanged(qreal newVolume);
void volumeMutedChanged(bool muted);
+ // fullscreen toolbar
+ void showFullscreenToolbar(bool show);
+ void showFullscreenPlaylist(bool show);
+
// void setAutoplay(bool enabled);
void updateDownloadMessage(QString);
void downloadsFinished();
videoAreaWidget->showFullScreen();
}
-QSize MediaView::getPlaylistSize() {
- return this->playlistWidget->size();
-}
-
/*
void MediaView::setSlider(QSlider *slider) {
this->slider = slider;
void setMediaObject(Phonon::MediaObject *mediaObject);
void setSlider(QSlider *slider);
- QSize getPlaylistSize();
public slots:
void search(SearchParams *searchParams);
const int x = event->pos().x();
const int y = event->pos().y();
- bool visible = y <= 0;
+ bool visible = y <= 10;
bool ret = QMetaObject::invokeMethod(mainWindow, "showFullscreenToolbar", Qt::DirectConnection, Q_ARG(bool, visible));
if (!ret) qDebug() << "showFullscreenToolbar invokeMethod failed";
- visible = x <= 0;
+ visible = x <= 10;
ret = QMetaObject::invokeMethod(mainWindow, "showFullscreenPlaylist", Qt::DirectConnection, Q_ARG(bool, visible));
if (!ret) qDebug() << "showFullscreenPlaylist invokeMethod failed";
}