first thoughts about downloads path changing

This commit is contained in:
Blue 2022-02-17 20:26:15 +03:00
parent da19eb86bb
commit 243edff8bd
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
11 changed files with 122 additions and 10 deletions

View file

@ -6,6 +6,9 @@ PageGeneral::PageGeneral(QWidget* parent):
m_ui(new Ui::PageGeneral())
{
m_ui->setupUi(this);
QSettings settings;
m_ui->downloadsPathInput->setText(settings.value("downloadsPath").toString());
}
PageGeneral::~PageGeneral()

View file

@ -4,6 +4,7 @@
#include <QWidget>
#include <QScopedPointer>
#include <QVariant>
#include <QSettings>
namespace Ui
{

View file

@ -11,15 +11,33 @@
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<item row="1" column="0">
<widget class="QLabel" name="downloadsPathLabel">
<property name="text">
<string>Downloads path</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="downloadsPathInput"/>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>6</number>
</property>
<item>
<widget class="QLineEdit" name="downloadsPathInput">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="downloadsPathButton">
<property name="text">
<string>PushButton</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>