Commit Graph

62 Commits

Author SHA1 Message Date
Aaron Seigo
fe2286c5da remove unecessary painting 2011-12-07 14:43:07 +01:00
Aaron Seigo
822243288d get rid of the text halos
they are (relatively) expensive and should be unnecessary now:
we have blur, it works well, and when we don't blur we use different backgrounds.

one more "take one thing off" while i'm futzing around in tooltips
2011-11-30 15:44:29 +01:00
Aaron Seigo
7e4883f3bb handle titles a little nicer: centered, no wrap for short titles 2011-11-30 15:39:29 +01:00
Aaron Seigo
3bf1d0d63d hide the label completely when no image is set. makes sure there isn't layout().spacing() extra padding 2011-11-30 15:19:29 +01:00
Aaron Seigo
ef6b65c2b1 simplify 2011-08-07 00:50:20 +02:00
Aaron Seigo
45e428dec5 --deprecatedUsage; 2011-08-07 00:50:20 +02:00
Aaron Seigo
9021634a1a prevent triggering a crash in Qt's text layouting
also simplifies code as a fun side effect.
2011-07-11 21:48:44 +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
Diego Casella
a894b07bce * Prevent plasma tooltips to draw halos on empty lines.
Closes review request #6233

svn path=/trunk/KDE/kdelibs/; revision=1210143
2010-12-29 19:36:24 +00:00
Aaron J. Seigo
9ecae806dd when hidden, don't bother to keep animating the move. the tooltip will be repositioned on show anyways.
svn path=/trunk/KDE/kdelibs/; revision=1179173
2010-09-24 18:19:58 +00:00
Aaron J. Seigo
c529b14bab SVN_SILENT: tidy
svn path=/trunk/KDE/kdelibs/; revision=1121283
2010-05-01 02:17:01 +00:00
Fredrik Höglund
48c6fcbe8e Set the blur region for tooltips and dialogs.
svn path=/trunk/KDE/kdelibs/; revision=1100074
2010-03-06 18:25:24 +00:00
Marco Martin
573438a9a8 set the mask only when needed
override kwin shadow

svn path=/trunk/KDE/kdelibs/; revision=1099659
2010-03-05 22:36:20 +00:00
Marco Martin
ccc2e7be40 draw halo only for dark text
svn path=/trunk/KDE/kdelibs/; revision=1068659
2010-01-01 19:34:40 +00:00
Marco Martin
38d6c5bed9 don't cut halos
svn path=/trunk/KDE/kdelibs/; revision=1068658
2010-01-01 19:31:44 +00:00
Marco Martin
42962c662a use halo painter behind the text
svn path=/trunk/KDE/kdelibs/; revision=1068654
2010-01-01 19:17:17 +00:00
Marco Martin
353e1ca88d add a new member to the tooltip data that decides if the window highlight effect is to be enabled by default or not
svn path=/trunk/KDE/kdelibs/; revision=1065864
2009-12-24 14:54:48 +00:00
Marco Martin
db8ece1921 use qpropertyanimation: massively simplify the code
svn path=/trunk/KDE/kdelibs/; revision=1057438
2009-12-02 12:23:56 +00:00
Marco Martin
fda0f6c4de put the windows in tooltips in the list of the highlight effect
svn path=/trunk/KDE/kdelibs/; revision=1047602
2009-11-11 15:18:52 +00:00
Marco Martin
4fa7e72b1b if the tooltip contains windows, highlight it too
svn path=/trunk/KDE/kdelibs/; revision=1042991
2009-10-31 12:33:08 +00:00
Aaron J. Seigo
c27ddab67e QPointer -> QWeakPointer
svn path=/trunk/KDE/kdelibs/; revision=1034904
2009-10-13 21:43:35 +00:00
Peter Pan
c201a16450 make the positions of previews, icon and text on plasma tooltip consistent.
BUG:198890

svn path=/trunk/KDE/kdelibs/; revision=993317
2009-07-08 13:17:55 +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
Marco Martin
d625d40ecc gah, no more necessary those two vars
svn path=/trunk/KDE/kdelibs/; revision=955450
2009-04-17 16:57:16 +00:00
Marco Martin
3075eb4bd6 fix for the billionth time the tooltip positioning borkage, hopefully
this way is a bit more robust

svn path=/trunk/KDE/kdelibs/; revision=955449
2009-04-17 16:55:42 +00:00
Aaron J. Seigo
d2d756f3fd avoid putting empty text or unhelpful html elements in the tip text
svn path=/trunk/KDE/kdelibs/; revision=945121
2009-03-26 22:08:36 +00:00
Marco Martin
13ddc52057 support for multiple windows thumbnails in a tooltip
svn path=/trunk/KDE/kdelibs/; revision=941541
2009-03-19 22:15:29 +00:00
Marco Martin
f9ab759b8e set WA_TranslucentBackground to top level windows
svn path=/trunk/KDE/kdelibs/; revision=927085
2009-02-16 19:24:05 +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
Marco Martin
88f9436dbd don't trust size hints, they lie
this makes tooltip sliding a bit more predictable

svn path=/trunk/KDE/kdelibs/; revision=906676
2009-01-06 15:48:54 +00:00
Marco Martin
47c511c86c build on arm
svn path=/trunk/KDE/kdelibs/; revision=904274
2009-01-01 19:17:53 +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
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
Marco Martin
03733b6b9d check harder if the tooltip has the proper size
svn path=/trunk/KDE/kdelibs/; revision=898694
2008-12-18 19:11:54 +00:00
Marco Martin
eee1671b3c re-set the window preview when the size changes, since its behaviour
depends from the tooltip size
BUG:177378

svn path=/trunk/KDE/kdelibs/; revision=896526
2008-12-13 18:17:36 +00:00
Marco Martin
ba43ebdd06 corrected sizing problem
animation jumps a bit less randomly
BUG: 176672

svn path=/trunk/KDE/kdelibs/; revision=893099
2008-12-05 22:48:58 +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
0bc65a788d allow custom image, html and css resources in tooltips
svn path=/trunk/KDE/kdelibs/; revision=884026
2008-11-14 00:52:29 +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
beaa49aeb2 ++compile
svn path=/trunk/KDE/kdelibs/; revision=879800
2008-11-04 02:39:56 +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
e603f32c33 some more fiddling; doesn't really accomplish anything but doesn't hurt either. at least now i know why it "jitters" at times. going to be annoying to fix ...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879374
2008-11-03 06:14:26 +00:00
Aaron J. Seigo
80874e9ad7 put the code in a central place, back out the NET stuff as it breaks more than it fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879365
2008-11-03 05:03:36 +00:00
Aaron J. Seigo
ce90860d4d combine the move+resize on x11
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879364
2008-11-03 04:52:34 +00:00
Aaron J. Seigo
4b8da2000a give it a bit of a curve
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878942
2008-11-02 07:31:51 +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