QPA: Introducing QPlatformTheme standardPixmap(), fileIconPixmap()
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>
Wed, 10 Oct 2012 11:58:19 +0000 (13:58 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 16 Oct 2012 13:29:15 +0000 (15:29 +0200)
commitc3b939818af214392505c58b93d5f8df46fa09d8
treec52ffb1de9ad3cd9fda641b454a5979dfeb98426
parentc153f471d2b45ea0fbe9848b59403807c1cd37ab
QPA: Introducing QPlatformTheme standardPixmap(), fileIconPixmap()

The basic idea is that the platform theme is now responsible for
providing the pixmaps for the given standard name, or any file or
directory. Then, the QStyle implementation should query the platform
theme for the pixmaps, and build the icons accordingly using
ThemeHint::IconPixmapSizes. Same thing for QFileIconProvider. This
also opens future support for getting platform dependent pixmaps in
QtQuick components.

Also includes the implementation for the Cocoa (QCocoaTheme) and
Windows (QWindowsTheme) platform plugins.

Task-number: QTBUG-27450
Change-Id: I4e8406585d970a9af481be10f6643cf0abbc38a3
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
15 files changed:
src/gui/kernel/qplatformtheme.cpp
src/gui/kernel/qplatformtheme.h
src/plugins/platforms/cocoa/qcocoatheme.h
src/plugins/platforms/cocoa/qcocoatheme.mm
src/plugins/platforms/windows/qtwindows_additional.h
src/plugins/platforms/windows/qwindowscontext.cpp
src/plugins/platforms/windows/qwindowscontext.h
src/plugins/platforms/windows/qwindowstheme.cpp
src/plugins/platforms/windows/qwindowstheme.h
src/widgets/itemviews/qfileiconprovider.cpp
src/widgets/styles/qcommonstyle.cpp
src/widgets/styles/qmacstyle_mac.mm
src/widgets/styles/qstyle.cpp
src/widgets/styles/qstyle.h
src/widgets/styles/qwindowsstyle.cpp