bitcoin/bitcoin — pull request #941 by laanwj (2012-03-15 21:35:41+00:00)
Title: Yet another attempt of a "minimize to tray" that works on all OSes

The current "minimize to tray" implementation has problems on Windows. It converts the window to a tool window, but when it is brought back it is not converted back to a normal window, causing strange behavior (such as an ugly title bar).

This implements the eventual suggestion from the Qt forums http://qt-project.org/forums/viewthread/4423/P15 .

I've tested it on Ubuntu and Windows (XP) and it works there. Can someone test it on KDE please? @sje397?

If we don't manage to get it right this time I'm going to remove the "minimize to tray" functionality completely (but not "Minimize on close" of course, because that works fine...).