Commit Graph

459 Commits

Author SHA1 Message Date
Chani Armitage
a5ec59b775 -setDefaultText no longer clobbers regular text
-fewer string comparisons

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791584
2008-03-29 22:22:44 +00:00
Chani Armitage
fb7a84644d compare default text correctly
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791246
2008-03-28 21:11:57 +00:00
Chani Armitage
7983ed5bb9 comments++
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791229
2008-03-28 19:43:17 +00:00
Aaron J. Seigo
abf654c5c5 have the tooltip inform the widget that it's about to tip so last second updates can be made, particularly nice for expensive tooltips
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=786834
2008-03-18 01:39:28 +00:00
Aaron J. Seigo
25476574a3 only remove it implicitly from our layout if the item is actually being removed from us (not just being stuffed into a child); in the case of a child becoming a grandchild, it will need to be explicitly added to a new layout or removed from an existing one.
prevents applethandle from causing applets to be removed from the FreeLayout in the DefaultDesktopp containment, as seen by Ivan

CCMAIL:panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=785670
2008-03-14 16:59:10 +00:00
Marco Martin
afdb5e84a0 reworked how shaped windows with svg backgrounds are obtained:
there is a new function PanelSvg::mask() that returns a qbitmap of the areas of the svg with alpha=0 that can be used to create the mask of the window, at the moment used in tooltip and dialog (krunner still to come).
so now windows that uses svg backgrounds should always set PanelSvg::mask() as their own mask, regardless if composite is active or not.
In this commit there are also two (identical) svgs for opaque tooltips and dialogs with pixelated rounded borders that looks good without antialiasing (and unlike the previous version they are vector based now).

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782727
2008-03-05 21:03:27 +00:00
Aaron J. Seigo
c1e480f20c numerous horizontal icon layout issues fixed
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781876
2008-03-03 19:35:24 +00:00
Marco Martin
2d34c6777c Initialize d->numDisplayLines
(and i wondered why sizeFromIconSize() seemed to have a non deterministic behaviour :P)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=781244
2008-03-02 12:30:29 +00:00
Dan Meltzer
7f624f85d9 Revert one large git mess
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780657
2008-02-29 17:50:57 +00:00
Dan Meltzer
a081559257 Commit initial progress of work to port to qt4.4
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780654
2008-02-29 17:43:31 +00:00
Sebastian Kügler
ae0510db05 Icons now fade in the background animation. They also learnt to react on color theme
changes. Some codingstyle changes as the icing on the cake.

The fade-in effect can be switched off with Rafaels new feature, btw.

RB:195

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779804
2008-02-27 00:50:07 +00:00
Vincenzo Di Massa
a2a6ed7f04 Delete the property on the parent widget :-)
My first bugfix, yay!

