Commit graph

14 commits

Author SHA1 Message Date
Ivailo Monev
07d438624a lock QSettings files via flock()
now QSettings will behave much like opening a file via open() and the like,
see the QFile hijack test case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-20 17:51:00 +02:00
Ivailo Monev
bc0040b970 drop support for storing types that are not QString-convertable via QSettings
I am not interested in custom types feature at all - QMainWindow for
example saves its state via QDataStream. ofcourse it involves conversion
but that is the case with QVariant aswell. there is also the qreal type
thing - it may be float, it may double. streaming QRectF has to be done
in such a way to account for both cases but here is the catch - if
conversion fails there has to be fallback which QSettings::value() kinda
covers for types that are not composed of several more types.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-13 19:29:01 +02:00
Ivailo Monev
8f22f7f3cc skip some tests for QSettings::NativeFormat case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-15 23:36:08 +02:00
Ivailo Monev
426f22db6e remove optional license exception
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-08 15:08:15 +02:00
Ivailo Monev
bdfa9a8c84 update copyright to ease maintaince [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-02-05 06:18:50 +02:00
Ivailo Monev
58ef830341 copyright update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2021-01-02 01:59:24 +02:00
Ivailo Monev
31d2bd274c add custom type test case for QSettings
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-04 16:22:33 +00:00
Ivailo Monev
c456ede063 reimplement QSettings groups support
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-01 17:40:25 +00:00
Ivailo Monev
5b459cf0ec update copyright and add script for doing so
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-29 23:21:34 +00:00
Ivailo Monev
7769bca600 rework QSettings, use JSON as native format for it
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-24 01:30:39 +00:00
Ivailo Monev
9585bd773c mark certain core component options unsupported
this is mostly automated change set, a lot to be done later on
especially about the definitions in core component. the goal is
to make most of the options of the core component available so
that they can be utilized in other components and tools without
restrictions as shown by some of the changes done to the GUI
component in this commit

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-18 00:00:13 +00:00
Ivailo Monev
0e29188131 remove redundant QSETTINGS_P_H_VERSION definition checks from QSettings test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-09 19:28:22 +00:00
Ivailo Monev
903ff2ccff add missing () around a macro argument use in tst_QSettings::testEscapes()
upstream commit:
95b62e5a71

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-05 11:29:48 +00:00
Ivailo Monev
c75589b38c add QSettings test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-12-03 06:27:59 +00:00