Commit graph

10 commits

Author SHA1 Message Date
Ivailo Monev
1360960574 kdecore: remove redundant KSettings destructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-14 19:38:00 +03:00
Ivailo Monev
871151e83c generic: remove QT_KATIE definition checks
only Katie is supported now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-08 14:38:36 +03:00
Ivailo Monev
2e3f7122b6 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-11 22:55:59 +03:00
Ivailo Monev
9fde88228a kdecore: implement methods to save/restore widgets state via KSettings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-04-05 04:20:18 +03:00
Ivailo Monev
7c787fcae3 kdecore: check if filename argument of KSettings is absolute rather than existing
this ensures that if filename is to be created the fallback lookup is not
used and in case filename is existing directory instead of actual file, as
QFile::exists() may return true for directories, it does not end up as
relative path passed to QSetting which leads to QSettings object being
created with relative name rather than the fallback

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-09 00:10:22 +00:00
Ivailo Monev
2fa84d58be kdecore: remove redundant private KSettings pointer and add object argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-06 23:32:14 +00:00
Ivailo Monev
a1345d67d6 generic: require filename and mode to be passed to KSettings constructor
otherwise the constructor can be shadowed by the default QSettings
constructor which does not take any arguments at all

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-01 12:46:10 +00:00
Ivailo Monev
7d0c2d0cb1 generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-23 16:36:22 +00:00
Ivailo Monev
5b41f81878 generic: make use of KSettings where possible
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-12 17:45:25 +00:00
Ivailo Monev
c2f8387fa6 generic: implement KSettings class
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-12 14:09:24 +00:00