ComponentSelectionPage Class
(QInstaller::ComponentSelectionPage)The ComponentSelectionPage class changes the checked state of components. More...
Header: | #include <ComponentSelectionPage> |
Inherits: | QInstaller::PackageManagerPage |
Public Functions
ComponentSelectionPage(PackageManagerCore *core) | |
~ComponentSelectionPage() | |
void | allowCompressedRepositoryInstall() |
void | deselectAll() |
void | deselectComponent(const QString &id) |
void | selectAll() |
void | selectComponent(const QString &id) |
void | selectDefault() |
Reimplemented Public Functions
virtual bool | isComplete() const |
- 14 public functions inherited from QInstaller::PackageManagerPage
Protected Functions
void | showEvent(QShowEvent *event) |
Reimplemented Protected Functions
virtual void | entering() |
- 6 protected functions inherited from QInstaller::PackageManagerPage
Additional Inherited Members
- 2 signals inherited from QInstaller::PackageManagerPage
Detailed Description
The ComponentSelectionPage class changes the checked state of components.
Member Function Documentation
ComponentSelectionPage::ComponentSelectionPage(PackageManagerCore *core)
Constructs a component selection page with core as parent.
ComponentSelectionPage::~ComponentSelectionPage()
Destructs a component selection page.
void ComponentSelectionPage::allowCompressedRepositoryInstall()
void ComponentSelectionPage::deselectAll()
Deselects all components in the component tree.
void ComponentSelectionPage::deselectComponent(const QString &id)
Deselects the component with id in the component tree.
[virtual protected]
void ComponentSelectionPage::entering()
Reimplemented from PackageManagerPage::entering().
Initializes the page's fields based on values from fields on previous pages. The text to display depends on whether the page is being used in an installer, updater, or uninstaller.
[virtual]
bool ComponentSelectionPage::isComplete() const
Reimplemented from PackageManagerPage::isComplete().
Returns true
if at least one component is checked on the page.
void ComponentSelectionPage::selectAll()
Selects all components in the component tree.
void ComponentSelectionPage::selectComponent(const QString &id)
Selects the component with id in the component tree.
void ComponentSelectionPage::selectDefault()
Selects the components that have the <Default>
element set to true
in the package information file.
[protected]
void ComponentSelectionPage::showEvent(QShowEvent *event)
Called when the show event event occurs. Switching pages back and forth might restore or remove the checked state of certain components the end users have checked or not checked, because the dependencies are resolved and checked when clicking Next. So as not to confuse the end users with newly checked components they did not check, the state they left the page in is restored.