Commit graph

46 commits

Author SHA1 Message Date
Ivailo Monev
efdf9663fc kdecore: adjust KConfigGroup macros to KDebug changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-08-09 18:11:44 +03:00
Ivailo Monev
53efbdfa94 kdecore: remove all KSaveFile backup modes except simple
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-06-14 11:49:13 +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
4efedb64ff kdecore: compiler warning fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-09 16:39:23 +02:00
Ivailo Monev
49744946c6 kdecore: fix build against Qt4
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-01-29 13:04:53 +00: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
62fd359884 kdecore: remove explicit specifier from KSettings constructor
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-25 23:08:09 +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
5cc29351d6 kdecore: fix KEntryMap value change
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-29 12:20:55 +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
3da944f05b kdecore: review KSettings documentation
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-12 17:43:27 +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
Ivailo Monev
90ce55bb9f kdecore: plugin KConfig memory leaks
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-18 15:38:57 +00:00
Ivailo Monev
885e632451 kdecore: compiler warnings fix
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-15 21:52:19 +00:00
Ivailo Monev
0a2cb537d4 kdecore: get rid of useless header and class declaration
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-06-24 06:37:36 +00:00
Ivailo Monev
3a84c19c03 kdecore: fix the mess that I created
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-10-19 03:56:01 +00:00
Ivailo Monev
5face5226b kdecore: fix overloading issue
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-10-19 03:44:19 +00:00
Ivailo Monev
949dff9e92 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-10-19 03:32:06 +00:00
Ivailo Monev
3716d95998 generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-09-16 02:33:29 +00:00
Ivailo Monev
5600c15dec generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-11 08:06:16 +00:00
Ivailo Monev
5f025e2a91 kdecore: remove unnecessary headers inclusions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-08 14:27:46 +00:00
Ivailo Monev
b9788987ab generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-28 16:28:57 +00:00
Ivailo Monev
ab1b4710ba generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-28 15:29:35 +00:00
Ivailo Monev
91174d40d0 kdecore: drop support for config backends
there was only one now backend (INI) and changing it on the fly
(as was supported before) can cause serious issues with
applications misbihaving and such

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-28 07:00:48 +00:00
Ivailo Monev
8cd418cd6a kdecore: cleanup Desktop file handler
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-20 16:39:26 +02:00
Ivailo Monev
4a7e7dacad kdecore: remove deprecated kshared typedef
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-30 15:04:08 +02:00
Ivailo Monev
ec5f61b012 generic: stop using oboslete code paths
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-10-28 06:47:23 +02:00
Ivailo Monev
636f904183 generic: optimize standard directories lookup
by caching results and storing them in a hash the results should
flow faster, a limit should probably be set on this but for now
there isn't. exists() and realPath() now cannot be called without
object!
2015-10-17 18:53:50 +03:00
Ivailo Monev
4d683ae8b3 generic: cleanups remains of custom apps resources support 2015-09-06 14:42:29 +03:00
Ivailo Monev
e7133114e1 generic: misc cleanups 2015-09-05 05:16:46 +00:00
Ivailo Monev
eeba19d4c4 generic: misc cleanups 2015-09-04 13:06:11 +00:00
Ivailo Monev
f13369f623 generic: misc cleanups 2015-08-16 02:40:52 +03:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
bbea8b2acc generic: drop most of the KIOSK functionality 2015-05-19 05:23:35 +00:00
Ivailo Monev
d417f74d40 kdecore: remove redudant support for kde4rc and system.kdeglobals configs 2015-04-28 16:21:11 +00:00
Ivailo Monev
46abe997dd Revert "kdecore: stop looking for kdeglobals configs"
This reverts commit d7721f7db1.
2015-04-28 07:40:38 +00:00
Ivailo Monev
d7721f7db1 kdecore: stop looking for kdeglobals configs
this saves 2 stat system calls for every config object created but
is not a complete overheath reduction I belive because there are
enumartors and other code related to globals that I'm afraid to
touch because I'm not very familiar with the configs code. needs
a review.
2015-04-23 19:32:20 +00:00
Ivailo Monev
bf501e6429 generic: remove redudant virtual_hook definitions 2015-04-23 14:50:12 +00:00
Ivailo Monev
5333e9917d generic: remove deprecated API 2015-02-28 03:27:54 +00:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
3f0dd268de remove win and mac cruft 2014-11-27 18:22:42 +00:00
Ivailo Monev
b99fa1400b more windows code remove 2014-11-19 15:19:19 +00:00
Ivailo Monev
c3f3bcb965 windows code remove 2014-11-19 15:17:14 +00:00
Ivailo Monev
814163a8dc initial import 2014-11-13 01:04:59 +02:00