[vlc-commits] Qt: main interface: add some better debugging
Francois Cartegnie
git at videolan.org
Sat May 12 14:38:46 CEST 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat May 12 14:22:20 2012 +0200| [a68ca69e34db8523b847d3acf64e14a39b5eeeff] | committer: Francois Cartegnie
Qt: main interface: add some better debugging
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a68ca69e34db8523b847d3acf64e14a39b5eeeff
---
modules/gui/qt4/main_interface.cpp | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index db3a12d..096d708 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -529,7 +529,11 @@ inline void MainInterface::restoreStackOldWidget()
inline void MainInterface::showTab( QWidget *widget )
{
#ifdef DEBUG_INTF
- msg_Warn( p_intf, "Old stackCentralOldWidget %i", stackCentralW->indexOf( stackCentralOldWidget ) );
+ if ( stackCentralOldWidget )
+ msg_Dbg( p_intf, "Old stackCentralOldWidget %s at index %i",
+ stackCentralOldWidget->metaObject()->className(),
+ stackCentralW->indexOf( stackCentralOldWidget ) );
+ msg_Dbg( p_intf, "ShowTab request for %s", widget->metaObject()->className() );
#endif
stackCentralOldWidget = stackCentralW->currentWidget();
@@ -570,8 +574,12 @@ inline void MainInterface::showTab( QWidget *widget )
resizeStack( stackWidgetsSizes[widget].width(), stackWidgetsSizes[widget].height() );
#ifdef DEBUG_INTF
- msg_Warn( p_intf, "State change %i", stackCentralW->currentIndex() );
- msg_Warn( p_intf, "New stackCentralOldWidget %i", stackCentralW->indexOf( stackCentralOldWidget ) );
+ msg_Dbg( p_intf, "Stack state changed to %s, index %i",
+ stackCentralW->currentWidget()->metaObject()->className(),
+ stackCentralW->currentIndex() );
+ msg_Dbg( p_intf, "New stackCentralOldWidget %s at index %i",
+ stackCentralOldWidget->metaObject()->className(),
+ stackCentralW->indexOf( stackCentralOldWidget ) );
#endif
/* This part is done later, to account for the new pl size */
More information about the vlc-commits
mailing list