Commit Graph

56 Commits

Author SHA1 Message Date
Sebastian Gottfried
db1d3d37e9 Plasma QML components: fix internal anchoring in Button and ToolButton
There is a bug in the tool button and button components resulting in
layout breakage if one clears and sets the text property of the
component when not visible, see the attached screenshot.

I have tried to solve the issue without changing the existing
anchoring system, but without success. The only working solution
was to put the icon and the label item into Row item. That way I was
able to fix the bug and even get rid of the ugly explicit
non-declarative anchor assignments.

I have also removed the preferredWidth property of the label item,
that one always evaluated to paintedWidth, anyway.

REVIEW: 107813
2012-12-19 16:07:50 +01:00
Aurélien Gâteau
8a02511158 Doxygenize BusyIndicator and Button 2012-12-14 16:16:18 +01:00
Marco Martin
ed4504f731 PlasmaCore.IconItem
remove the old private IconLoader
this takes care of rendering at the proper size, using a Svg when needed and animation when
2012-11-26 20:49:16 +01:00
Aaron Seigo
3fb4a78ed5 replace tabs with space. 2012-10-25 13:14:53 +02:00
Marco Martin
58d9657594 binding loop-- 2012-10-18 16:50:59 +02:00
Marco Martin
6b7fa2aaac use paintedWidth when significative
gets updated before implicitWidth, making the center alignment work better
2012-10-12 19:36:53 +02:00
Marco Martin
a518f3bb6e fix text alignment 2012-10-08 16:00:55 +02:00
Marco Martin
fe783b7355 no return in property bindings
or doesn't do the signal connection to pthe property changed
2012-10-08 14:47:36 +02:00
David Edmundson
0d6db0bbed Add property minimumWidth and minimumHeight to Button
REVIEW: 106717
2012-10-05 21:35:40 +01:00
Marco Martin
13cba92e54 better logic for text elide 2012-10-03 10:38:00 +02:00
Marco Martin
2d297c1f6e revert text elide
causes some buttons to lose size hint
2012-10-02 22:30:38 +02:00
Marco Martin
e0598f1489 elide text if long 2012-10-02 22:00:19 +02:00
David Edmundson
9bdfa5fe55 Remove animation when changing from normal to pressed state
This was too slow, and for a normal mouse click was too slow to actually be seen.
Releasing from pressed still animates to increase visual feedback.
2012-06-23 03:19:41 +01:00
David Edmundson
bf194777c0 Remove resize animation on buttom press 2012-06-23 03:19:41 +01:00
Lamarque V. Souza
874bbd6068 Fix spelling errors in declarativeimports documentation, which is not
currently translated (no i18n problem).
2012-06-14 19:28:19 -03:00
Sebastian Gottfried
5b567230e6 buttons: first focus, than emit clicked() signal
Otherwise a client wanting to give another QML component the focus in
reaction to a clicked button has no chance doing so because the button
will steal the focus again right after the event handler has finished
executing.

REVIEW: 104893
2012-05-10 00:48:53 +02:00
Marco Martin
cc1c6c5b9e revert 7552f160ff1c01a338f9093eeb56a7db1396c5a2 2012-02-20 21:01:08 +01:00
Shaun Reich
d5bf439e5b be sure to H align the text if our icon is valid in a Button 2012-02-19 00:09:06 -05:00
Marco Martin
1cffdbe741 more comments 2012-01-10 21:39:18 +01:00
Marco Martin
f8a93ef3ce fix comments formatting 2012-01-10 21:39:04 +01:00
Marco Martin
4bf3597b2d fix button icon sizing 2012-01-03 21:16:25 +01:00
Marco Martin
0a3b3d849c document iconSource a bit more 2011-12-28 18:02:44 +01:00
Marco Martin
e043dbd043 document a bit more iconSource 2011-12-28 18:01:57 +01:00
Daker Fernandes Pinheiro
6b9ce536d3 Remove extra whitespace on plasma Button documentation
Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
2011-12-22 13:49:29 -03:00
Giorgos Tsiapaliwkas
4c627ff830 Merge branch 'master' of git://anongit.kde.org/kde-runtime
Conflicts:
	plasma/declarativeimports/plasmacomponents/qml/ScrollBar.qml
2011-12-22 18:39:21 +02:00
Marco Martin
bcc26fb73b fix import names 2011-12-22 14:58:11 +01:00
Giorgos Tsiapaliwkas
9a1e332b9b move the private components into a private subdir 2011-12-22 15:16:01 +02:00
Marco Martin
de666a6fd3 Documentanted -> Documented 2011-12-22 11:53:15 +01:00
Marco Martin
183e794059 use * for bullet points in properties
easier parsing
2011-12-19 14:44:42 +01:00
Marco Martin
d72f2d7c3c Merge branch 'master' into plasma-components-doc
Conflicts:
	plasma/declarativeimports/plasmacomponents/qml/Button.qml
2011-12-16 18:53:25 +01:00
Marco Martin
13a3d33681 use onclicked
it gets canceled when it should
2011-11-28 21:42:27 +01:00
Marco Martin
d5167f2529 pressed effect for the label 2011-11-28 13:49:28 +01:00
Daker Fernandes Pinheiro
f50fb6e6d6 Add more details to Button Plasma Component documentation
Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
2011-11-26 14:16:21 -03:00
Marco Martin
3734ab5658 less height 2011-11-17 20:14:47 +01:00
Marco Martin
a5b16a856c fix button width 2011-11-17 20:03:08 +01:00
Giorgos Tsiapaliwkas
72f52c5d29 Merge branch 'master' into plasma-components-doc 2011-11-16 18:06:25 +02:00
Marco Martin
60db3ff72d fix keyboard navigation 2011-11-14 17:52:27 +01:00
Marco Martin
9303301e83 square button if icon only 2011-11-10 14:29:39 +01:00
Marco Martin
63eb84ce80 left text alignment if icon 2011-11-10 14:27:35 +01:00
Marco Martin
0c2995f8e8 give typical items the same (font based) height
this way everything will look exactly vertically aligned
2011-11-09 22:31:39 +01:00
Marco Martin
dd3b76b9af style 2011-11-09 17:49:10 +01:00
Marco Martin
869afade06 different paint for flat toolbuttons in touchscreens 2011-11-08 20:48:33 +01:00
Marco Martin
5a00c8ec01 better shadow state chooser 2011-11-08 20:34:39 +01:00
Marco Martin
82bbcc139a better logic for button pressed handling 2011-11-08 19:27:44 +01:00
Marco Martin
1d4f9a5c77 fix shadow disabling 2011-11-08 18:19:25 +01:00
Giorgos Tsiapaliwkas
689923f81d Button.qml:populate alias font 2011-11-02 03:23:16 +02:00
Mark Gaiser
147df3a274 Updated Button.qml form PlasmaComponents to have:
- Animations
- A state machine
- More margin when an icon is used
- A few cleanups

REVIEW: 103020
2011-11-01 23:51:42 +01:00
Giorgos Tsiapaliwkas
3bc7a287df add some documentation to the Button.qml 2011-10-31 06:51:47 +02:00
Marco Martin
6eba438a89 PlasmaCore.Theme is registered by the inport
no more need to declare it every time -> memory saving
2011-10-30 17:53:20 +01:00
Marco Martin
f32fc24694 use IconLoader 2011-10-29 21:41:45 +02:00