Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
4.6.2, 4.6.3
-
None
-
OSX
Description
On OSX, I expect the following code to display a message box with the current application's icon (like it used to in 4.4.3).
However the following code displays a windows icon when compiled on OSX with Qt 4.6.2.
#include <QApplication> #include <QMessageBox> int main(int argc, char **argv) { QApplication::setDesktopSettingsAware(false); QApplication app(argc, argv); QMessageBox::warning( 0, "test", "test" ); return 0; }
This is a bug in QCommonStyle. I fixed it with the following change to qcommonstyle.cpp line 5660:
-if (QApplication::desktopSettingsAware() ) {
+if (QApplication::desktopSettingsAware() || inherits("QMacStyle") ) {