IntroductionPage Class

class QInstaller::IntroductionPage

The IntroductionPage class displays information about the product to install. More...

Header: #include <IntroductionPage>
Inherits: QInstaller::PackageManagerPage

Public Functions

IntroductionPage(QInstaller::PackageManagerCore *core)
void hideAll()
void resetFetchedState()
void setMaintainerToolsEnabled(bool enable)
void setMaintenanceToolsEnabled(bool enable)
void setText(const QString &text)
void showAll()
void showMaintenanceTools()
void showMetaInfoUpdate()

Reimplemented Public Functions

virtual int nextId() const override
virtual bool validatePage() override

Public Slots

void onCoreNetworkSettingsChanged()
void onProgressChanged(int progress)
void setErrorMessage(const QString &error)
void setMessage(const QString &msg)
void setTotalProgress(int totalProgress)

Signals

Detailed Description

Member Function Documentation

[explicit] IntroductionPage::IntroductionPage(QInstaller::PackageManagerCore *core)

Constructs an introduction page with core as parent.

void IntroductionPage::hideAll()

Hides all widgets on the page.

[override virtual] int IntroductionPage::nextId() const

Reimplements: PackageManagerPage::nextId() const.

Determines which page should be shown next depending on whether the application is being installed, updated, or uninstalled.

[slot] void IntroductionPage::onCoreNetworkSettingsChanged()

Resets the internal page state, so that on clicking Next the metadata needs to be fetched again. For maintenance tool, enables or disables options requiring enabled repositories based on the current repository settings.

[slot] void IntroductionPage::onProgressChanged(int progress)

Updates the value of progress on the progress bar.

[signal] void IntroductionPage::packageManagerCoreTypeChanged()

This signal is emitted when the package manager core type changes.

void IntroductionPage::resetFetchedState()

Resets the internal page state, so that on clicking Next the metadata needs to be fetched again.

[slot] void IntroductionPage::setErrorMessage(const QString &error)

Displays the error message error on the page.

void IntroductionPage::setMaintainerToolsEnabled(bool enable)

Enables or disables the options to add or update components based on the value of enable. For a maintenance tool without any enabled repositories, the package manager and updater stay disabled regardless of the value of enable.

void IntroductionPage::setMaintenanceToolsEnabled(bool enable)

Sets enable to true to enable the options to install, add, and uninstall components on the page. For a maintenance tool without any enabled repositories, the package manager and updater stay disabled regardless of the value of enable.

[slot] void IntroductionPage::setMessage(const QString &msg)

Displays the message msg on the page.

void IntroductionPage::setText(const QString &text)

Displays the text text on the page.

[slot] void IntroductionPage::setTotalProgress(int totalProgress)

Sets total totalProgress value to progress bar.

void IntroductionPage::showAll()

Shows all widgets on the page.

void IntroductionPage::showMaintenanceTools()

Shows the options to install, add, and unistall components on the page.

void IntroductionPage::showMetaInfoUpdate()

Hides the widgets on the page except a text label and progress bar.

[override virtual] bool IntroductionPage::validatePage()

Reimplements: PackageManagerPage::validatePage().

For an uninstaller, always returns true. For the package manager and updater, at least one valid repository is required. For the online installer, package manager, and updater, valid meta data has to be fetched successfully to return true.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.