BUG: 157816

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779541
2008-02-26 13:00:49 +00:00
Aaron J. Seigo
b4722d7052 some debug to help figure out the xinerama problems; will disable once it's all good.
Will: can you svn up and send the output this generates for you? thanks
CCBUG:158406

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779405
2008-02-26 01:55:50 +00:00
Aaron J. Seigo
9c6dd4846b assert on having a view before calling this ...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779305
2008-02-25 20:50:26 +00:00
Aaron J. Seigo
ee26284ec3 fix maximum size in lieu of the WoC porting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778192
2008-02-22 19:40:46 +00:00
Aaron J. Seigo
756041badd const ref fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776990
2008-02-19 09:19:02 +00:00
Aaron J. Seigo
b19eb3eaff handful more of krazy fixes and i'm done for the night
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776988
2008-02-19 09:12:34 +00:00
Aaron J. Seigo
777b8083f8 * moves the idea of margins up to LayoutItem, allowing any LayoutItem to have a margin
* moves the idea of the size of the item up to LayoutItem, as both Widget and Layout implemented it separately
* provides a way in LayoutItem to adjust a rect within an item to its margins (that is what LayoutItem::topLeft() is there for)
* fix several bugs, both painting and sizing, in LineEdit
* Applet sets margins now based on the existence of setDrawBackground


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776380
2008-02-17 23:02:46 +00:00
Benjamin K. Stuhl
f78ab80d19 Call QWidget::resizeEvent() so that we get our layout recalculated. This
fixes the previews showing up in the wrong place.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776041
2008-02-17 07:47:52 +00:00
Marco Martin
0cfd49fb26 ok, not painterMask, maskPainter, woops :)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775827
2008-02-16 18:47:46 +00:00
Marco Martin
1403f2d007 painter => painterMask: more descriptive name
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775826
2008-02-16 18:43:25 +00:00
Marco Martin
bd80f41ae2 fixing a rendering problem with Qt>=4.4
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775816
2008-02-16 18:07:28 +00:00
Marco Martin
3f937278e1 Fix IconAction animation
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775286
2008-02-15 11:39:10 +00:00
Andreas Aardal Hanssen
7516d7ea30 Introduce QGraphicsItem::CacheMode in place of Widget::CachePaintMode.
This move was planned from the beginning; Widget::CachePaintMode was a
backport of the same feature in Qt 4.4. OK'ed by aseigo after post on
panel-devel. I've left CachePaintMode in there (it simply redirects to
CacheMode); I don't know if it's OK to remove these APIs or not (and
it's not monday anyway).

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=775198
2008-02-15 06:51:37 +00:00
Aaron J. Seigo
d03a381595 various geometry fixes (though somewhat depends on monday's big layout fix commit)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=774336
2008-02-13 01:48:18 +00:00
Aaron J. Seigo
e27b0ca4d0 ok, second try based on tzander's response. i think this should work better and be a nice come back from lunch toy for him to play/test with.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773999
2008-02-12 10:07:45 +00:00
Aaron J. Seigo
5b394a752f make popup location calcs xinerama aware. i bet this even closes some BRs. i'm too tired to look for them though. =P
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773980
2008-02-12 09:41:49 +00:00
Andre Duffeck
c42f0593ba Fix broken usage of Plasma::Phase
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773933
2008-02-12 05:52:49 +00:00
Aaron J. Seigo
22c8b77b34 this is not a Plasma::Widget. now styling is back. looks as nasty as ever, though.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773813
2008-02-11 20:50:13 +00:00
Aaron J. Seigo
c7fe098480 avoid flicker
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773744
2008-02-11 17:35:21 +00:00
Aaron J. Seigo
a438b53373 die, setSize, die, and all the problems you represent. silly duplicated, not-like-qwidget API anyways. ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773505
2008-02-11 08:24:09 +00:00
Aaron J. Seigo
eed0410c56 * make setSize virtual as well since it sets d->size internally, so Applet needs to intercept that call
* remove some dead code in widgets.cpp

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773475
2008-02-11 06:11:13 +00:00
Chani Armitage
1c4bdb9408 don't set d->size directly; this fixes the weird issues with setting minimum size before contentsize and makes sure the svg is updated
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773472
2008-02-11 05:53:19 +00:00
Marco Martin
2f6a8de658 recalculate all the margin sizes when the plasma theme changes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772465
2008-02-08 20:50:55 +00:00
Marco Martin
253f892b99 Now tooltips are svg-themed, the svg background for tooltips can be found on desktoptheme/widgets/tooltip.svg and when compositing is disabled desktoptheme/opaque/widgets/tooltip.svg is used
at the moment the svgs are the usual ones from the applet

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=772132
2008-02-07 21:24:20 +00:00
Aaron J. Seigo
462c52af51 be a little more paranoid about setting the info.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771449
2008-02-06 01:25:59 +00:00
Aaron J. Seigo
476eb885cb return on emptying the tooltip
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771375
2008-02-05 20:10:53 +00:00
Aaron J. Seigo
c7779d983e helps to make it an actual slot, no?
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771348
2008-02-05 19:17:50 +00:00
Aaron J. Seigo
9aa26c5e35 * set the palette on theme changes only
* don't grab the data until actually shown
* show the right size and position when we are showing the tip
* allow the tooltip to figure out it's size with the help of the widget (it knows when to do this, the widget only knows how)
* don't show the tip on every item's mouse over, respect the small timeout
* only create a ToolTipData struct for those items that actually use it (memory savings as well as makes the check for showing the tip a lot simpler)


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771314
2008-02-05 18:26:17 +00:00
Sebastian Kügler
886eb24647 Ooops. Didn't mean to sneak this in.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771018
2008-02-05 00:13:37 +00:00
Sebastian Kügler
576a655b05 Tooltip uses Plasma:Theme now ... and turns black here.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771014
2008-02-05 00:01:15 +00:00
Aaron J. Seigo
abd8d94daa while getting the size wrong is bad, flickering like crazy is even worse =)
resize after the contents have been set to get a rational size out of the widget.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770966
2008-02-04 20:59:39 +00:00
Riccardo Iaconelli
2434a31f69 Reset tooltip's size when changing text.
BUG: 157059

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770405
2008-02-03 16:57:00 +00:00
Riccardo Iaconelli
08771bb763 Align to grid, and slightly smaller frame
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770404
2008-02-03 16:56:53 +00:00
Bill Egert
29215641ef Reveiwed from http://matt.rogers.name/r/42/
Set windowSize only from readWindowSize()  
It looks like that function has some logic to determine what windowSize should really be.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=770330
2008-02-03 13:06:34 +00:00
Marco Martin
fb5ad56937 some tweaks in popupPosition()
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766629
2008-01-26 12:37:17 +00:00
Aaron J. Seigo
74a5773d79 use the Theme::*Color methods. another place we really need Plasma::ThemeColor, apparently.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766075
2008-01-25 07:36:33 +00:00
Marco Martin
b39fa0c7db white semitransparent border of icon background for better contrast
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765805
2008-01-24 18:35:22 +00:00
Marco Martin
92ecb186df in popupPosition() calculating if we are out of screen with the actual screen size instead of graphicsview size
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765724
2008-01-24 15:44:11 +00:00
Aaron J. Seigo
11f9ad3064 BINARY INCOMPATIBLE CHANGE
make it possible to use the context menu event hack with non-Plasma::Widgets.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=765005
2008-01-22 23:39:15 +00:00