[vlc-commits] Qt: messages: display hex addresses

Francois Cartegnie git at videolan.org
Tue Mar 15 21:36:47 CET 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Mar 15 21:25:17 2011 +0100| [1f416db126e42c0ded3a9845b7c0204d579a9ad1] | committer: Francois Cartegnie

Qt: messages: display hex addresses

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f416db126e42c0ded3a9845b7c0204d579a9ad1
---

 modules/gui/qt4/dialogs/messages.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index 08d9ce6..61472d3 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -257,12 +257,12 @@ void MessagesDialog::buildTree( QTreeWidgetItem *parentItem,
         item = new QTreeWidgetItem( ui.modulesTree );
 
     char *name = vlc_object_get_name( p_obj );
-    item->setText( 0, QString("%1 \"%2\" (%3)")
+    item->setText( 0, QString("%1%2 (0x%3)")
                    .arg( qfu( p_obj->psz_object_type ) )
                    .arg( ( name != NULL )
                          ? QString( " \"%1\"" ).arg( qfu( name ) )
                              : "" )
-                   .arg( QString::number((uintptr_t)p_obj) )
+                   .arg( (uintptr_t)p_obj, 0, 16 )
                  );
     free( name );
     item->setExpanded( true );



More information about the vlc-commits mailing list