[vlc-commits] commit: Qt: messages: Use std button for close button (Francois Cartegnie )
git at videolan.org
git at videolan.org
Wed Dec 22 19:48:04 CET 2010
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 22 19:41:16 2010 +0100| [0782f130b52f15c21b10a84b16f62cd3e9fd59c6] | committer: Francois Cartegnie
Qt: messages: Use std button for close button
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0782f130b52f15c21b10a84b16f62cd3e9fd59c6
---
modules/gui/qt4/dialogs/messages.cpp | 2 ++
modules/gui/qt4/ui/messages_panel.ui | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/dialogs/messages.cpp b/modules/gui/qt4/dialogs/messages.cpp
index 7491d5c..029cee5 100644
--- a/modules/gui/qt4/dialogs/messages.cpp
+++ b/modules/gui/qt4/dialogs/messages.cpp
@@ -78,6 +78,8 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf)
/* Build Ui */
ui.setupUi( this );
+ ui.bottomButtonsBox->addButton( new QPushButton( qtr("&Close"), this ),
+ QDialogButtonBox::RejectRole );
updateTree();
/* Modules tree */
diff --git a/modules/gui/qt4/ui/messages_panel.ui b/modules/gui/qt4/ui/messages_panel.ui
index 9efc353..2d6db82 100644
--- a/modules/gui/qt4/ui/messages_panel.ui
+++ b/modules/gui/qt4/ui/messages_panel.ui
@@ -111,7 +111,7 @@
<item>
<widget class="QDialogButtonBox" name="bottomButtonsBox">
<property name="standardButtons">
- <set>QDialogButtonBox::Close</set>
+ <set>QDialogButtonBox::NoButton</set>
</property>
</widget>
</item>
More information about the vlc-commits
mailing list