p.setBrush(QPalette::Window, Qt::black);
setPalette(p);
setAutoFillBackground(true);
+ setStyleSheet("background:black");
#endif
// hidden message widget
void VideoAreaWidget::mouseMoveEvent(QMouseEvent *event) {
QWidget::mouseMoveEvent(event);
+#ifdef Q_WS_X11
QWidget* mainWindow = window();
if (!mainWindow->isFullScreen()) return;
visible = x <= 10;
ret = QMetaObject::invokeMethod(mainWindow, "showFullscreenPlaylist", Qt::DirectConnection, Q_ARG(bool, visible));
if (!ret) qDebug() << "showFullscreenPlaylist invokeMethod failed";
+#endif
+}
+
+void VideoAreaWidget::leaveEvent(QMouseEvent *event) {
+ QWidget::leaveEvent(event);
+
+#ifdef Q_WS_X11
+ QWidget* mainWindow = window();
+ if (!mainWindow->isFullScreen()) return;
+
+ bool visible = false;
+ bool ret = QMetaObject::invokeMethod(mainWindow, "showFullscreenToolbar", Qt::DirectConnection, Q_ARG(bool, visible));
+ if (!ret) qDebug() << "showFullscreenToolbar invokeMethod failed";
+
+ ret = QMetaObject::invokeMethod(mainWindow, "showFullscreenPlaylist", Qt::DirectConnection, Q_ARG(bool, visible));
+ if (!ret) qDebug() << "showFullscreenPlaylist invokeMethod failed";
+#endif
}