From ce3d1a153aad353ad5e50b935bc1d1494cbbeeee Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 17 May 2012 10:35:32 +0200 Subject: 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 --- src/gui/kernel/qplatformwindow_qpa.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/kernel/qplatformwindow_qpa.cpp') diff --git a/src/gui/kernel/qplatformwindow_qpa.cpp b/src/gui/kernel/qplatformwindow_qpa.cpp index 20817361f8..4e464d7838 100644 --- a/src/gui/kernel/qplatformwindow_qpa.cpp +++ b/src/gui/kernel/qplatformwindow_qpa.cpp @@ -215,6 +215,11 @@ void QPlatformWindow::setParent(const QPlatformWindow *parent) */ void QPlatformWindow::setWindowTitle(const QString &title) { Q_UNUSED(title); } +/*! + Reimplement to set the window icon to \a icon +*/ +void QPlatformWindow::setWindowIcon(const QIcon &icon) { Q_UNUSED(icon); } + /*! Reimplement to be able to let Qt raise windows to the top of the desktop */ -- cgit v1.2.3