[vlc-devel] [PATCH 14/16] qt: Forwarding signal when player controlbar need to be rebuild

Rohan Rajpal rohan17089 at iiitd.ac.in
Wed Jul 31 14:30:54 CEST 2019


Add a signal to notify when the player controlbar needs rebuild.
QEvent is no longer used to rebuild.
---
 modules/gui/qt/main_interface.cpp | 5 -----
 modules/gui/qt/main_interface.hpp | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/gui/qt/main_interface.cpp b/modules/gui/qt/main_interface.cpp
index eb28983885..a93e3655d3 100644
--- a/modules/gui/qt/main_interface.cpp
+++ b/modules/gui/qt/main_interface.cpp
@@ -1073,11 +1073,6 @@ void MainInterface::closeEvent( QCloseEvent *e )
     }
 }
 
-void MainInterface::toolBarConfUpdated()
-{
-    QApplication::postEvent( this, new QEvent( MainInterface::ToolbarsNeedRebuild ) );
-}
-
 void MainInterface::setFullScreen( bool fs )
 {
     if( fs )
diff --git a/modules/gui/qt/main_interface.hpp b/modules/gui/qt/main_interface.hpp
index bd3b917661..371cd54ac5 100644
--- a/modules/gui/qt/main_interface.hpp
+++ b/modules/gui/qt/main_interface.hpp
@@ -212,7 +212,6 @@ public slots:
     void popupMenu( bool show );
 
     virtual void reloadPrefs();
-    void toolBarConfUpdated();
     VLCVarChoiceModel* getExtraInterfaces();
 
 protected slots:
@@ -257,6 +256,7 @@ signals:
     void interfaceAlwaysOnTopChanged(bool);
     void interfaceFullScreenChanged(bool);
     void hasEmbededVideoChanged(bool);
+    void toolBarConfUpdated();
 };
 
 #endif
-- 
2.17.1



More information about the vlc-devel mailing list