Implement QPromise<T>::convert<U>() (#41)

Converts the resolved value of `QPromise<T>` to the type `U`. Depending on types `T` and `U`, it performs a static cast, calls a converting constructor or tries to convert using `QVariant`.
This commit is contained in:
Dmitriy Purgin
2020-11-22 17:26:06 +01:00
committed by GitHub
parent 60b36e7a70
commit 0c3955cca5
11 changed files with 494 additions and 0 deletions

View File

@ -40,6 +40,7 @@ module.exports = {
title: 'QPromise',
children: [
'/qtpromise/qpromise/constructor',
'/qtpromise/qpromise/convert',
'/qtpromise/qpromise/delay',
'/qtpromise/qpromise/each',
'/qtpromise/qpromise/fail',
@ -77,6 +78,7 @@ module.exports = {
children: [
'/qtpromise/exceptions/canceled',
'/qtpromise/exceptions/context',
'/qtpromise/exceptions/conversion',
'/qtpromise/exceptions/timeout',
'/qtpromise/exceptions/undefined'
]