Modifications to get it compiling under MacOSX.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2345 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2010-02-16 23:08:48 +00:00
parent 56e9536336
commit f2f23e7ece
2 changed files with 8 additions and 16 deletions

View file

@ -26,10 +26,6 @@
#include <QtGui/QtGui>
#ifdef OS_MACOSX
#include <MacWindows.h>
#endif
static const unsigned TIME_TO_SHOW = 20;
QtToaster::QtToaster(QWidget * toaster, QFrame * toasterWindowFrame)
@ -41,14 +37,7 @@ QtToaster::QtToaster(QWidget * toaster, QFrame * toasterWindowFrame)
_toaster = toaster;
_toaster->setParent(_toaster->parentWidget(), Qt::ToolTip | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
#ifdef OS_MACOSX
// Make sure the other windows of the application are not raised when the
// toaster appears
WId wid = _toaster->winId();
SetWindowGroup((WindowRef)wid, NULL);
#else
_toaster->setWindowFlags(_toaster->windowFlags() | Qt::ToolTip);
#endif
WidgetBackgroundImage::setBackgroundImage(toasterWindowFrame, ":images/toaster/toaster-backrs4.png", WidgetBackgroundImage::AdjustSize);