Commit 90b33d79 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use KSharedConfig::openStateConfig

parent b807e035
Pipeline #67262 passed with stage
in 10 minutes and 55 seconds
......@@ -38,13 +38,13 @@ public:
void AgentTypeDialog::Private::writeConfig() const
{
KConfigGroup group(KSharedConfig::openConfig(), "AgentTypeDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "AgentTypeDialog");
group.writeEntry("Size", q->size());
}
void AgentTypeDialog::Private::readConfig()
{
KConfigGroup group(KSharedConfig::openConfig(), "AgentTypeDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "AgentTypeDialog");
const QSize sizeDialog = group.readEntry("Size", QSize(460, 320));
if (sizeDialog.isValid()) {
q->resize(sizeDialog);
......
......@@ -170,7 +170,7 @@ void CollectionPropertiesDialog::Private::init()
});
q->connect(buttonBox->button(QDialogButtonBox::Cancel), &QAbstractButton::clicked, q, &QObject::deleteLater);
KConfigGroup group(KSharedConfig::openConfig(), "CollectionPropertiesDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "CollectionPropertiesDialog");
const QSize size = group.readEntry("Size", QSize());
if (size.isValid()) {
q->resize(size);
......@@ -195,7 +195,7 @@ CollectionPropertiesDialog::CollectionPropertiesDialog(const Collection &collect
CollectionPropertiesDialog::~CollectionPropertiesDialog()
{
KConfigGroup group(KSharedConfig::openConfig(), "CollectionPropertiesDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "CollectionPropertiesDialog");
group.writeEntry("Size", size());
delete d;
}
......
......@@ -99,13 +99,13 @@ public:
void writeConfig() const
{
KConfigGroup group(KSharedConfig::openConfig(), "SubscriptionDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "SubscriptionDialog");
group.writeEntry("Size", q->size());
}
void readConfig() const
{
KConfigGroup group(KSharedConfig::openConfig(), "SubscriptionDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "SubscriptionDialog");
const QSize sizeDialog = group.readEntry("Size", QSize(500, 400));
if (sizeDialog.isValid()) {
q->resize(sizeDialog);
......
......@@ -35,13 +35,13 @@ struct Q_DECL_HIDDEN TagManagementDialog::Private {
void TagManagementDialog::Private::writeConfig() const
{
KConfigGroup group(KSharedConfig::openConfig(), "TagManagementDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "TagManagementDialog");
group.writeEntry("Size", q->size());
}
void TagManagementDialog::Private::readConfig() const
{
KConfigGroup group(KSharedConfig::openConfig(), "TagManagementDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "TagManagementDialog");
const QSize sizeDialog = group.readEntry("Size", QSize(500, 400));
if (sizeDialog.isValid()) {
q->resize(sizeDialog);
......
......@@ -34,13 +34,13 @@ public:
void TagSelectionDialog::Private::writeConfig() const
{
KConfigGroup group(KSharedConfig::openConfig(), "TagSelectionDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "TagSelectionDialog");
group.writeEntry("Size", q->size());
}
void TagSelectionDialog::Private::readConfig() const
{
KConfigGroup group(KSharedConfig::openConfig(), "TagSelectionDialog");
KConfigGroup group(KSharedConfig::openStateConfig(), "TagSelectionDialog");
const QSize sizeDialog = group.readEntry("Size", QSize(500, 400));
if (sizeDialog.isValid()) {
q->resize(sizeDialog);
......
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