Kevin Ottens
22f74fc0ca
More removals of Q_WS_* in favor of Q_OS_* or HAVE_X11
2012-08-03 11:45:20 +02:00
Albert Astals Cid
75ccb1b463
More K_GLOBAL_STATIC -> Q_GLOBAL_STATIC porting
...
Acked by dfaure
REVIEW: 105611
2012-07-19 21:19:01 +02:00
David Faure
9057ce0c70
Fix compilation with the new cmake automoc stuff.
2012-02-08 23:34:07 +01:00
Stephen Kelly
d660ec244e
Merge remote-tracking branch 'origin/KDE/4.8' into frameworks
2012-02-07 12:38:06 +01:00
Stephen Kelly
b1b68adb7d
Don't use the QtGui module name in includes.
...
In Qt5, many of them are moved to QtWidgets, so this is the only
way to be source compatible with both Qt 4 and Qt 5.
2012-02-02 10:35:53 +01:00
Stephen Kelly
8d37df4b8f
Remove moc includes that can be omitted.
...
Mostly these are "<name>.moc" style includes which are incorrect
compared to qmake and cmake automoc behaviour.
2012-01-31 22:44:36 +01:00
Aaron Seigo
6018fc0c35
ensure a minimum delay of 200ms for tooltips newly shown, respect that the default is an int not float
2012-01-27 15:34:01 +01:00
David Faure
c7ab521ee7
Merge remote-tracking branch 'origin/KDE/4.7' into origin-frameworks
...
Conflicts:
experimental/libkactivities/
plasma/applet.h
plasma/theme.cpp
staging/libkcoreaddons/src/jobs/kjob.cpp
2011-12-08 19:06:24 +01:00
Aaron Seigo
9d020ded74
don't read in plasmarc EVERY time a tooltip is shown, and be careful to stop the show timer always
...
there are still some issues with QGraphicsView not sending hover events in all cases, but this is
as good as it gets if we ignore those bugs in Qt.
BUG:247162
2011-12-06 22:43:43 +01:00
Aaron Seigo
04854068fc
finish merge conflicts
2011-12-04 14:34:06 +01:00
Aaron Seigo
71d807c353
Merge remote branch 'origin/KDE/4.7' into frameworks
...
Conflicts:
CMakeLists.txt
kio/kfile/kfilemetadatareaderprocess.cpp
plasma/CMakeLists.txt
plasma/packagestructure.cpp
plasma/private/packages.cpp
threadweaver/Mainpage.dox
2011-12-04 14:25:38 +01:00
Aaron Seigo
086c669d47
m_corona does not exist in the libplasma2 version of tooltipmanager
2011-12-03 18:09:13 +01:00
Aaron Seigo
96cdb27080
use the default corona in case the widget doesn't provide one
...
we need a different solution for libplasma2, however.
BUG:281759
2011-12-02 21:53:08 +01:00
Aaron Seigo
1ba3ec0d04
use the default corona in case the widget doesn't provide one
...
we need a different solution for libplasma2, however.
BUG:281759
2011-12-02 19:01:46 +01:00
Aaron Seigo
011f79bca8
get rid of vestigal m_corona now
2011-07-30 20:21:15 +02:00
Aaron Seigo
ec464cf19a
get the corona from the item itself
...
BUG:277135
2011-07-30 20:18:41 +02:00
Aaron Seigo
44815f6ae0
get the corona from the item itself
...
BUG:277135
2011-07-30 20:18:27 +02:00
Kevin Ottens
7fa4dff47b
Allow to get tooltips to popup instantly on hover
...
Add an "instant popup" property on ToolTipContent allowing to control
for a given tooltip to popup immediately when the corresponding widget
is hovered. The default is the usual behavior though.
The ToolTipManager behavior itself got adjusted to take care of the
instant popup flag.
2011-04-26 20:56:00 +02:00
Aaron J. Seigo
2a916cb089
avoid (non-critical) warnings
...
BUG:264069
svn path=/trunk/KDE/kdelibs/; revision=1217570
2011-01-27 22:18:32 +00:00
Aaron J. Seigo
bd5dd2a688
hide(QGraphicsWidget*) results in the destruction of d->tipWidget
...
BUG:253387
svn path=/trunk/KDE/kdelibs/; revision=1183775
2010-10-08 11:33:48 +00:00
Aaron J. Seigo
735c89c730
dangerously this could get called via tooltip
...
svn path=/trunk/KDE/kdelibs/; revision=1179171
2010-09-24 18:14:29 +00:00
Anthony Bryant
331014c047
Delete the tooltip window while it's hidden, and recreate it when shown.
...
This works around an X bug which can cause plasma tooltips to make "holes" in windows under certain conditions.
BUG:249232
svn path=/trunk/KDE/kdelibs/; revision=1178415
2010-09-23 01:04:45 +00:00
Marco Martin
ef873a97a6
FEATURE: add a new optional component in tooltip data: a qgraphicswidget that will be used to position the tooltip instead of the registered widget, if present, it's useful when you want a different position, like the taskbar group tooltips
...
svn path=/trunk/KDE/kdelibs/; revision=1165246
2010-08-18 16:33:32 +00:00
Aaron J. Seigo
47c26b3726
erf; this got committed in amongst code for a different problem and reintroduced br#179819
...
BUG:245743
svn path=/trunk/KDE/kdelibs/; revision=1156388
2010-07-29 03:26:06 +00:00
Aaron J. Seigo
6300946727
cleanup
...
svn path=/trunk/KDE/kdelibs/; revision=1137108
2010-06-11 17:18:34 +00:00
Aaron J. Seigo
339f827ce4
allow a configurable delay (including none!)
...
svn path=/trunk/KDE/kdelibs/; revision=1123803
2010-05-07 00:18:40 +00:00
Aaron J. Seigo
f0ea5031fb
this is really up to the widgets to get right (e.g by not registering until they are initialized); this prevnets a HUGE number of calls to Plasma::viewFor
...
svn path=/trunk/KDE/kdelibs/; revision=1123249
2010-05-05 17:48:44 +00:00
Michał Dutkiewicz
4d051d8f86
Added possibility to set pop up (menu, dialog or other widgets) alignment to left, center or right
...
Translate left and right alignment for vertical form factors
Swap right and left alignment in case of RTL layout
Use center alignment for tool tips
svn path=/trunk/KDE/kdelibs/; revision=1028983
2009-09-28 17:28:17 +00:00
Marco Martin
01b7db4fa0
don't reset the timer for 0 distance hover move events
...
BUG:193155
svn path=/trunk/KDE/kdelibs/; revision=1026853
2009-09-22 18:31:36 +00:00
Aaron J. Seigo
1611d9f38d
catch odd case of tooltip not hiding due to unhiding into a widget that is registered but has no tipdata associated with it
...
patch contributed by 潘卫平
BUG:198061
svn path=/trunk/KDE/kdelibs/; revision=988376
2009-06-27 23:17:52 +00:00
Aaron J. Seigo
23cc1662f4
should always hide in this case, not just when autohide is set
...
svn path=/trunk/KDE/kdelibs/; revision=987537
2009-06-26 10:00:16 +00:00
Aaron J. Seigo
9aa367047c
clickable tooltips; plasma-devel@ people: please review API one more time
...
CCMAIL:plasma-devel@kde.org
svn path=/trunk/KDE/kdelibs/; revision=987462
2009-06-26 06:40:15 +00:00
Aaron J. Seigo
980918d1cd
prevent calls to setContent prompted by tipAboutToShow called from showToolTip from messing around with the tip based on the current widget
...
BUG:194974
svn path=/trunk/KDE/kdelibs/; revision=976790
2009-06-02 17:12:35 +00:00
Aaron J. Seigo
f714329630
scroll wheel shouldn't hide the tip
...
svn path=/trunk/KDE/kdelibs/; revision=954616
2009-04-16 03:52:35 +00:00
Aaron J. Seigo
6c041a4232
get sizing right when setContent is called and the tip is already visible
...
BUG:180423
svn path=/trunk/KDE/kdelibs/; revision=911227
2009-01-15 05:59:07 +00:00
Aaron J. Seigo
58420aae62
clear the current widget when an widget is unregistered; solves a crash where the task widget disconnects *all* signals to items before deleting them, thus preventing the destroyed(QObject*) signal from getting through. it was calling unregisterWidget, but that wasn't clearing the current widget -> POOF!
...
CCMAIL:faure@kde.org
BUG:179819
svn path=/trunk/KDE/kdelibs/; revision=907981
2009-01-09 01:15:39 +00:00
Aaron J. Seigo
d1df2a627e
don't show tips for popped applets
...
svn path=/trunk/KDE/kdelibs/; revision=903163
2008-12-30 02:14:33 +00:00
Aaron J. Seigo
ea41519c3c
this is much clearer, does the same thing and has the benefit of being able to pre-emptively hide the tip in toolTipAboutToShow!
...
svn path=/trunk/KDE/kdelibs/; revision=903158
2008-12-30 02:04:35 +00:00
Aaron J. Seigo
72af656f0f
when tooltip content changes, reset the timer. allows one to see tooltips for all their desktops in the pager, for example
...
svn path=/trunk/KDE/kdelibs/; revision=901885
2008-12-26 20:43:53 +00:00
Chani Armitage
a98e4c82b2
tooltips don't need an offset if the panel is on the top or left side
...
svn path=/trunk/KDE/kdelibs/; revision=901879
2008-12-26 20:38:59 +00:00
Aaron J. Seigo
4d38cc53b6
make tooltips orientation aware; fixes problems with panel autohiding as well as avoids some unecessary painting in vertical panels
...
BUG:178552
svn path=/trunk/KDE/kdelibs/; revision=900840
2008-12-23 19:38:52 +00:00
Aaron J. Seigo
2048022183
don't crash when given a null item pointer
...
BUG:176410
svn path=/trunk/KDE/kdelibs/; revision=891032
2008-12-01 00:49:36 +00:00
Aaron J. Seigo
07c8015ade
check the validity of the iterator before using it
...
svn path=/trunk/KDE/kdelibs/; revision=884120
2008-11-14 10:37:56 +00:00
Aaron J. Seigo
18885bd0f0
some tooltip regression fixes from moving to QTextDocument; as an added bonus we don't copy the tooltip content anymore!
...
svn path=/trunk/KDE/kdelibs/; revision=884063
2008-11-14 06:06:15 +00:00
Aaron J. Seigo
e8eb11a3b7
tell the tooltip widget about the source so it can tel it when it disappears and to prompt it for updates appropriately
...
svn path=/trunk/KDE/kdelibs/; revision=882588
2008-11-10 23:30:19 +00:00
Aaron J. Seigo
2b9aa1de28
don't delete the tipwidget if the application is closing; there's no point to it (OS will reclaim the mem for us), it has no state to save on destruction and it causes issues when deleted too late (due to the static object deletion)
...
svn path=/trunk/KDE/kdelibs/; revision=882208
2008-11-10 02:01:47 +00:00
Aaron J. Seigo
4b08c03726
change KDE includes to use the .h style now that we're in libs
...
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054
ok, this time JUST the plasma dir ;)
...
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9
bum-de-dum! plasma to kdelibs.
...
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Aaron J. Seigo
7d5c604245
animate that mofo tip!
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878938
2008-11-02 07:25:56 +00:00