[vlmc-devel] commit: Settings: Change the settings window title ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Tue Jul 20 11:53:38 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Jul 20 11:45:20 2010 +0200| [75e57a8e59d24748c516593b89815bb07e5921bf] | committer: Hugo Beauzée-Luyssen 

Settings: Change the settings window title

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=75e57a8e59d24748c516593b89815bb07e5921bf
---

 src/Gui/settings/Settings.cpp |    8 ++++++--
 src/Gui/settings/Settings.h   |    2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/Gui/settings/Settings.cpp b/src/Gui/settings/Settings.cpp
index b268c1a..bc70589 100644
--- a/src/Gui/settings/Settings.cpp
+++ b/src/Gui/settings/Settings.cpp
@@ -38,8 +38,8 @@
 
 #include <QtDebug>
 
-Settings::Settings( SettingsManager::Type type, QWidget *parent, Qt::WindowFlags f ) :
-    QDialog( parent, f ),
+Settings::Settings( SettingsManager::Type type, QWidget *parent ) :
+    QDialog( parent ),
     m_type( type )
 {
     setMinimumHeight( 400 );
@@ -170,4 +170,8 @@ Settings::retranslateUi()
     if ( text.length() >= 1 )
         text[0] = text[0].toUpper();
     m_title->setText( text );
+    if ( m_type == SettingsManager::Project )
+        setWindowTitle( tr( "Project preferences" ) );
+    else
+        setWindowTitle( tr( "VLMC Settings" ) );
 }
diff --git a/src/Gui/settings/Settings.h b/src/Gui/settings/Settings.h
index bfd9938..fe0279b 100644
--- a/src/Gui/settings/Settings.h
+++ b/src/Gui/settings/Settings.h
@@ -45,7 +45,7 @@ class   Settings : public QDialog
     Q_DISABLE_COPY( Settings )
 
     public:
-        Settings( SettingsManager::Type type, QWidget *parent = 0, Qt::WindowFlags f = 0 );
+        Settings( SettingsManager::Type type, QWidget *parent = 0 );
 
         void                        addCategory( const char *name,
                                                  SettingsManager::Type type,



More information about the Vlmc-devel mailing list