Removed unused field from preferences.
--HG-- branch : feature
This commit is contained in:
parent
464a54c7ee
commit
03e1256952
|
@ -58,7 +58,6 @@ PreferencesPatternPage::PreferencesPatternPage(QWidget *parent)
|
||||||
ui(new Ui::PreferencesPatternPage)
|
ui(new Ui::PreferencesPatternPage)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->userName->setText(qApp->ValentinaSettings()->GetUser());
|
|
||||||
ui->graphOutputCheck->setChecked(qApp->ValentinaSettings()->GetGraphicalOutput());
|
ui->graphOutputCheck->setChecked(qApp->ValentinaSettings()->GetGraphicalOutput());
|
||||||
ui->undoCount->setValue(qApp->ValentinaSettings()->GetUndoCount());
|
ui->undoCount->setValue(qApp->ValentinaSettings()->GetUndoCount());
|
||||||
|
|
||||||
|
@ -81,7 +80,6 @@ PreferencesPatternPage::~PreferencesPatternPage()
|
||||||
void PreferencesPatternPage::Apply()
|
void PreferencesPatternPage::Apply()
|
||||||
{
|
{
|
||||||
VSettings *settings = qApp->ValentinaSettings();
|
VSettings *settings = qApp->ValentinaSettings();
|
||||||
settings->SetUser(ui->userName->text());
|
|
||||||
|
|
||||||
// Scene antialiasing
|
// Scene antialiasing
|
||||||
settings->SetGraphicalOutput(ui->graphOutputCheck->isChecked());
|
settings->SetGraphicalOutput(ui->graphOutputCheck->isChecked());
|
||||||
|
|
|
@ -14,29 +14,6 @@
|
||||||
<string notr="true">Pattern</string>
|
<string notr="true">Pattern</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
|
||||||
<widget class="QGroupBox" name="groupBox">
|
|
||||||
<property name="title">
|
|
||||||
<string>User</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QFormLayout" name="formLayout">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>User name:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QLineEdit" name="userName">
|
|
||||||
<property name="clearButtonEnabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_2">
|
<widget class="QGroupBox" name="groupBox_2">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>3</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
|
|
@ -63,7 +63,6 @@ const QString settingConfigurationConfirmItemDeletion = QStringLiteral("confi
|
||||||
const QString settingConfigurationConfirmFormatRewriting = QStringLiteral("configuration/confirm_format_rewriting");
|
const QString settingConfigurationConfirmFormatRewriting = QStringLiteral("configuration/confirm_format_rewriting");
|
||||||
const QString settingConfigurationToolBarStyle = QStringLiteral("configuration/tool_bar_style");
|
const QString settingConfigurationToolBarStyle = QStringLiteral("configuration/tool_bar_style");
|
||||||
|
|
||||||
const QString settingPatternUser = QStringLiteral("pattern/user");
|
|
||||||
const QString settingPatternUndo = QStringLiteral("pattern/undo");
|
const QString settingPatternUndo = QStringLiteral("pattern/undo");
|
||||||
const QString settingPatternForbidFlipping = QStringLiteral("pattern/forbidFlipping");
|
const QString settingPatternForbidFlipping = QStringLiteral("pattern/forbidFlipping");
|
||||||
const QString settingPatternHideMainPath = QStringLiteral("pattern/hideMainPath");
|
const QString settingPatternHideMainPath = QStringLiteral("pattern/hideMainPath");
|
||||||
|
@ -479,24 +478,6 @@ void VCommonSettings::SetToolBarStyle(const bool &value)
|
||||||
setValue(settingConfigurationToolBarStyle, value);
|
setValue(settingConfigurationToolBarStyle, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
QString VCommonSettings::GetUser() const
|
|
||||||
{
|
|
||||||
QString user;
|
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USERNAME").constData())).toString();
|
|
||||||
#else
|
|
||||||
user = value(settingPatternUser, QString::fromLocal8Bit(qgetenv("USER").constData())).toString();
|
|
||||||
#endif
|
|
||||||
return user;
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
void VCommonSettings::SetUser(const QString &value)
|
|
||||||
{
|
|
||||||
setValue(settingPatternUser, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
int VCommonSettings::GetUndoCount() const
|
int VCommonSettings::GetUndoCount() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -100,9 +100,6 @@ public:
|
||||||
bool GetToolBarStyle() const;
|
bool GetToolBarStyle() const;
|
||||||
void SetToolBarStyle(const bool &value);
|
void SetToolBarStyle(const bool &value);
|
||||||
|
|
||||||
QString GetUser() const;
|
|
||||||
void SetUser(const QString &value);
|
|
||||||
|
|
||||||
int GetUndoCount() const;
|
int GetUndoCount() const;
|
||||||
void SetUndoCount(const int &value);
|
void SetUndoCount(const int &value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user