1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Simplyfy advanced settings - DB setting

thanks to @AWeinb for idea, fixes #1514
This commit is contained in:
Zetok Zalbavar 2015-08-28 11:31:43 +01:00
parent bae8a0d0c8
commit 9561660104
No known key found for this signature in database
GPG Key ID: C953D3880212068A
2 changed files with 4 additions and 4 deletions

View File

@ -36,9 +36,9 @@ AdvancedForm::AdvancedForm() :
bodyUI->cbMakeToxPortable->setChecked(Settings::getInstance().getMakeToxPortable());
bodyUI->syncTypeComboBox->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength);
bodyUI->syncTypeComboBox->addItems({tr("FULL - very safe, slowest (recommended)"),
tr("NORMAL - almost as safe as FULL, about 20% faster than FULL"),
tr("OFF - disables all safety, when something goes wrong your history may be lost, fastest (not recommended)")
bodyUI->syncTypeComboBox->addItems({tr("Synchronized - safe / recommended"),
tr("Partially async - risky / 20% faster"),
tr("Asynchronous - dangerous / fastest")
});
int index = 2 - static_cast<int>(Settings::getInstance().getDbSyncType());
bodyUI->syncTypeComboBox->setCurrentIndex(index);

View File

@ -73,7 +73,7 @@
<item>
<widget class="QLabel" name="dbLabel">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;http://www.sqlite.org/pragma.html#pragma_synchronous&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Synchronous writing to DB&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;http://www.sqlite.org/pragma.html#pragma_synchronous&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;Writing to DB&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>