Allowing reset RAID config file path to default.
This commit is contained in:
parent
170a0fadde
commit
45217f4b7e
|
@ -69,11 +69,12 @@ void AdvancedPageWidget::setupDialog()
|
|||
|
||||
QString AdvancedPageWidget::raidConfigurationFile() const
|
||||
{
|
||||
return raidConfigFilePath->text();
|
||||
return raidConfigFilePath->text().trimmed();
|
||||
}
|
||||
|
||||
void AdvancedPageWidget::setRaidConfigurationFile(const QString &file)
|
||||
{
|
||||
raidConfigFilePath->clear();
|
||||
raidConfigFilePath->insert(file);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,9 @@ public:
|
|||
const QComboBox& comboBackend() const {
|
||||
return *m_ComboBackend;
|
||||
}
|
||||
const QLineEdit& raidConfigurationLine() const {
|
||||
return *raidConfigFilePath;
|
||||
}
|
||||
|
||||
QString backend() const;
|
||||
void setBackend(const QString& name);
|
||||
|
|
|
@ -67,6 +67,7 @@ ConfigureOptionsDialog::ConfigureOptionsDialog(QWidget* parent, const OperationS
|
|||
item->setIcon(QIcon::fromTheme(QStringLiteral("configure")).pixmap(IconSize(KIconLoader::Desktop)));
|
||||
|
||||
connect(&advancedPageWidget().comboBackend(), qOverload<int>(&QComboBox::activated), this, &ConfigureOptionsDialog::onComboDefaultFileSystemActivated);
|
||||
connect(&advancedPageWidget().raidConfigurationLine(), &QLineEdit::textChanged, this, &ConfigureOptionsDialog::onRaidConfigFilePathActivated);
|
||||
|
||||
KConfigGroup kcg(KSharedConfig::openConfig(), "configureOptionsDialogs");
|
||||
restoreGeometry(kcg.readEntry<QByteArray>("Geometry", QByteArray()));
|
||||
|
|
|
@ -44,6 +44,9 @@ protected:
|
|||
void onShredSourceActivated() {
|
||||
settingsChangedSlot();
|
||||
}
|
||||
void onRaidConfigFilePathActivated() {
|
||||
settingsChangedSlot();
|
||||
}
|
||||
void onComboBackendActivated(int);
|
||||
|
||||
GeneralPageWidget& generalPageWidget() {
|
||||
|
|
Loading…
Reference in New Issue