mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
Fixed the Toaster
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@597 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
14bdaaf964
commit
76e877c2b6
@ -37,7 +37,7 @@ QtToaster::QtToaster(QWidget * toaster, QFrame * toasterWindowFrame)
|
|||||||
_toaster = toaster;
|
_toaster = toaster;
|
||||||
_toaster->setParent(_toaster->parentWidget(), Qt::ToolTip | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
|
_toaster->setParent(_toaster->parentWidget(), Qt::ToolTip | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
|
||||||
|
|
||||||
WidgetBackgroundImage::setBackgroundImage(toasterWindowFrame, ":images/toaster/toaster-backrs4.png", WidgetBackgroundImage::AdjustHeight);
|
WidgetBackgroundImage::setBackgroundImage(toasterWindowFrame, ":images/toaster/toaster-backrs4.png", WidgetBackgroundImage::AdjustSize);
|
||||||
|
|
||||||
_toaster->resize(201, 116);
|
_toaster->resize(201, 116);
|
||||||
}
|
}
|
||||||
@ -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 = 30;
|
static const int MARGIN_X = 50;
|
||||||
#else
|
#else
|
||||||
static const int MARGIN_X = 10;
|
static const int MARGIN_X = 30;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QDesktopWidget * desktop = QApplication::desktop();
|
QDesktopWidget * desktop = QApplication::desktop();
|
||||||
|
Loading…
Reference in New Issue
Block a user