[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdeedu/kalzium/src
From: Johannes Schaub <johannes.schaub () kdemail ! net>
Date: 2006-04-10 16:50:26
Message-ID: 1144687826.205195.22810.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 528304 by jschaub:
Don't stop moving the KalziumTip if the mouse hovers it.
M +10 -2 kalziumtip.cpp
M +3 -1 kalziumtip.h
--- branches/KDE/3.5/kdeedu/kalzium/src/kalziumtip.cpp #528303:528304
@@ -1,6 +1,6 @@
/***************************************************************************
* Copyright (C) 2005 by Zack Rusin <zrusin@kde.org> *
- * Sami Kyostil <skyostil@kempele.fi> *
+ * Sami Kyostil <skyostil@kempele.fi> *
* Aaron J. Seigo <aseigo@kde.org> *
* Martin Pfeiffer <hubipete@gmx.net> *
* *
@@ -45,7 +45,8 @@
hide(); //initailly hide it
m_richText = 0;
m_noElemIcon = KGlobal::iconLoader()->loadIcon( "orbits", KIcon::NoGroup, 64 );
-
+ setMouseTracking(true); // receice mouse move events
+
connect(&m_frameTimer, SIGNAL(timeout()), SLOT(internalUpdate()));
}
@@ -109,6 +110,13 @@
p.drawPixmap(e->rect().topLeft(), m_pixmap, e->rect());
}
+void KalziumTip::mouseMoveEvent(QMouseEvent * e)
+{
+ // delegate the mouse move event to the parent (actually the elements table)
+ // so that this tooltip doesn't stop to be updated
+ e->ignore();
+}
+
void KalziumTip::display()
{
if( !m_tippedElement )
--- branches/KDE/3.5/kdeedu/kalzium/src/kalziumtip.h #528303:528304
@@ -54,7 +54,9 @@
void plainMask();
void dissolveMask();
-
+ // if the mouse pointer hovers us, send the event to the parent
+ // so we are some-what 'mouse transparent'
+ void mouseMoveEvent(QMouseEvent * e);
void displayInternal();
void display();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic