QtAutoUpdater  3.0.0
A Qt library to automatically check for updates and install them
Properties | List of all members
de::skycoder42::QtAutoUpdater::Quick::UpdateInfoComponent Class Reference

A component that creates information views with detailed infos about updates. More...

+ Inheritance diagram for de::skycoder42::QtAutoUpdater::Quick::UpdateInfoComponent:

Properties

Connections _connections
 [PRIVATE PROPERTY] More...
 
- Properties inherited from de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent
Updater updater
 The updater to be used by the component. More...
 
bool useAsComponent
 Specifies if the consumer of the component expects an item or a component. More...
 
bool loading
 Specifies if the component is currently beeing loaded. More...
 
var goBackCallback
 Sets a callback to be called to close a created component. More...
 
Component viewComponent
 [PRIVATE PROPERTY]
 

Additional Inherited Members

- Signals inherited from de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent
void showComponent (Component component, var params)
 Gets emitted to show this component in the GUI. More...
 
void showItem (Item item)
 Gets emitted to show this component in the GUI. More...
 

Detailed Description

A component that creates information views with detailed infos about updates.

Since
3.0

This class should be placed in your GUI as a view factory. It will emit the showItem() or showComponent() signals (depending on useAsComponent) and you have to catch this signal to actually show the created UI. The UI is a custom QQuickItem and must be shown as full screen view.

It is internally connected to the QtAutoUpdater::Updater::checkDone() signal of the used updater and will automatically emit the signal as soon as new updates are available.

The following example shows how to realize this with a StackView as view container:

StackView {
id: stackView
anchors.fill: parent // parent should be the root window
...
}
UpdateInfoComponent {
id: component
updater: QtAutoUpdater.createUpdater(...)
goBackCallback: stackView.pop
onShowItem: stackView.push(item)
}
See also
UpdaterComponent, UpdateResultDialog, UpdaterComponent::showItem, UpdaterComponent::showComponent, UpdaterComponent::useAsComponent, QtQuick.Controls.StackView, QtAutoUpdater::Updater::checkDone, Image Page

Definition at line 37 of file UpdateInfoComponent.qml.

Property Documentation

◆ _connections

Connections de::skycoder42::QtAutoUpdater::Quick::UpdateInfoComponent::_connections

[PRIVATE PROPERTY]

Remarks
This property is read-only

Definition at line 41 of file UpdateInfoComponent.qml.


The documentation for this class was generated from the following file:
de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent::useAsComponent
bool useAsComponent
Specifies if the consumer of the component expects an item or a component.
Definition: UpdaterComponent.qml:38
de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent::goBackCallback
var goBackCallback
Sets a callback to be called to close a created component.
Definition: UpdaterComponent.qml:84
de::skycoder42::QtAutoUpdater::Quick::UpdaterComponent::updater
Updater updater
The updater to be used by the component.
Definition: UpdaterComponent.qml:23
QtAutoUpdater
The QtAutoUpdater namespace holds all classes that are related with the updater.
Definition: adminauthoriser.h:9