[vlc-commits] commit: Qt4: set title for the video as we do for other dialogs ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sun May 30 22:28:39 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun May 30 23:28:22 2010 +0300| [6fac93217a965a843046e4c0c814cc161a4e0cc8] | committer: Rémi Denis-Courmont
Qt4: set title for the video as we do for other dialogs
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6fac93217a965a843046e4c0c814cc161a4e0cc8
---
modules/gui/qt4/components/interface_widgets.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 988b95d..fe2ee5f 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -227,6 +227,12 @@ void VideoWidget::SetFullScreen( bool b_fs )
}
reparentable->setParent( NULL, newflags );
reparentable->setWindowState( newstate );
+
+ /* FIXME: inherit from the vout window, not the interface */
+ char *title = var_InheritString( p_intf, "video-title" );
+ reparentable->setWindowTitle( qfu(title ? title : _("Video")) );
+ free( title );
+
reparentable->show();
}
else
More information about the vlc-commits
mailing list