Petri Damstén
71fa982797
* Use correct font for size hint in Frame
...
* Use correct font in IconWidget setLayoutOptions
* layout fonts are set in IconWidget setLayoutOptions and layoutTextItems. No need to set them in paint.
* Fix using QGraphicsWidget font when customFont == true in several widgets.
svn path=/trunk/KDE/kdelibs/; revision=1047017
2009-11-10 09:46:14 +00:00
Marco Martin
a5f39f0f06
return a size hint based on font metrics
...
svn path=/trunk/KDE/kdelibs/; revision=1046144
2009-11-07 16:44:56 +00:00
Marco Martin
8c047a91eb
don't fade the label if the width is exactly the text width
...
svn path=/trunk/KDE/kdelibs/; revision=1046037
2009-11-07 10:56:06 +00:00
Marco Martin
ca60a5a6cf
convert the function to a qgraphicswidget:
...
sceneeventfilter appears to eat events always and in this way i can
remove elements from dragHandles when they get deleted
svn path=/trunk/KDE/kdelibs/; revision=1045818
2009-11-06 20:20:35 +00:00
Marco Martin
3639317617
send the event to the widget, it will have coordinates mapped in a more
...
precise way
svn path=/trunk/KDE/kdelibs/; revision=1045778
2009-11-06 18:58:47 +00:00
Marco Martin
60eabf5382
void registerAsDragHandle(QGraphicsItem *item);
...
easy way to keep the flickable scrolling even with clickable sub items
svn path=/trunk/KDE/kdelibs/; revision=1045776
2009-11-06 18:57:35 +00:00
Marco Martin
5789ff1883
remove magic numbers
...
svn path=/trunk/KDE/kdelibs/; revision=1045319
2009-11-05 19:21:25 +00:00
Marco Martin
2d0f7dc81b
set the proper margins:.. todo: constant, not magic numbers
...
svn path=/trunk/KDE/kdelibs/; revision=1045303
2009-11-05 18:37:38 +00:00
Marco Martin
f58a5a844b
update the geometry on load finish
...
svn path=/trunk/KDE/kdelibs/; revision=1044727
2009-11-04 14:48:23 +00:00
Marco Martin
54f38beec6
return the page size as size hint
...
svn path=/trunk/KDE/kdelibs/; revision=1044708
2009-11-04 14:16:14 +00:00
Marco Martin
1b945b8aff
removeIconAction(0) clears the actions
...
svn path=/trunk/KDE/kdelibs/; revision=1044330
2009-11-03 13:10:19 +00:00
Petri Damstén
2a7d429232
discard size hint in setText
...
BUG: 212341
svn path=/trunk/KDE/kdelibs/; revision=1043020
2009-10-31 14:10:11 +00:00
Petri Damstén
d03a3ef5df
Return correct width for minimum and preferred size.
...
BUG:212341
svn path=/trunk/KDE/kdelibs/; revision=1042611
2009-10-30 10:11:12 +00:00
Marco Martin
5bd2af94f8
invalidate the main layout when te new page is inserted, only way to get
...
the preferred size right, apparently
svn path=/trunk/KDE/kdelibs/; revision=1042410
2009-10-29 19:05:04 +00:00
Marco Martin
c71cd00557
delay cuurentchanged after the animation, use a preferredsize policy for the
...
pages
svn path=/trunk/KDE/kdelibs/; revision=1042395
2009-10-29 18:31:27 +00:00
Marco Martin
4418fb8971
revert last bogus commit
...
svn path=/trunk/KDE/kdelibs/; revision=1042383
2009-10-29 17:58:52 +00:00
Marco Martin
7e8d330582
some qgraphicslayout hack to return a meaningful size hint, pretty
...
unfortunate
svn path=/trunk/KDE/kdelibs/; revision=1042375
2009-10-29 17:50:44 +00:00
Marco Martin
dd581265cf
move the extra border in the size hint
...
svn path=/trunk/KDE/kdelibs/; revision=1041792
2009-10-28 14:19:34 +00:00
Marco Martin
67065e2ed2
always draw when the button is in checked state
...
svn path=/trunk/KDE/kdelibs/; revision=1040124
2009-10-25 17:17:22 +00:00
Marco Martin
905f3960da
use the active rect for the focus rect
...
svn path=/trunk/KDE/kdelibs/; revision=1039127
2009-10-22 19:28:19 +00:00
Marco Martin
03bb063c62
migrate focusindicator to the new api
...
change the api of fade to be abe to set a start and an end taget
opacities
svn path=/trunk/KDE/kdelibs/; revision=1039087
2009-10-22 17:39:43 +00:00
Marco Martin
c470055a37
revert the last patch: when there is clipping the borders can't be
...
children of the scrolling widget
svn path=/trunk/KDE/kdelibs/; revision=1038759
2009-10-21 19:47:20 +00:00
Marco Martin
7e80fdd8f1
use anchorlayout, quite a good quantity of code wiped out,
...
workaround to an annoying anchorlayout crasher tough
svn path=/trunk/KDE/kdelibs/; revision=1038665
2009-10-21 15:26:08 +00:00
Marco Martin
637a50e17c
disable the clipping hack
...
svn path=/trunk/KDE/kdelibs/; revision=1038652
2009-10-21 15:01:06 +00:00
Marco Martin
7423a261dd
keep a 1 pixel border
...
svn path=/trunk/KDE/kdelibs/; revision=1038647
2009-10-21 14:48:14 +00:00
Marco Martin
9f806ddf48
decide based on the sizehint whether resize the internal widget or not
...
svn path=/trunk/KDE/kdelibs/; revision=1038632
2009-10-21 14:32:24 +00:00
Marco Martin
82317bda2d
take in consideration the size hint of the internal widget for the own
...
sized hint
svn path=/trunk/KDE/kdelibs/; revision=1038245
2009-10-20 21:37:46 +00:00
Marco Martin
b2bb69732a
provide the Animator::registerScrollingManager(qgraphicsidget) function.
...
the animator creates a kineticscroll and associates it with the widget.
in this way we can use kineticscroll outside of libplasma with a single
call.
svn path=/trunk/KDE/kdelibs/; revision=1037751
2009-10-19 22:10:25 +00:00
Marco Martin
89e73cecd2
animate the highlight with the new animation framework. we got a glow
...
item called FocusIndicaotr, it's private for now and probably it should
remain so
svn path=/trunk/KDE/kdelibs/; revision=1037733
2009-10-19 21:13:54 +00:00
Aaron J. Seigo
211a206277
the count is always 1 larger than the index, so > is not enough
...
svn path=/trunk/KDE/kdelibs/; revision=1036289
2009-10-16 22:41:39 +00:00
Marco Martin
4191b96c6d
force to invalidate the size hint when the inner widget size changes
...
svn path=/trunk/KDE/kdelibs/; revision=1036087
2009-10-16 14:53:11 +00:00
Marco Martin
31cb2730ea
size hint is the inner widget size
...
svn path=/trunk/KDE/kdelibs/; revision=1036073
2009-10-16 14:10:55 +00:00
Marco Martin
1d611eac34
initialize the layout as soon as possible, crash--?
...
svn path=/trunk/KDE/kdelibs/; revision=1036032
2009-10-16 11:14:46 +00:00
Marco Martin
451cf321a2
forgotten to commit before: migrate to the new api
...
svn path=/trunk/KDE/kdelibs/; revision=1035760
2009-10-15 20:12:01 +00:00
Aaron J. Seigo
0d90362d1a
* lump all actions over the max at the end
...
* don't use magic numbers but the enum
* don't leak icon items when the action is destroyed
svn path=/trunk/KDE/kdelibs/; revision=1035440
2009-10-15 02:39:38 +00:00
Marco Martin
2bdb8bc405
forward released too
...
svn path=/trunk/KDE/kdelibs/; revision=1034804
2009-10-13 15:29:23 +00:00
Darío Andrés Rodríguez
59296fb520
- Fix several minor issues reported by Krazy2
...
(http://reviewboard.kde.org/r/1837/ )
svn path=/trunk/KDE/kdelibs/; revision=1034756
2009-10-13 12:40:13 +00:00
Marco Martin
e6661712a8
don't reset to zero the position on scrollbar move
...
svn path=/trunk/KDE/kdelibs/; revision=1034699
2009-10-13 10:10:08 +00:00
Marco Martin
5691d2a48b
keep the mouseover state ourselves since it won't be updated when the
...
widget is disabled
svn path=/trunk/KDE/kdelibs/; revision=1034427
2009-10-12 17:17:46 +00:00
Marco Martin
38884ccd1a
now the api is similar to what webkit offers and horizontal and vertical
...
scroll is done in pixels and in a single pass.
we have 3 properties in widgets that wants to support scroll:
scrollPosition
viewportGeometry
constentsSize
svn path=/trunk/KDE/kdelibs/; revision=1032821
2009-10-08 16:04:56 +00:00
Giulio Camuffo
86cffbab45
suppress some runtime complaints of QGraphicsGridLayout
...
svn path=/trunk/KDE/kdelibs/; revision=1032423
2009-10-07 19:27:01 +00:00
Aaron J. Seigo
947e2cd632
show() causes an implicit animation which will emit target[Item]Reached signals; this makes the first show smoother in the device notifier
...
svn path=/trunk/KDE/kdelibs/; revision=1032154
2009-10-07 04:16:39 +00:00
Adenilson Cavalcanti Da Silva
e749331979
Using the viewport/content size ratio to inform the geometry.
...
It ensures that at least the page will scroll correctly (i.e. advancing
just 1 page down) in webpages that are too long (e.g. kdeplanet).
svn path=/trunk/KDE/kdelibs/; revision=1032052
2009-10-06 18:31:47 +00:00
Adenilson Cavalcanti Da Silva
3d33d3f28f
Factoring the ratio of widget/viewport size when doing the
...
kinetic scrolling.
This will help to have a proper scrolling in cases that the
viewport is several times smaller than the widget size.
svn path=/trunk/KDE/kdelibs/; revision=1032023
2009-10-06 16:58:42 +00:00
Aaron J. Seigo
bd5359ca8f
setTarget -> targetReached, setTargetItem -> targetItemReached
...
svn path=/trunk/KDE/kdelibs/; revision=1032017
2009-10-06 16:44:23 +00:00
Aaron J. Seigo
70b3847210
make moving between items with different parents work a bit better ;)
...
svn path=/trunk/KDE/kdelibs/; revision=1031762
2009-10-05 22:44:08 +00:00
Aaron J. Seigo
6ccaa814b3
* add getter for targetItem
...
* add property for targetItem
svn path=/trunk/KDE/kdelibs/; revision=1031688
2009-10-05 18:59:21 +00:00
Marco Martin
0e59e70583
move correctly the pages at the first animation
...
svn path=/trunk/KDE/kdelibs/; revision=1031682
2009-10-05 18:40:58 +00:00
Aaron J. Seigo
e4f20fdba8
* add a targetReached(QRectF) signal for completeness
...
* emit the targetReached signals in all cases that the target is reached, not just when there is an animation
* only emit targetReached(QGrahpicsItem*) when there is a target item
* provide a getter for the target rect
* register setTarget as a property
svn path=/trunk/KDE/kdelibs/; revision=1031661
2009-10-05 18:00:06 +00:00
Marco Martin
8587a9dd47
forward pressed
...
svn path=/trunk/KDE/kdelibs/; revision=1031647
2009-10-05 17:20:05 +00:00