Commit 75e57a8e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Settings: Change the settings window title

parent d031db85
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
#include <QtDebug> #include <QtDebug>
Settings::Settings( SettingsManager::Type type, QWidget *parent, Qt::WindowFlags f ) : Settings::Settings( SettingsManager::Type type, QWidget *parent ) :
QDialog( parent, f ), QDialog( parent ),
m_type( type ) m_type( type )
{ {
setMinimumHeight( 400 ); setMinimumHeight( 400 );
...@@ -170,4 +170,8 @@ Settings::retranslateUi() ...@@ -170,4 +170,8 @@ Settings::retranslateUi()
if ( text.length() >= 1 ) if ( text.length() >= 1 )
text[0] = text[0].toUpper(); text[0] = text[0].toUpper();
m_title->setText( text ); m_title->setText( text );
if ( m_type == SettingsManager::Project )
setWindowTitle( tr( "Project preferences" ) );
else
setWindowTitle( tr( "VLMC Settings" ) );
} }
...@@ -45,7 +45,7 @@ class Settings : public QDialog ...@@ -45,7 +45,7 @@ class Settings : public QDialog
Q_DISABLE_COPY( Settings ) Q_DISABLE_COPY( Settings )
public: public:
Settings( SettingsManager::Type type, QWidget *parent = 0, Qt::WindowFlags f = 0 ); Settings( SettingsManager::Type type, QWidget *parent = 0 );
void addCategory( const char *name, void addCategory( const char *name,
SettingsManager::Type type, SettingsManager::Type type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment