Marco Martin
b2d528c0d3
flush pending constraint events after adding a containment, this makes
...
the close buttons appear and relayout when resized
svn path=/trunk/KDE/kdelibs/; revision=892097
2008-12-03 14:31:59 +00:00
Aaron J. Seigo
5055bf7bf0
the margins should be constant; it's a grid.
...
svn path=/trunk/KDE/kdelibs/; revision=891718
2008-12-02 18:42:06 +00:00
Script Kiddy
54340e9701
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdelibs/; revision=891615
2008-12-02 13:38:31 +00:00
Beat Wolf
8eeb660cdd
fixing typo. Resolves toolbox that is drawn outside screen
...
svn path=/trunk/KDE/kdelibs/; revision=891521
2008-12-02 12:44:39 +00:00
Aaron J. Seigo
f8acdb1861
apparently the documentation isn't right and you shouldn't delete the entries
...
to the report of the bug: please check that this fixes it for you whenever you can get an updated build (e.g. next build, or sooner if using svn); if not, please comment on the report and reopen it. thanks.
BUG:176661
svn path=/trunk/KDE/kdelibs/; revision=891424
2008-12-02 00:08:09 +00:00
Aaron J. Seigo
20260277d3
QSizeF lacks some niceties found in QSize
...
svn path=/trunk/KDE/kdelibs/; revision=891380
2008-12-01 21:40:13 +00:00
Aaron J. Seigo
613383b1ea
clear the local cache on resize; prevent ever growing memory usage due to the cache and looking through our applet code people tend to resize rarely, and not between paints
...
svn path=/trunk/KDE/kdelibs/; revision=891373
2008-12-01 21:10:33 +00:00
Rob Scheepmaker
ab56a3a388
Couple of fixes:
...
* Close empty extender when clicking in it.
BUG:176545
* Saner size policy for Plasma::Meter. (the height should never be able to be smaller then svg's height because labels could otherwise overlap, actually, the whole current approach doesn't consider font size, I think we should think of a better approach for 4.3)
* Use the same spacer as used in the panel for extenders. I think we would want some svg themable shared spacer widget for 4.3, but at least this adds some consistency.
svn path=/trunk/KDE/kdelibs/; revision=891328
2008-12-01 18:30:42 +00:00
Aaron J. Seigo
f25e5b82ff
provide a local rect cache in each Svg object to avoid going through the canonical but slower Theme cache more than once; makes a big difference for performance as these calls are made in painting hot paths
...
svn path=/trunk/KDE/kdelibs/; revision=891325
2008-12-01 18:07:20 +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
Marco Martin
6c7c11e934
exactly the same delayed cache insertion did for framesvg,
...
now the thing is really faster
svn path=/trunk/KDE/kdelibs/; revision=891275
2008-12-01 14:35:02 +00:00
Marco Martin
9fd8a3298d
correctly position new activity when adding one
...
never show text on wider zoom level
svn path=/trunk/KDE/kdelibs/; revision=891258
2008-12-01 13:17:27 +00:00
Marco Martin
d9c14c87ba
show the toolbox as an external solid-background toolbar under the
...
containment, don't show text on icons except add windgets and add
activity
show the remove activity button in the toolbox for non active ones
svn path=/trunk/KDE/kdelibs/; revision=891209
2008-12-01 12:40:08 +00:00
Aaron J. Seigo
258a749f36
fix build on arm
...
svn path=/trunk/KDE/kdelibs/; revision=891099
2008-12-01 08:48:25 +00:00
Aaron J. Seigo
40041fe655
always delete the config group on destruction, even if it hasn't been access yet
...
svn path=/trunk/KDE/kdelibs/; revision=891073
2008-12-01 06:27:07 +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
Aaron J. Seigo
7fca1acbb6
if the applet is destroyed, then returnToSource() the extenders. perhaps we should be watching for extenders being deleted at random (QObject::destroyed signal?). also, seems that returnToSource is broken in general atm, but only for items in the panel, though that seems to be a separate issue. i wonder if that's a PopupApplet bug? will need to investigate.
...
CCMAIL:r.scheepmaker@student.utwente.nl
BUG:176411
svn path=/trunk/KDE/kdelibs/; revision=891037
2008-12-01 01:08:43 +00:00
Aaron J. Seigo
6f3d2bc0ea
allow applets to know when they are destroyed
...
svn path=/trunk/KDE/kdelibs/; revision=891035
2008-12-01 01:04:58 +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
c4d63ac944
don't access an invalid group
...
BUG:176595
svn path=/trunk/KDE/kdelibs/; revision=891029
2008-12-01 00:28:50 +00:00
Rob Scheepmaker
bd1a648215
Removed some unnecesarry calls to adjustSizeHints()
...
svn path=/trunk/KDE/kdelibs/; revision=890899
2008-11-30 16:16:25 +00:00
Rob Scheepmaker
103f1db668
First showing the dialog and then updating it's position solves the problem of the calendars not appearing anymore unless an inconvenient set of circumstances occur.
...
svn path=/trunk/KDE/kdelibs/; revision=890887
2008-11-30 15:56:06 +00:00
Rob Scheepmaker
e1bb614999
Fixed crash when clicking an extenders dragger without actually dragging, and fixed the 'hand problem'.
...
svn path=/trunk/KDE/kdelibs/; revision=890806
2008-11-30 11:45:23 +00:00
Marco Martin
8328875f4c
delay insertion into the pixmap cache of all prefix that is being
...
resized and save all of them at once at a timer event.
this way when a big number of scales is done in little time (e.g. applet
reszing) prevents too many disk writes and qimage conversions
svn path=/trunk/KDE/kdelibs/; revision=890663
2008-11-29 19:24:40 +00:00
Marco Martin
f4cf4b189b
avoid an endless repaint loop
...
condition is still very convoluted but at least a lot faster
svn path=/trunk/KDE/kdelibs/; revision=890462
2008-11-29 13:06:12 +00:00
Aaron J. Seigo
807b2cf637
make wheel events work, based on a patch by afiestas
...
CCMAIL:alex@eyeos.org
svn path=/trunk/KDE/kdelibs/; revision=890354
2008-11-29 00:03:08 +00:00
Aaron J. Seigo
4a7699ce82
since it leads to confusion for users, breaks occassionally in svn due to its complexity, incurs overhead on every applet paint but especially when dragging, doesn't look nice at all without composite ... just kill the top level view thing and when you drag something it just "pops" into the right containment.
...
BUG:176298
svn path=/trunk/KDE/kdelibs/; revision=890331
2008-11-28 22:39:29 +00:00
Aaron J. Seigo
766dc8ab60
patch by Andrew Lake to free-resize applets from the corner rather than the center; need to do some work on applet handle right now and i don't want this patch going sideways and he's not online right now, so ...
...
svn path=/trunk/KDE/kdelibs/; revision=890316
2008-11-28 22:01:39 +00:00
Marco Martin
827876bab0
when the view is zoomed out show all desktop toolboxes as toolbars,
...
makes the thing way more usable
prettier background
and disable the text on maximum zoom out level
svn path=/trunk/KDE/kdelibs/; revision=890259
2008-11-28 17:32:21 +00:00
Rob Scheepmaker
2d4971eb46
Extender Polishing time! The following problems have been adressed:
...
* Far more correct spacer implementation. This avoids the spacer jumping around while dragging an item. Also adjustSizeHints is now only called once/spacer move.
* Avoid spacer related memleak.
* Only load extenderItems that are actually detached. This way, attached items won't linger around in case of a plasma crash.
* Use utilities-desktop-extra as icon for items with no saved icon (e.g. items where the icon is set using setIcon(QIcon) instead of setIcon(QString)). Sure beats the questionmark.
* Update mask when offscreen extender items are resized when being dragged to avoid screwed up masks (white borders).
* Start the drag only aften being moved a minimum of QApplication::startDragDistance().
* Correct transformation for calls to showDropZone.
* Use the mouse position for positioning items in extenders or panels, the topleft corner for positioning in a desktop containment. This feels the most natural.
* Move items back to the extender they came from when they're dropped into nowhere.
* Some small code style fixes.
svn path=/trunk/KDE/kdelibs/; revision=890249
2008-11-28 17:06:00 +00:00
Script Kiddy
5cbe4c5b8e
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdelibs/; revision=890146
2008-11-28 13:29:14 +00:00
Aaron J. Seigo
509632ff64
a couple of related fixes to make destroying containments work a lot better
...
svn path=/trunk/KDE/kdelibs/; revision=889816
2008-11-27 18:55:32 +00:00
Marco Martin
4d962352a9
respect drawBase()
...
svn path=/trunk/KDE/kdelibs/; revision=889814
2008-11-27 18:36:42 +00:00
Aaron J. Seigo
057d7693fe
sshhhh
...
svn path=/trunk/KDE/kdelibs/; revision=889813
2008-11-27 18:33:11 +00:00
Aaron J. Seigo
15ef681d83
copy the config over before setting our own containment, otherwise the screen gets set to -1 and then we copy it over. oh nos!
...
svn path=/trunk/KDE/kdelibs/; revision=889812
2008-11-27 18:31:59 +00:00
Alexis Ménard
4b0bd4867c
SVN_SILENT minor fix according to montel
...
svn path=/trunk/KDE/kdelibs/; revision=889768
2008-11-27 15:33:30 +00:00
Alexis Ménard
5a2ae9f976
Don't try to create a nice shadow on a text if the text is empty (avoid some warnings)
...
Rev by aseigo
svn path=/trunk/KDE/kdelibs/; revision=889759
2008-11-27 14:52:08 +00:00
Aaron J. Seigo
e16ba8fed0
* make popupEvent protected, like other events
...
* allow marking the popup dialog as passive
CCBUG:176114
svn path=/trunk/KDE/kdelibs/; revision=889543
2008-11-27 06:09:00 +00:00
Aaron J. Seigo
4659724790
don't create an unused button
...
svn path=/trunk/KDE/kdelibs/; revision=889542
2008-11-27 06:03:53 +00:00
Alexis Ménard
c11105d5af
Remove this stuff, it is not needed anymore. Come with my previous commit.
...
It doesn't break the BC, we can add afterwards an overload it doesn't matter.
svn path=/trunk/KDE/kdelibs/; revision=889392
2008-11-26 17:40:46 +00:00
Alexis Ménard
1cbd228901
Let the QGraphicsView manage the focus
...
Rev By aseigo
svn path=/trunk/KDE/kdelibs/; revision=889379
2008-11-26 16:38:42 +00:00
Script Kiddy
8ec20a4123
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdelibs/; revision=889317
2008-11-26 14:02:07 +00:00
Rob Scheepmaker
926dae37a7
Also hide dialogs of applets on the desktop.
...
Use topleft of extenderitem to check if we're over a containment, since that point is also used when instantiating an extenderapplet, and otherwise the dropzone could be at a different position then the actual applet being created.
svn path=/trunk/KDE/kdelibs/; revision=888951
2008-11-25 15:26:13 +00:00
Aaron J. Seigo
15cc6a0731
disconnect applets from the containment they get moved from
...
CCBUG:173879
svn path=/trunk/KDE/kdelibs/; revision=888666
2008-11-25 03:07:18 +00:00
Aaron J. Seigo
7b4de980b8
clarify this code a wee bit more and call positionContainments() in all necessary cases
...
svn path=/trunk/KDE/kdelibs/; revision=888637
2008-11-25 00:23:43 +00:00
Aaron J. Seigo
ad6d7b11e4
SVN_SILENT: add a fixme, remove a todo
...
svn path=/trunk/KDE/kdelibs/; revision=888630
2008-11-25 00:06:00 +00:00
Marco Martin
75dcbe9413
initialize this value, that's why toolbox sometimes was going to left in
...
an unpredictable way
BUG:175796
CCMAIL:release-team@kde.org
svn path=/trunk/KDE/kdelibs/; revision=888589
2008-11-24 22:27:42 +00:00
Adriaan de Groot
5959236882
Match up the declaration of setCorner with its definition (missing const)
...
svn path=/trunk/KDE/kdelibs/; revision=888512
2008-11-24 17:39:03 +00:00
Script Kiddy
ab804da710
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdelibs/; revision=888400
2008-11-24 12:47:12 +00:00