Commit 3a1bccaa authored by Clement CHAVANCE's avatar Clement CHAVANCE

removed Project directory in the settings

parent 9d5bfd03
......@@ -67,10 +67,8 @@ void ProjectSettingsDefault::loadProjectDefaults( const QString& part )
{
SettingsManager* setMan = SettingsManager::getInstance();
QVariant defaultName = "project";
QVariant defaultPath = "./";
setMan->setValue( part, "ProjectName", defaultName );
setMan->setValue( part, "ProjectDirectory", defaultPath );
return ;
}
......
......@@ -43,18 +43,14 @@ void ProjectPreferences::load()
SettingsManager* settMan = SettingsManager::getInstance();
const QString& part = m_defaults ? "default" : m_settName;
QString Name = settMan->getValue( part, "ProjectName" ).toString();
QString Dir = settMan->getValue( part, "ProjectDirectory" ).toString();
m_ui.ProjectNameLineEdit->setText( Name );
m_ui.ProjectDirectoryLineEdit->setText( Dir );
}
void ProjectPreferences::save()
{
SettingsManager* settMan = SettingsManager::getInstance();
QVariant name( m_ui.ProjectNameLineEdit->text() );
QVariant dir( m_ui.ProjectDirectoryLineEdit->text() );
settMan->setValue( m_settName, "ProjectName", name );
settMan->setValue( m_settName, "ProjectDirectory", dir );
}
......@@ -21,39 +21,9 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="ProjectDirectoryLabel">
<property name="text">
<string>Project directory</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="ProjectNameLineEdit"/>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="ProjectDirectoryLineEdit"/>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="BrowsePushButton">
<property name="text">
<string>Browse...</string>
</property>
</widget>
</item>
<item row="2" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
......
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