[vlmc-devel] commit: MediaListView: Corrected widget name (Hugo Beauzee-Luyssen )
git at videolan.org
git at videolan.org
Wed Mar 17 23:37:23 CET 2010
vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Wed Mar 17 21:38:35 2010 +0100| [2ced0a9e76e1986ff53cd61eb0b07f6acd441da4] | committer: Hugo Beauzee-Luyssen
MediaListView: Corrected widget name
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2ced0a9e76e1986ff53cd61eb0b07f6acd441da4
---
src/Gui/library/ListViewController.cpp | 7 ++++---
src/Gui/library/ListViewController.h | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/Gui/library/ListViewController.cpp b/src/Gui/library/ListViewController.cpp
index 4cd7cb0..33c26c5 100644
--- a/src/Gui/library/ListViewController.cpp
+++ b/src/Gui/library/ListViewController.cpp
@@ -30,7 +30,7 @@
ListViewController::ListViewController( StackViewController* nav ) : m_nav( nav )
{
- m_title = new QString( "Media List" );
+ m_title = tr( "Media List" );
m_scrollArea = new QScrollArea();
m_layout = new QVBoxLayout();
m_container = new QWidget();
@@ -47,15 +47,16 @@ ListViewController::ListViewController( StackViewController* nav ) : m_nav( nav
ListViewController::~ListViewController()
{
+ delete m_container;
+ delete m_layout;
delete m_scrollArea;
- delete m_title;
}
// ViewController method implementation
const QString& ListViewController::title() const
{
- return *m_title;
+ return m_title;
}
QWidget* ListViewController::view() const
diff --git a/src/Gui/library/ListViewController.h b/src/Gui/library/ListViewController.h
index 3a55d8e..5a79015 100644
--- a/src/Gui/library/ListViewController.h
+++ b/src/Gui/library/ListViewController.h
@@ -50,7 +50,7 @@ protected:
QVBoxLayout* m_layout;
private:
- QString* m_title;
+ QString m_title;
QScrollArea* m_scrollArea;
QWidget* m_container;
More information about the Vlmc-devel
mailing list