aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/notifier/notifierwindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-02-06 18:48:42 +0000
committerGravatar Fabio Bas2010-02-06 18:48:42 +0000
commit51b3963ac4378a87d9489e92304db171da84c429 (patch)
treedda2eb7c3127d80ca96ef3150477a1dd1eb68c54 /src/modules/notifier/notifierwindow.cpp
parentreverted version reply lock (diff)
downloadKVIrc-51b3963ac4378a87d9489e92304db171da84c429.tar.gz
KVIrc-51b3963ac4378a87d9489e92304db171da84c429.tar.bz2
KVIrc-51b3963ac4378a87d9489e92304db171da84c429.zip
fix for #707, part 1 (anchor background to kvirc mdi area topLeft(), not to desktop topLeft())
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3930 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/notifier/notifierwindow.cpp')
-rw-r--r--src/modules/notifier/notifierwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/notifier/notifierwindow.cpp b/src/modules/notifier/notifierwindow.cpp
index d6205fe4b..10a039cca 100644
--- a/src/modules/notifier/notifierwindow.cpp
+++ b/src/modules/notifier/notifierwindow.cpp
@@ -89,6 +89,7 @@ KviNotifierWindow::KviNotifierWindow()
setFocusPolicy(Qt::NoFocus);
setMouseTracking(true);
+ setAutoFillBackground(false);
hide();
@@ -548,7 +549,7 @@ void KviNotifierWindow::paintEvent(QPaintEvent *e)
p.setCompositionMode(QPainter::CompositionMode_Source);
QColor col=KVI_OPTION_COLOR(KviOption_colorGlobalTransparencyFade);
col.setAlphaF((float)((float)KVI_OPTION_UINT(KviOption_uintGlobalTransparencyChildFadeFactor) / (float)100));
- p.fillRect(rect(), col);
+ p.fillRect(e->rect(), col);
p.restore();
} else if(g_pShadedChildGlobalDesktopBackground)
{
@@ -558,9 +559,8 @@ void KviNotifierWindow::paintEvent(QPaintEvent *e)
#endif
QPixmap * pPix = KVI_OPTION_PIXMAP(KviOption_pixmapNotifierBackground).pixmap();
- p.fillRect(rect(),KVI_OPTION_COLOR(KviOption_colorNotifierBackground));
- if(pPix)
- KviPixmapUtils::drawPixmapWithPainter(&p,pPix,KVI_OPTION_UINT(KviOption_uintNotifierPixmapAlign),rect(),width(),height());
+ if(pPix) KviPixmapUtils::drawPixmapWithPainter(&p,pPix,KVI_OPTION_UINT(KviOption_uintNotifierPixmapAlign),e->rect(),e->rect().width(),e->rect().height());
+ else p.fillRect(e->rect(),KVI_OPTION_COLOR(KviOption_colorNotifierBackground));
#ifdef COMPILE_PSEUDO_TRANSPARENCY
}
#endif