Aaron J. Seigo
de056072d7
SVN_SILENT: piece of debug that snuck in
...
svn path=/trunk/KDE/kdelibs/; revision=1046895
2009-11-09 22:16:32 +00:00
Aaron J. Seigo
53c10286b6
hover trumps mandatory; avoid doing unecessary work/allocations while we're at it
...
svn path=/trunk/KDE/kdelibs/; revision=1046892
2009-11-09 22:13:55 +00:00
Dmitry Suzdalev
d21f690651
Improve subitle showing in Plasma::Delegate.
...
Automatically show subtitle for adjasent items with the same content
only when model doesn't provide explicit data for SubTitleMandatoryRole,
otherwise respect what model says and set visibility of subtitle accordingly
Review: http://reviewboard.kde.org/r/1357/
svn path=/trunk/KDE/kdelibs/; revision=1014442
2009-08-22 20:47:15 +00:00
Marco Martin
a64227049a
add a bit of margin when is painted in svg
...
svn path=/trunk/KDE/kdelibs/; revision=987254
2009-06-25 18:31:24 +00:00
Aaron J. Seigo
6c0bea46a2
don't adjust the border rect if we are using an svg
...
BUG:197188
svn path=/trunk/KDE/kdelibs/; revision=984023
2009-06-19 19:20:50 +00:00
Marco Martin
9c3ebb58a9
less ugly with svg based painting
...
svn path=/trunk/KDE/kdelibs/; revision=972776
2009-05-25 16:48:56 +00:00
Marco Martin
652694c5fd
draw correctly in RTL layouts
...
BUG: 188172
svn path=/trunk/KDE/kdelibs/; revision=969749
2009-05-18 20:20:45 +00:00
Jesse Lee Zamora
bc9e8a7263
- Just a small touch up for the plasma item delegate gradient (for
...
kickoff).
svn path=/trunk/KDE/kdelibs/; revision=966819
2009-05-11 22:27:43 +00:00
Marco Martin
5e132c33a8
use normalText, not ActiveText
...
svn path=/trunk/KDE/kdelibs/; revision=963976
2009-05-05 19:06:17 +00:00
Marco Martin
33065aa54f
if paint as plasma use also plasma colors
...
svn path=/trunk/KDE/kdelibs/; revision=963974
2009-05-05 18:55:50 +00:00
Marco Martin
3aac723ba5
if the background of the palette is transparent, plasmify
...
svn path=/trunk/KDE/kdelibs/; revision=963954
2009-05-05 17:57:30 +00:00
Marco Martin
115b87704f
fixed a little typo (backgroundcolor/backgroundcolor2) spotted by
...
metellius
svn path=/trunk/KDE/kdelibs/; revision=946778
2009-03-30 11:13:10 +00:00
Aaron J. Seigo
3d4ccc37c2
constify and build
...
svn path=/trunk/KDE/kdelibs/; revision=898199
2008-12-17 17:45:24 +00:00
Jesse Lee Zamora
9a57b3105e
Lets the delegate detect whether the item will need a tooltip, and adds a
...
function so programs can show tooltips.
svn path=/trunk/KDE/kdelibs/; revision=898183
2008-12-17 16:30:19 +00:00
Jesse Lee Zamora
48cf523fc4
With the device notifier, the Plasma::Delegate would draw a gradient even when the
...
item text wasn't too long. This fixes that little issue.
too long
svn path=/trunk/KDE/kdelibs/; revision=891301
2008-12-01 16:31:47 +00:00
Jesse Lee Zamora
629a3b3789
Polish the rough edges out of the gradient painting code.
...
svn path=/trunk/KDE/kdelibs/; revision=891051
2008-12-01 01:54:07 +00:00
Jesse Lee Zamora
0fd4c5e3b2
Before if the background of the delegate is not white, the gradient would paint
...
white, and look terrible. So, this fixes that by checking the background color and
making the gradient that color.
svn path=/trunk/KDE/kdelibs/; revision=891038
2008-12-01 01:14:35 +00:00
Jesse Lee Zamora
54141a7ec7
This fixes a bug where if the text is too long it runs out of the item delegate rect. It adds a
...
nice gradient on items that the text is too long.
svn path=/trunk/KDE/kdelibs/; revision=887773
2008-11-22 20:46:50 +00:00
Aaron J. Seigo
1376b1dc9b
consistent mocing
...
svn path=/trunk/KDE/kdelibs/; revision=884497
2008-11-15 06:11:17 +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
Allen Winter
c4573eae9a
use QString::clear() to clear a QString instead of assigning QString().
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870305
2008-10-12 11:05:42 +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
Aaron J. Seigo
922c85c705
it makes no sense to have the blur stuff in one header/namespace and the roundedRectangle stuff in another: it's all painting related. putting them together, however, makes "ImageEffects" really not accurate. ImageEffects will also clash, concept-wise, with a real effects lib.
...
therefore, introducing Plasma::PaintUtils.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827859
2008-07-03 23:50:13 +00:00
Marijn Kruisselbrink
21b148b963
change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Aaron J. Seigo
04f01a17dd
center the icon vertically
...
BUG:163213
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816767
2008-06-04 19:35:17 +00:00
Marco Martin
7b8860b462
API reviews:
...
static constants now in pimpl
also, don't make assumptions on icon size
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801766
2008-04-27 17:09:48 +00:00
Marco Martin
3a6281aa6a
API review:
...
setRole()->setRoleMapping()
+ roleMapping() getter
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800985
2008-04-25 11:35:20 +00:00
Marco Martin
4e92155f7d
API reviews:
...
Plasma::Delegate has a parent argument in the constructor
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800960
2008-04-25 10:16:49 +00:00
Aaron J. Seigo
e36acd4151
remove a couple of tricks used prior to the selection rect that now look over the top
...
* don't bold on hover for a calmer look
* don't scale down the icons (made them blurry anyways)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=793687
2008-04-04 20:17:49 +00:00
Rafael Fernández López
b1a56982ad
Kickoff changes asked on panel-devel. As voted, the background painting did not get in
...
- Strict mouse hover
- Leaving an item will unselect that item
- Leaving the viewport will unselect the selected item if was any
- Better keyboard navigation
- If no item selected, Up will select the last item, Down will select the first item
- Search improvements
- The first result becomes the selected index, if exists
- The bottom tabbar is hidden for ease of use, intuitivity and letting more room for search results
CCMAIL: panel-devel@kde.org
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792562
2008-04-01 15:53:52 +00:00
Aaron J. Seigo
bd671a7c8a
explain why we don't show subtitles on hover since people keep trying to change that
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791989
2008-03-30 21:38:17 +00:00
Andre Duffeck
47f56bd824
Use KColorScheme::InactiveText role for the sub-titles
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791134
2008-03-28 13:40:41 +00:00
Adriaan de Groot
b70a5c53bb
floor() is c99, need math.h for it as well
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=790776
2008-03-27 12:53:48 +00:00
Marco Martin
92dd45a555
Porting Kickoff item delegate to Plasma::Delegate
...
this removes a lot of duplication
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=788915
2008-03-22 20:26:46 +00:00
Marco Martin
13efb56562
fix the empty space calculation in Plasma::Delegate
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=787721
2008-03-19 18:09:15 +00:00
Marco Martin
750094f6bf
Add a new Plasma class: Plasma::Delegate
...
it will draw all the listviews used in Plasma that acts like a menu, like Kickoff or Devicenotifier.
at the moment only devicenotifier uses that, (so now it looks like kickoff) a port of the kickoff delegate is planned.
if you want to draw additional data you must
can subclass it
call paint of the father and then use onr of the function the functions rectAfterTitle, rectAfterSubTitle and emptyRect to get the blank space
paint in the rect obtained with the above functions
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786973
2008-03-18 11:09:39 +00:00