diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-12-21 15:24:06 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-12-22 19:19:33 +0100 |
| commit | 7c84a0cd290d59eff8e78342951bef9abd0ac153 (patch) | |
| tree | 27ffbd37e74e521ffa29e58a866b7eda7afe5955 /tests/auto/sql/kernel/qsqldatabase/tst_databases.h | |
| parent | 2d87c4d881b74619fef966ffb0d7a00cb4ccea50 (diff) | |
QTextImageHandler: reduce code duplication
Refactor the getImage/Pixmap and getImageSize/PixmapSize functions into
templates. The functions were practically identical, and the
inconsistencies between them seem to be rather bugs or omissions than
intentional. E.g. maintaining the aspect ratio if width/height are not
specified was only implemented for the pixmap case.
Task-number: QTBUG-109212
Change-Id: Ic0de0a2d7f883c4efac97111e2c1e438f278d70d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_databases.h')
0 files changed, 0 insertions, 0 deletions
