┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2009-03-19 07:19:10 +0000
committerRalf Habacker <[email protected]>2009-03-19 07:19:10 +0000
commit9a810d4df0480bc4de618b4722646e262db4d8cb (patch)
treed40db231108bbd3a17a957f821d5d14e523da1d9
parentd4f8439d91bdb9545a2f8dc451662e7df1152df1 (diff)
win32 compile fix
svn path=/trunk/KDE/kdebase/apps/; revision=941223
-rw-r--r--src/tooltips/ktooltip.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tooltips/ktooltip.cpp b/src/tooltips/ktooltip.cpp
index 1b18c10aa..e78783ddd 100644
--- a/src/tooltips/ktooltip.cpp
+++ b/src/tooltips/ktooltip.cpp
@@ -197,7 +197,11 @@ QRegion KToolTipDelegate::shapeMask(const KStyleOptionToolTip *option) const
bool KToolTipDelegate::haveAlphaChannel() const
{
+#ifdef Q_WS_X11
return QX11Info::isCompositingManagerRunning();
+#else
+ return false;
+#endif
}
@@ -226,9 +230,11 @@ private:
KTipLabel::KTipLabel() : QWidget(0, Qt::ToolTip)
{
+#ifdef Q_WS_X11
if (QX11Info::isCompositingManagerRunning()) {
setAttribute(Qt::WA_TranslucentBackground);
}
+#endif
}
void KTipLabel::showTip(const QPoint &pos, const KToolTipItem *item)
@@ -254,11 +260,13 @@ void KTipLabel::paintEvent(QPaintEvent*)
KStyleOptionToolTip option = styleOption();
option.rect = rect();
+#ifdef Q_WS_X11
if (QX11Info::isCompositingManagerRunning())
XShapeCombineRegion(x11Info().display(), winId(), ShapeInput, 0, 0,
delegate()->inputShape(&option).handle(), ShapeSet);
else
- setMask(delegate()->shapeMask(&option));
+#endif
+ setMask(delegate()->shapeMask(&option));
QPainter p(this);
p.setFont(option.font);