mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-04 16:25:27 +08:00
qt 6.5.1 original
This commit is contained in:
45
tests/auto/corelib/io/qsettings/CMakeLists.txt
Normal file
45
tests/auto/corelib/io/qsettings/CMakeLists.txt
Normal file
@ -0,0 +1,45 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#####################################################################
|
||||
## tst_qsettings Test:
|
||||
#####################################################################
|
||||
|
||||
# Test:
|
||||
set(qsettings_resource_files
|
||||
"bom.ini"
|
||||
"resourcefile.ini"
|
||||
"resourcefile2.ini"
|
||||
"resourcefile3.ini"
|
||||
"resourcefile6.plist"
|
||||
"withcomments.ini"
|
||||
"float.ini"
|
||||
"qt5settings.ini"
|
||||
"utf8settings.ini"
|
||||
)
|
||||
|
||||
qt_internal_add_test(tst_qsettings
|
||||
SOURCES
|
||||
tst_qsettings.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
../../kernel/qmetatype
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::Gui
|
||||
TESTDATA ${qsettings_resource_files}
|
||||
BUILTIN_TESTDATA
|
||||
)
|
||||
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
qt_internal_extend_target(tst_qsettings CONDITION MSVC
|
||||
LIBRARIES
|
||||
advapi32
|
||||
)
|
||||
|
||||
qt_internal_extend_target(tst_qsettings CONDITION APPLE
|
||||
LIBRARIES
|
||||
${FWCoreFoundation}
|
||||
)
|
4
tests/auto/corelib/io/qsettings/bom.ini
Normal file
4
tests/auto/corelib/io/qsettings/bom.ini
Normal file
@ -0,0 +1,4 @@
|
||||
[section1]
|
||||
foo1=bar1
|
||||
[section2]
|
||||
foo2=bar2
|
3
tests/auto/corelib/io/qsettings/float.ini
Normal file
3
tests/auto/corelib/io/qsettings/float.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[test]
|
||||
float=0.5
|
||||
float_qvariant=@Variant(\0\0\0\x87?\0\0\0)
|
11
tests/auto/corelib/io/qsettings/qt5settings.ini
Normal file
11
tests/auto/corelib/io/qsettings/qt5settings.ini
Normal file
@ -0,0 +1,11 @@
|
||||
[General]
|
||||
.%2C%27%25U%U0430%U0431%U0432%U0433%22%09=".,'%!@#$"
|
||||
%U265F=\x2658\x265a
|
||||
%UD83C%UDF0D=\xd83c\xdf10
|
||||
|
||||
[Test]
|
||||
BAR=BAR
|
||||
B%C4R=B\xc4R
|
||||
OST=OST
|
||||
%D6SE=\xd6SE
|
||||
%U042D%U0442%U043E\%U0442%U0435%U0441%U0442=\x42d\x442\x43e \x442\x435\x441\x442
|
46
tests/auto/corelib/io/qsettings/resourcefile.ini
Normal file
46
tests/auto/corelib/io/qsettings/resourcefile.ini
Normal file
@ -0,0 +1,46 @@
|
||||
[Field%201]
|
||||
Bottom=89
|
||||
Flags=MULTILINE|VSCROLL|READONLY
|
||||
Left=4
|
||||
Right=296
|
||||
State=No license agreement file found. Please contact support.
|
||||
Top=14
|
||||
Type=Text
|
||||
|
||||
[Field%202]
|
||||
Bottom=8
|
||||
Left=4
|
||||
Right=294
|
||||
Text=Press Page Down to see the rest of the agreement.
|
||||
Top=0
|
||||
Type=Label
|
||||
|
||||
[Field%203]
|
||||
Bottom=111
|
||||
Left=4
|
||||
Right=297
|
||||
Text=If you accept the terms of the agreement, select the first option below. You must accept the agreement to install this software. Click Next to continue.
|
||||
Top=92
|
||||
Type=Label
|
||||
|
||||
[Field%204]
|
||||
Bottom=129
|
||||
Flags=GROUP|NOTIFY
|
||||
Left=4
|
||||
Right=299
|
||||
Text=I &accept the terms in the License Agreement
|
||||
Top=120
|
||||
Type=RadioButton
|
||||
|
||||
[Field%205]
|
||||
Bottom=140
|
||||
Flags=NOTIFY
|
||||
Left=4
|
||||
Right=300
|
||||
State=1
|
||||
Text=I &do not accept the terms in the License Agreement
|
||||
Top=129
|
||||
Type=RadioButton
|
||||
|
||||
[Settings]
|
||||
NumFields=5
|
46
tests/auto/corelib/io/qsettings/resourcefile2.ini
Normal file
46
tests/auto/corelib/io/qsettings/resourcefile2.ini
Normal file
@ -0,0 +1,46 @@
|
||||
[Field%202]
|
||||
Flags=MULTILINE|VSCROLL|READONLY
|
||||
Left=4
|
||||
Right=296
|
||||
State=No license agreement file found. Please contact support.
|
||||
Bottom=89
|
||||
Top=14
|
||||
Type=Text
|
||||
|
||||
[Field%201]
|
||||
Left=4
|
||||
Text=Press Page Down to see the rest of the agreement.
|
||||
Bottom=8
|
||||
Top=0
|
||||
Right=294
|
||||
Type=Label
|
||||
|
||||
[Field%203]
|
||||
Bottom=111
|
||||
Left=4
|
||||
Right=297
|
||||
Text=If you accept the terms of the agreement, select the first option below. You must accept the agreement to install this software. Click Next to continue.
|
||||
Top=92
|
||||
Type=Label
|
||||
|
||||
[Field%204]
|
||||
Bottom=129
|
||||
Flags=GROUP|NOTIFY
|
||||
Left=4
|
||||
Right=299
|
||||
Text=I &accept the terms in the License Agreement
|
||||
Top=120
|
||||
Type=RadioButton
|
||||
|
||||
[Field%205]
|
||||
Bottom=140
|
||||
Flags=NOTIFY
|
||||
Left=4
|
||||
Right=300
|
||||
State=1
|
||||
Text=I &do not accept the terms in the License Agreement
|
||||
Top=129
|
||||
Type=RadioButton
|
||||
|
||||
[Settings]
|
||||
NumFields=5
|
50
tests/auto/corelib/io/qsettings/resourcefile3.ini
Normal file
50
tests/auto/corelib/io/qsettings/resourcefile3.ini
Normal file
@ -0,0 +1,50 @@
|
||||
[Field%202]
|
||||
Flags=MULTILINE|VSCROLL|READONLY
|
||||
Left=4
|
||||
Right=296
|
||||
State=No license agreement file found. Please contact support.
|
||||
Bottom=89
|
||||
Top=14
|
||||
Type=Text
|
||||
|
||||
[Field%201]
|
||||
Left=4
|
||||
Text=Press Page Down to see the rest of the agreement.
|
||||
Bottom=90
|
||||
Top=0
|
||||
Right=294
|
||||
Type=Label
|
||||
x=1
|
||||
y=1
|
||||
width=1
|
||||
height=1
|
||||
|
||||
[Field%203]
|
||||
Bottom=111
|
||||
Left=4
|
||||
Right=297
|
||||
Text=If you accept the terms of the agreement, select the first option below. You must accept the agreement to install this software. Click Next to continue.
|
||||
Top=92
|
||||
Type=Label
|
||||
|
||||
[Field%204]
|
||||
Bottom=129
|
||||
Flags=GROUP|NOTIFY
|
||||
Left=4
|
||||
Right=299
|
||||
Text=I &accept the terms in the License Agreement
|
||||
Top=120
|
||||
Type=RadioButton
|
||||
|
||||
[Field%205]
|
||||
Bottom=140
|
||||
Flags=NOTIFY
|
||||
Left=4
|
||||
Right=300
|
||||
State=1
|
||||
Text=I &do not accept the terms in the License Agreement
|
||||
Top=129
|
||||
Type=RadioButton
|
||||
|
||||
[Settings]
|
||||
NumFields=5
|
10
tests/auto/corelib/io/qsettings/resourcefile6.plist
Normal file
10
tests/auto/corelib/io/qsettings/resourcefile6.plist
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>passwordData</key>
|
||||
<data>
|
||||
RBxVAAsDVsO/
|
||||
</data>
|
||||
</dict>
|
||||
</plist>
|
3607
tests/auto/corelib/io/qsettings/tst_qsettings.cpp
Normal file
3607
tests/auto/corelib/io/qsettings/tst_qsettings.cpp
Normal file
File diff suppressed because it is too large
Load Diff
11
tests/auto/corelib/io/qsettings/utf8settings.ini
Normal file
11
tests/auto/corelib/io/qsettings/utf8settings.ini
Normal file
@ -0,0 +1,11 @@
|
||||
[General]
|
||||
.%2C%27%25Uабвг%22%09=".,'%!@#$"
|
||||
♟=♘♚
|
||||
🌍=🌐
|
||||
|
||||
[Test]
|
||||
BAR=BAR
|
||||
BÄR=BÄR
|
||||
OST=OST
|
||||
ÖSE=ÖSE
|
||||
Это\тест=Это тест
|
19
tests/auto/corelib/io/qsettings/withcomments.ini
Normal file
19
tests/auto/corelib/io/qsettings/withcomments.ini
Normal file
@ -0,0 +1,19 @@
|
||||
; -*- conf -*-
|
||||
; If you edit this file, make sure, that "WithSpaces" has spaces and that
|
||||
; "WithTab" has one tab
|
||||
|
||||
[Regular]
|
||||
;bar = 1
|
||||
bar = 2
|
||||
|
||||
[WithSpaces]
|
||||
;bar = 3
|
||||
bar = 4
|
||||
|
||||
[WithTab]
|
||||
;bar = 5
|
||||
bar = 6
|
||||
|
||||
; [SpacedGroup]
|
||||
[SpacedGroup]
|
||||
bar = 7
|
Reference in New Issue
Block a user