-
Notifications
You must be signed in to change notification settings - Fork 181
/
Copy pathupdatebutton.dox
101 lines (73 loc) · 2.69 KB
/
updatebutton.dox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*!
@class QtAutoUpdater::UpdateButton
The UpdateButton is a ready-made "button" to check for updates. It is connected to an updater and
thus will automatically start checking for updates. It will also display a progress and optionally
allow canceling and installation of updates.
The button will represent the updaters state and automatically enable/disable itself to
avoid start beeing called twice. In addition to that, the whole button widget will be disabled
if the updater gets deleted while the button is still existant.
@sa QtAutoUpdater::Updater, UpdateController::createUpdateAction,
@ref qtautoupdater_image_page "Image Page"
*/
/*!
@property QtAutoUpdater::UpdateButton::updater
@default{`nullptr`}
The button can only be used if the updater was set, either directly or via the constructor. The
button attaches to the updater and reacts on changes in it's state to react accordingly.
@accessors{
@readAc{updater()}
@writeAc{setUpdater()}
@notifyAc{updaterChanged()}
}
@sa UpdateButton::mode
*/
/*!
@property QtAutoUpdater::UpdateButton::mode
@default{`UpdateButton::ModeFlag::AllowAndShowAll`}
The mode is used to control the buttons behaviour. See UpdateButton::ModeFlag for details about what
each mode does. By default, all features are enabled.
@accessors{
@readAc{mode()}
@writeAc{setMode()}
@notifyAc{modeChanged()}
}
@sa UpdateButton::ModeFlag
*/
/*!
@property QtAutoUpdater::UpdateButton::animationFile
@default{`:/QtAutoUpdater/icons/updateRunning.gif`}
The default file will show a simple idle animation. If this does not fit the style of your ui, you
can use this property to specify a different animation source.
@accessors{
@readAc{animationFile()}
@writeAc{setAnimationFile()}
@writeAc{setAnimationDevice()}
@resetAc{resetAnimationFile()}
@notifyAc{animationFileChanged()}
}
@sa @ref qtautoupdater_image_page "Image Page"
*/
/*!
@property QtAutoUpdater::UpdateButton::installMode
@default{`Updater::InstallModeFlag::Parallel`}
The install mode to be passed to Updater::runUpdater, if the ModeFlag::AllowInstall flag is set and
the user launches an installation via the button.
@accessors{
@readAc{installMode()}
@writeAc{setInstallMode()}
@notifyAc{installModeChanged()}
}
@sa Updater::runUpdater, Updater::InstallModeFlag, UpdateButton::installScope
*/
/*!
@property QtAutoUpdater::UpdateButton::installScope
@default{`Updater::InstallScope::PreferInternal`}
The install scope to be passed to Updater::runUpdater, if the ModeFlag::AllowInstall flag is set and
the user launches an installation via the button.
@accessors{
@readAc{installScope()}
@writeAc{setInstallScope()}
@notifyAc{installScopeChanged()}
}
@sa Updater::runUpdater, Updater::InstallScope, UpdateButton::installMode
*/