fixed Toaster

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@606 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-06-15 13:19:50 +00:00
parent 84f6dc0f44
commit 29a07992c8

View File

@ -39,7 +39,7 @@ QtToaster::QtToaster(QWidget * toaster, QFrame * toasterWindowFrame)
WidgetBackgroundImage::setBackgroundImage(toasterWindowFrame, ":images/toaster/toaster-backrs4.png", WidgetBackgroundImage::AdjustSize); WidgetBackgroundImage::setBackgroundImage(toasterWindowFrame, ":images/toaster/toaster-backrs4.png", WidgetBackgroundImage::AdjustSize);
_toaster->resize(201, 116); _toaster->resize(181, 116);
} }
void QtToaster::setTimeOnTop(unsigned time) { void QtToaster::setTimeOnTop(unsigned time) {
@ -56,9 +56,9 @@ void QtToaster::close() {
void QtToaster::show() { void QtToaster::show() {
//10 pixels of margin //10 pixels of margin
#if !defined(OS_WINDOWS) #if !defined(OS_WINDOWS)
static const int MARGIN_X = 50;
#else
static const int MARGIN_X = 30; static const int MARGIN_X = 30;
#else
static const int MARGIN_X = 10;
#endif #endif
QDesktopWidget * desktop = QApplication::desktop(); QDesktopWidget * desktop = QApplication::desktop();