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
Aaron J. Seigo
d8f1ce657c
use only one actual tip widget, store the data otherwise
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878933
2008-11-02 06:55:10 +00:00
Aaron J. Seigo
1c75cca9e2
break out Plasma::ToolTipManager::Content to Plasma::ToolTipContent and prep it for BC
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878923
2008-11-02 05:58:42 +00:00
Kevin Ottens
f66b4d819b
API changes as announced:
...
* ConfigXml becomes ConfigLoader
* Containment::(add|remove)ToolBoxTool(QAction *action) becomes
Containment::(add|remove)ToolBoxAction(QAction *action)
* Flash becomes FlashingLabel
* Icon becomes IconWidget
* PanelSvg becomes FrameSvg
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877504
2008-10-29 17:46:33 +00:00
Guillaume Pothier
bd7e7b10c9
Added screen management methods to Corona and removed usage of QDesktopWidget in plasmalibs.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877451
2008-10-29 15:22:38 +00:00
Aaron J. Seigo
14e75cc43a
yes, visible tips should hide (really, we should just re-use the same actual widget, but that's for later i suppose); also set the delayedHide properly always
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876181
2008-10-26 17:39:46 +00:00
Aaron J. Seigo
5eb18a635b
allow tips to autohide; having them just stay there forever and ever is an annoyance. some tips need to be permanent to be useful though (e.g. on the clock) so introduced a way to make that happen. needed to get this in before we go BC =)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876166
2008-10-26 16:55:54 +00:00
Kevin Ottens
3488fd23c7
Small API adjustments of ToolTipManager as discussed with Aaron:
...
* clearContent() is back, but no default value to setContent();
* delayedHide() is no more public.
After all I didn't rename it and make it full of static methods
because I noticed the following in the meantime:
1) register/unregister being still around, and passing the
QGraphicsWidget* in most methods, effectively makes it a manager;
2) all managers in libplasma use the singleton pattern, so let's
keep consistency.
CCMAIL: aseigo@kde.org
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=875285
2008-10-23 22:14:07 +00:00
Aaron J. Seigo
9f70fbd4f3
don't show tips when a popup appears (worst thing about spending a day mostly in conf calls: i can only hack in between them, but then often forget to commit *sigh*)
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874970
2008-10-22 22:15:49 +00:00
Aaron J. Seigo
6fe3502be7
we have workspace/libs/ for a reason
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874257
2008-10-21 02:31:43 +00:00
Aaron J. Seigo
fae76869af
* make it possible to activate/deactivate/inhibit tooltips globally
...
* delete all the tips; not an important leak as it only gets destroyed on app close, but still...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874248
2008-10-21 01:58:01 +00:00
Aaron J. Seigo
7abb5164a5
remove gratuitous "ToolTip"s
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874244
2008-10-21 01:33:32 +00:00
Aaron J. Seigo
70abf9ff86
first set of API adjustments, via Kevin "API Review Bitch" Ottens
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874234
2008-10-21 01:01:12 +00:00
Aaron J. Seigo
25da9776f7
unnecessary include
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873688
2008-10-19 23:20:46 +00:00
Allen Winter
a7aebfa60a
a bunch more coding style fixes. still some lines longer than 100 chars.
...
this is definitely helping me find false positives in the Krazy style checker.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Alexis Ménard
f49d5e8b14
make the tooltip popup with the same delay than Qt
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868859
2008-10-07 11:06:15 +00:00
Aaron J. Seigo
58e9d2c40f
add a convenience method, clearToolTipContent, which turns a common 3 liner into one
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866377
2008-09-30 18:26:50 +00:00
Aaron J. Seigo
15da8e1555
* ensure we only ever call the about to show method once
...
* attempt to tip if the widget is registered, even if it has no tip associated with it
this allows for 100% on-demand tips; important as some of our tips are expensive
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862469
2008-09-18 21:55:09 +00:00
Aaron J. Seigo
c75d3cb257
SVN_SILENT: --debug
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862124
2008-09-18 06:26:33 +00:00
Aaron J. Seigo
8f41f4c68e
use a hash instead of a map as we don't care about sorting; don't loop through all items in the list once we have found our match; move the check for existence in the registration map to regsiterWidget
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=862120
2008-09-18 06:21:33 +00:00
Alex Merry
33f7e1e3d6
Actually relicense the files this time. Last time, I managed to change the text from GPL to... GPL.
...
Again, plasma-devel@kde.org mail archives have the permissions.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858780
2008-09-08 17:32:25 +00:00
Alexis Ménard
ee24c05983
Optimization
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858374
2008-09-07 22:07:03 +00:00
Alex Merry
90f5feb1a6
Relicense files. See plasma-devel@kde.org mailing list archives for permissions.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=858364
2008-09-07 21:33:02 +00:00
Alexis Ménard
7943daabac
only reshow tooltip if it's the current widget
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=855654
2008-09-01 10:16:43 +00:00
Alexis Ménard
7c817fd06c
Fix a little bug
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854104
2008-08-28 20:34:03 +00:00
Alexis Ménard
384f31bf82
add an activate method to specify if the tooltip has to be displayed or not.
...
Use-case : Display it on demand, when hovering. ie Kickoff
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854098
2008-08-28 20:23:39 +00:00
Alexis Ménard
a32ca528f0
sometimes the tooltip is shown before it take his correct position
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854008
2008-08-28 17:02:42 +00:00