diff options
author | Andy Shaw <andy.shaw@qt.io> | 2017-11-29 13:37:57 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2017-11-30 15:19:37 +0000 |
commit | 1d03b09622f13b70d0201118a36bc4318c0e04f0 (patch) | |
tree | 6c674943d389f1c8e61432539601fc164338dbd1 | |
parent | a97afeb7c7e089de5b630cd035a79db7c80a8957 (diff) |
Add documentation for the setValidatorForCustomPage() function
Change-Id: Id2c52f8a7fa2abbd1ac9de49d597269cb9bed220
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
-rw-r--r-- | src/libs/installer/packagemanagercore.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libs/installer/packagemanagercore.cpp b/src/libs/installer/packagemanagercore.cpp index 7b6842720..07afb4c7b 100644 --- a/src/libs/installer/packagemanagercore.cpp +++ b/src/libs/installer/packagemanagercore.cpp @@ -1324,6 +1324,12 @@ bool PackageManagerCore::setDefaultPageVisible(int page, bool visible) Sets a validator for the custom page specified by \a name and \a callbackName for the component \a component. + When using this, \a name has to match a dynamic page starting with \c Dynamic. For example, if the page + is called DynamicReadyToInstallWidget, then \a name should be set to \c ReadyToInstallWidget. The + \a callbackName should be set to a function that returns a boolean. When the \c Next button is pressed + on the custom page, then it will call the \a callbackName function. If this returns \c true, then it will + move to the next page. + \sa {installer::setValidatorForCustomPage}{installer.setValidatorForCustomPage} \sa setValidatorForCustomPageRequested() */ |