Implement QWindow::setWindowIcon
authorCorentin Jabot <corentinjabot@gmail.com>
Thu, 17 May 2012 08:35:32 +0000 (10:35 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 24 May 2012 18:20:52 +0000 (20:20 +0200)
commitce3d1a153aad353ad5e50b935bc1d1494cbbeeee
tree48ec8fa90c7aa9d3873b578d7f4668177b62e154
parentdf7a1a28aaab315dc8ed5eb5bac6f4883e646613
Implement QWindow::setWindowIcon

Since QIcon has been moved back to QtGui, QWindow::setWindowIcon can
use it. That way, the api is exactly the same as in QWidgets and one
can deal properly with multi-sized icon.
I added a getter so the api is consistent with QWidget
(Maybe there should be properties for windowIcon and windowTitle)

Change-Id: I2f463dbe39673f41a3201ef8fed27b3fcac2125f
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
src/gui/kernel/qplatformwindow.h
src/gui/kernel/qplatformwindow_qpa.cpp
src/gui/kernel/qwindow.cpp
src/gui/kernel/qwindow.h
src/gui/kernel/qwindow_p.h