Marco Martin
b794f94286
draw attached ToolButtons in ButtonRow/Column
...
but only if the theme composes over borders (needed to be pixel perfect)
if the toolbuttons are not flat and if the ButtonRow is large enough
2012-10-14 20:05:40 +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
86ecacf2a4
fix easing assignment
2012-10-12 14:33:26 +02:00
Marco Martin
795320af25
fix unresolved objects
2012-10-12 14:33:26 +02:00
Marco Martin
9827cd84cc
fix TypeError
2012-10-12 14:33:26 +02:00
Marco Martin
c89e68ff12
check if the default anchors are applicable
2012-10-12 14:33:26 +02:00
David Edmundson
4644711a33
Fix padding to the left and right of text in a textField
...
A TextField already had (implicit) padding to the top and bottom of the text to the frame
this was added to the left and right side as matching margins look cleaner
REVIEW: 106797
2012-10-12 02:27:36 +01:00
Marco Martin
6209ca2527
proper icon margins
2012-10-11 13:30:24 +02:00
Marco Martin
456db61aa0
only consider actual tabbuttons
2012-10-11 12:42:02 +02:00
Marco Martin
9f0d2338b1
never draw disabled flat buttons
2012-10-11 12:32:58 +02:00
Marco Martin
e2f90d95d2
make the current tab cycle under wheel
2012-10-11 11:47:58 +02:00
Marco Martin
e7a5a5fbcf
correct cuttong of the button in case of scrolling
2012-10-11 11:40:42 +02:00
Marco Martin
c56534ba47
proper tab button size
2012-10-11 11:15:36 +02:00
Marco Martin
8d327acc6f
A bit of snap before scolling the layout
2012-10-11 11:09:07 +02:00
Marco Martin
bc631e4467
try to keep current tab in the middle if possible
2012-10-11 10:37:12 +02:00
Marco Martin
d8116afac3
round only when square
2012-10-10 18:47:56 +02:00
Marco Martin
78a87b1da3
always use round buttons on toolbuttons without text
2012-10-10 18:35:06 +02:00
Marco Martin
b50652c805
use hint-scrollbar-size for size
...
support themes without scrollbar arrows
2012-10-09 19:40:17 +02:00
Aleix Pol
fa82e27049
Forward-port fix from master
...
Don't ever change the view position value from the scrollbar if it's
in non-interactive mode
2012-10-09 16:21:21 +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
Luiz Romário Santana Rios
0882ba62f7
Fix the documentation of TextArea plasmacomponent
...
REVIEW: 106703
2012-10-04 21:20:32 -03:00
Marco Martin
0722c3cf69
ensure selected tabs are visible
2012-10-04 20:14:26 +02:00
Luiz Romário Santana Rios
1ed4f894cc
Fixed horizontalAlignment and verticalAlignment properties of TextArea
...
REVIEW: 106702
2012-10-03 21:06:34 -03: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
47bd296058
flip wheel up/down behavior
2012-10-02 22:30:16 +02:00
Marco Martin
e0598f1489
elide text if long
2012-10-02 22:00:19 +02:00
Marco Martin
fca4a9c68b
support mouse wheel switching
2012-09-26 20:09:46 +02:00
Marco Martin
23fbdc089a
fix in case some tab is invisible
2012-09-26 18:16:17 +02:00
Marco Martin
2f0fce8628
scroll arrows when there are too many tabs
2012-09-26 17:45:29 +02:00
Marco Martin
faccd995e2
ensure a tab is selected
2012-09-13 13:19:29 +02:00
Marco Martin
322bf6ab6c
round toolbuttons when not flat and no text
2012-09-10 22:11:15 +02:00
Marco Martin
c3130c7066
fix interaction ScrollArea/SectionScroller
...
fix the behaviour of the interaction between ScrollArea and SectionScroller, both in touch and desktop cases
make the margins correctly update based wether the scrollbar is actually visible
2012-09-05 18:15:59 +02:00
Marco Martin
8276343bcf
Merge branch 'master' into plasma/mart/PageRow
2012-08-17 15:34:50 +02:00
Marco Martin
dc424465d8
proper size hints for tab buttons
2012-08-17 15:34:17 +02:00
Aleix Pol
e8ef093ea8
Also regenerate the value pixmap when the height changes
...
It could generate a visual glitch if the program plays with the bar's height.
Thanks David Edmunson for noticing :)
REVIEW: 105966
2012-08-16 01:53:15 +02:00
David Edmundson
650258aa88
Fix spelling typo in comment
2012-08-14 18:05:57 +01:00
Marco Martin
3d2083be1a
Merge branch 'master' into plasma/mart/PageRow
2012-08-14 15:54:47 +02:00
Gregor Tätzner
91e67c8304
Merge branch 'master' of git://anongit.kde.org/kde-runtime
2012-08-10 19:31:42 +02:00
Gregor Tätzner
f2eab7768b
Calculate implicitWith wide enough so that items don't have to ellide.
...
REVIEW: 105742
2012-08-10 19:27:37 +02:00
Marco Martin
533902e9d4
Merge branch 'master' into plasma/mart/PageRow
2012-08-10 18:43:46 +02:00
Marco Martin
3ceb300f6f
better calculation of tile widths
2012-08-10 18:42:16 +02:00
Aleix Pol
b52080ff78
Fix some ProgressBar visual glitches
...
Make sure the visualization takes all the available space
Update the visualization elements whenever the background and the value change
REVIEW: 105966
2012-08-10 18:16:26 +02:00
Marco Martin
a3aca692fe
Merge branch 'master' into plasma/mart/PageRow
2012-08-10 11:43:45 +02:00
Marco Martin
96e436f641
disable mouseOver on touch
2012-08-10 11:42:53 +02:00
Aleix Pol
86ea6dfe4c
Reduce opacity of the ListItem's background decoration on hovering.
...
It improves the GUI feedback when using the components with a mouse.
REVIEW: 105939
2012-08-10 11:32:57 +02:00
Marco Martin
934aff451c
Merge branch 'master' into plasma/mart/PageRow
2012-08-10 11:06:27 +02:00
Marco Martin
f6fa41f3af
a central place to enable/disable mouseover
...
and eventually other things
this in the future should become something that can change dynamically in theme, but for now can already avoid quite some code duplication
2012-08-10 11:02:04 +02:00
Marco Martin
1cbd32e9f9
use a single js engine implementation between row and stack
2012-08-08 14:53:04 +02:00
Marco Martin
4d2d32db58
clean the code
2012-08-08 14:25:28 +02:00
Marco Martin
c71f8f509f
checked property works also without tabgroup
2012-08-02 13:11:25 +02:00
Marco Martin
dcfe086014
grey out when disabled
2012-08-02 12:59:56 +02:00
Aleix Pol
f3e607c2cf
Improve response and behavior in ScrollBar
...
When contentHeight and contentY change at the same time, we got to
some weird states where the scrollbar would trigger a change in the
Flickable positioning that wasn't triggered by the user, this should
be fixed now.
Also don't use the handle position to move the Flickable scrolling
if the scrollbar is disabled or non-interactive. It shouldn't be needed
now but it helps keeping the complexity to a minimum.
REVIEW: 105808
2012-08-01 13:36:22 +02:00
Marco Martin
6dd904d239
delay update from handle
...
we must wait the handle updated its size too for being able to correctly update range position from handle position
2012-08-01 11:18:02 +02:00
Aleix Pol
8cdf691438
Don't warn when using a page without toolbar
...
Check if the tools are null before before using the toolbar.
REVIEW: 105803
2012-07-31 15:05:12 +02:00
Marco Martin
4a1fa1a491
don't use bindings but a connection
...
to update position and value, removes binding loop warnings
2012-07-31 10:36:25 +02:00
Reza Shah
b14b2ed86d
Merge branch 'KDE/4.9'
2012-07-17 21:18:02 +09:00
Marco Martin
7fb69d6f42
slide in the expected direction
...
BUG:302080
FIXED-IN:4.10
2012-07-13 16:07:07 +02:00
Johannes Tröscher
796211bbd5
Plasma qml-Components ToolButton: change text-color on hover more fluently
...
REVIEW: 105375
REVIEWED-BY: troscher aseigo
2012-06-28 19:40:33 +02:00
David Edmundson
2030c05cf1
Remove text scaling on ToolButton
...
BUG: 302077
Reviewed-by: Marco Martin
2012-06-23 03:19:47 +01: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
Marco Martin
83946f2b66
respect the hint-bar-stretch hint
2012-06-21 16:02:08 +02:00
Johannes Tröscher
7d2b4427ba
plasma qml components: highlight dualstate button also on focus
...
highlight dualstate button also on focus + codecleanup in dualstate button
REVIEW: 105232
2012-06-20 20:09:34 +02:00
Martin Klapetek
62ddf21fb6
Don't allow overscrolling views by clicking scrollbar arrows
...
REVIEW: 105268
2012-06-16 14:57:16 +02:00
Martin Klapetek
7ec06767e2
Fix shadowing of slide's handles and use vertical svg elements for vertical slides
...
REVIEW: 105269
2012-06-16 14:57:16 +02: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
David Edmundson
01b7135299
Make sure in slider the background moves at the same speed as the handle when changing value.
...
This fixes UI artifacts.
REVIEW: 105236
2012-06-13 22:51:20 +01:00
David Edmundson
ef03fb1c56
fix a bug where the value would not be changed whilst dragging, only when released.
...
Fixes reported issues in battery applet
BUG: 301575
REVIEW: 105236
2012-06-13 22:51:20 +01:00
Aurélien Gâteau
fc0f700c9d
Fix text colors on TabButton and ToolButton
...
When the widgets use the button background frame, use buttonTextColor.
When they do not use any background frame, use textColor.
Avoids unreadable text with Oxygen
REVIEW: 105163
2012-06-09 10:12:05 +02:00
Aurélien Gâteau
0aaf3f4760
Use the same text color as C++ Plasma::LineEdit
...
Plasma::LineEdit uses the button text color for its text. Do the same
in PlasmaComponents.TextField to avoid white text on white background with
Oxygen theme.
Also use button text color for PC.TextArea because it uses the same
background frame as PC.TextField (P.TextEdit, its C++ equivalent, does not
have any background frame)
REVIEW: 105159
2012-06-09 10:12:05 +02:00
Sebastian Kügler
e27c827fba
Mention enabled property in ToolButton's APIDOC
2012-06-08 12:49:36 +02:00
Sebastian Kügler
ba689faf16
Fix warnings in color assignments
2012-06-05 03:31:04 +02:00
Marco Martin
c049c116cf
integer number of rectangles for progressbar too
2012-05-28 14:49:36 +02:00
Marco Martin
d3d8107e88
reset position when not indeterminate anymore
2012-05-28 14:49:35 +02:00
Sebastian Kügler
bcd6a0cc55
Fix text field color
2012-05-21 19:40:23 +02:00
Sebastian Kügler
f3dff31f05
Fix password character
2012-05-21 19:40:23 +02:00
Sebastian Kügler
7024329085
Use black as text color in TextField and TextInput
...
It seems that there's not a single theme out there which properly sets
viewTextColor. The background of textedits is white, so the text has to
be black. On Air(-mobile) this is not a problem, since the text is black
anyway, on dark themes (which set the text color to white), text simply
isn't visible.
We'll have to look into how themes implement viewtextcolor, should
probably fix the themes instead of the components, but this makes it
work until we do.
2012-05-21 19:40:23 +02:00
Aurélien Gâteau
cdba0a2222
Fix keyboard navigation in TabBar
2012-05-15 17:24:30 +02:00
Dennis Nienhüser
17f5b499bb
Width and height are implicitly set by the anchors.
2012-05-10 19:33:33 +02: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
Dennis Nienhüser
5453bbc801
Fix mistyped enum values.
...
Please test as code using it might behave differently now (menus
aligned left before while horizontally centered on the parent now)
2012-05-09 00:13:26 +02:00
Marco Martin
14122d0199
hide the tools that have long been dismissed
2012-05-03 14:27:18 +02:00
Marco Martin
b529412312
ensire the switch is rendered correctly
2012-04-27 15:47:58 +02:00
Marco Martin
856b001d73
respect svg size for handle size
2012-04-27 15:15:32 +02:00
Sebastian Kügler
8a90947a33
Fix reference error in slider
2012-04-27 00:36:26 +02:00
Aurélien Gâteau
2b8a7b32c5
Toolbutton: Fix layout issues
...
- Improve spacing between icon and text
- Do not enforce a minimum width
Having a minimum width does not make much sense for a ToolButton:
1. It should aim at using the minimum amount of horizontal space when
used in a ToolBar.
2. It looks unbalanced when used with an icon because the content is
flushed to the left, leaving a large amount of white-space on the right.
REVIEW: 104735
2012-04-26 15:12:03 +02:00
Aurélien Gâteau
90bddbf61e
ToolButton: Improve keyboard navigation support
...
Use the hover frame to indicate focus, do not give focus if keyboard
navigation is not defined.
REVIEW: 104727
2012-04-26 09:21:02 +02:00
Aurélien Gâteau
47d42a6d36
TextField: support for passwordCharacter
...
Use a more modern password character, and expose it to the outside world
REVIEW: 104726
2012-04-26 09:21:02 +02:00
Aurélien Gâteau
9b04155a92
TextField: add keyboard navigation support
...
REVIEW: 104722
2012-04-25 17:45:54 +02:00
Marco Martin
263a184049
preselect the first item if not told otherwise
2012-04-17 14:56:54 +02:00
Marco Martin
021d196ab8
don't reset checked button
2012-04-17 11:21:01 +02:00
Marco Martin
a7effaa7c4
respect an hardcoded default checked button
2012-04-17 10:56:51 +02:00
Marco Martin
091bde342d
remove all signs of updateValueWhileDragging
2012-04-05 21:07:42 +02:00
Viranch Mehta
11991bdd14
QML scrollbar: Timeout the scroll timer as soon as the arrow is pressed. This avoids getting no reaction when arrow is clicked very quickly.
2012-04-04 16:21:50 +05:30
Viranch Mehta
021ca8c08a
Fix the SVGs in QML Scrollbar component:
...
* The hover and non-hover arrow images in vertical scrollbar are the same.
* The pressed/hover/normal states of down/right arrows are connected to mouse area of up/left arrows.
* The mouse areas of the arrows do not have hoverEnabled property set to true. This is required to use their containsMouse property.
REVIEW: 104402
2012-04-04 15:40:23 +05:30
Aaron Seigo
b098deb453
improve docu
2012-04-03 13:27:39 +02:00
Daker Fernandes Pinheiro
5b452bfb9a
Change default value of enabled property in ListItem Plasma Component
...
Also adds documentation for the enabled property.
Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
2012-03-27 11:17:36 -03:00