Marco Martin
428e4736b6
add margins from svg
2014-08-14 12:43:42 +02:00
Marco Martin
7e71e0bf95
comments++
2014-08-14 12:36:46 +02:00
Marco Martin
f9d64e2b09
try with new documentation
2014-08-13 19:19:23 +02:00
Marco Martin
99cc40053f
make old contentMaxWidth/height props kinda work
2014-08-13 19:14:05 +02:00
Marco Martin
5961bcaaa7
add a focus effect
2014-08-13 18:55:08 +02:00
Marco Martin
877c2a3325
use the background framesvg only in TextAreaStyle
2014-08-13 18:52:50 +02:00
Marco Martin
76d24e8fe2
beginning of official style for TextArea
...
for now it copies ScrollViewStyle.. the style will have to be an import as well
2014-08-13 18:41:57 +02:00
David Edmundson
d4c9c20144
State inheritance from QtQuick / QtQuick.Controls modules
2014-08-13 12:16:33 +02:00
Marco Martin
1585c9b26a
be aware of dpi changes
...
BUG:338093
2014-08-07 17:05:55 +02:00
Marco Martin
712de91021
leave space for the clear button
2014-08-04 19:44:34 +02:00
Marco Martin
d66e62116b
reintroduce all removed properties and methods
...
reintroduced as dummy, so existing stuff doesn't break but gets a warning
2014-08-04 19:28:30 +02:00
Marco Martin
b93132fca7
use QtControls for the textField
2014-07-28 19:55:32 +02:00
Marco Martin
0aaf7db0e4
use QtControls.ToolButton
2014-07-25 18:51:12 +02:00
Marco Martin
f2a1824c31
proper colors for the labels and icons
2014-07-25 15:43:17 +02:00
Marco Martin
957eab570e
support for attached buttons
2014-07-25 15:36:14 +02:00
Marco Martin
c8cb89faa9
support for round buttons
2014-07-25 14:40:13 +02:00
Marco Martin
a3266857ad
initial port of ToolButton
...
wonder if will be possible to share something with Button,
but ToolButton is way more complicated
2014-07-25 14:21:05 +02:00
Marco Martin
05f4a44059
use implicitWidth as label minimum width
2014-07-25 12:54:27 +02:00
Marco Martin
dbbb8056f5
use the minimumWidth gave by the Layout
2014-07-25 11:26:41 +02:00
Marco Martin
d29b3f051d
don't mix anchors and layouts
2014-07-25 11:20:26 +02:00
Marco Martin
7538c3292c
don't compute two times the same thing
2014-07-24 20:16:46 +02:00
Marco Martin
0c2138916e
use RowLayout
2014-07-24 20:11:31 +02:00
Marco Martin
b538a1dca9
override iconSource for compatibility
2014-07-24 19:19:26 +02:00
Marco Martin
9301163142
support checked buttons
2014-07-24 18:30:55 +02:00
Marco Martin
2e06bb3214
create arrow on demand, layout it correctly
2014-07-24 18:29:48 +02:00
Marco Martin
9b06cbc392
style doesn't depend from control properties
2014-07-24 17:47:19 +02:00
Marco Martin
a39c8898b3
don't redefine iconSource
2014-07-24 17:38:13 +02:00
Marco Martin
9365123152
fix minimumWidth/height
...
don't try to access undefined properties
make the style and the control as independent as possible
2014-07-24 17:11:19 +02:00
Marco Martin
02c6bba518
initial port of Button to QtControls
...
still loads of layout problems
2014-07-24 15:58:14 +02:00
Lukáš Tinkl
3f07e41e2a
i18n style fix
2014-07-18 22:36:42 +02:00
Frederik Gladhorn
445331bba8
Improve TextField accessibility
...
Qt Quick accessibility already picks up the text automatically. Instead
set the name (which is a descriptive element) to the placeholder text
which is more descriptive of the element. Otherwise Orca will read the
text twice.
2014-07-09 09:57:23 +02:00
Frederik Gladhorn
5199c9778a
Fix accessible roles
2014-07-08 21:46:13 +02:00
Frederik Gladhorn
2f93b7f764
Add Accessibility properties
...
Also clean up increase and decrease actions for Slider a tiny bit.
2014-07-08 10:49:16 +02:00
Marco Martin
ffcc0d43d8
use correct highlight color
...
CCBUG:336775
2014-06-27 11:11:24 +02:00
Marco Martin
655e7fcc0d
base on tabbar minimum width to show scrollbuttons
...
be more deterministic and now usually kickoff never shows the
scroll buttons
BUG:335392
2014-06-24 16:35:50 +02:00
Marco Martin
2c9103ee19
position the slider bar at margins
...
is a way in between the verious fix attempts of 332587
BUG:336448
CCBUG:332587
2014-06-19 20:57:49 +02:00
Marco Martin
b755bd1e32
ColorGroup is part of Theme
2014-06-18 19:22:02 +02:00
Kai Uwe Broulik
76175fafa6
Handle mouse wheel events in PlasmaComponents.Slider
...
REVIEW: 118753
2014-06-16 20:07:16 +02:00
Marco Martin
01fc75aa78
more precise actionbutton
...
specific 22x22 graphics and ensure the graphic elements always have an even size
BUG:335547
2014-06-16 19:07:58 +02:00
Marco Martin
992b64a167
small workaround to show all the highlight borders
...
BUG:336210
2014-06-16 15:57:45 +02:00
Kai Uwe Broulik
60ddc9f25d
Use RotationAnimator for BusyIndicator
...
This makes the animation run directly on the scene graph to not stress the CPU that much
REVIEW: 118769
CCBUG: 311799
CCBUG: 336274
2014-06-15 22:28:21 +02:00
Marco Martin
05d71947c8
svgColorGroup -> colorGroup
2014-06-13 15:40:47 +02:00
Marco Martin
09d0c44267
leave a bit of room around headings
...
make sure heights are integer
CCBUG:336123
2014-06-13 11:43:41 +02:00
Marco Martin
fa95680a51
use color groups instead
...
the Text and Background colors can become buttonText or ButtonBackground
based on the svg property ColorGroup
2014-06-09 19:35:58 +02:00
David Edmundson
73bb587ee9
Set catalog name in QueryDailog
...
REVIEW: 118557
2014-06-05 13:21:18 +02:00
Marco Martin
051dabae5e
warnings--
...
BUG:335522
2014-06-03 15:57:42 +02:00
Marco Martin
80195aa149
check for currentTab
2014-06-03 14:29:48 +02:00
Aleix Pol
1419eea367
Fix warning on ToolButton
...
If there's no parent for the ToolButton, always show all borders.
2014-05-29 18:39:31 +02:00
Marco Martin
f7adc059ee
warnings--
...
BUG:335488
2014-05-29 12:14:09 +02:00
Marco Martin
a8f73abfbe
warning--
...
BUG:335393
2014-05-28 12:32:57 +02:00
Antonis Tsiapaliokas
7916c9d766
Fix the PlasmaComponents.Sheet
...
*location property is now using the PlasmaCore.Types
*DialogStatus => PlasmaCore.DialogStatus
*windowFlags property => flags property
2014-05-27 17:56:37 +03:00
Marco Martin
66d65f1b12
QML warnings--
2014-05-27 16:38:14 +02:00
Marco Martin
524ff23f25
add support for tooltips
...
use qwidget tooltips, not plasma ones
BUG:335131
2014-05-22 12:18:30 +02:00
Marco Martin
ab27f8b945
use view text color
2014-05-22 11:44:26 +02:00
Marco Martin
357647577f
use view color for text in textfield
...
BUG:333837
2014-05-22 11:42:20 +02:00
David Edmundson
b06fe8301c
Calculate implicitWidth of both button and toolbutton properly
2014-05-21 21:15:18 +02:00
David Edmundson
8b86279298
Match toolbutton sizing behaviour with button
...
Removing eliding in Toolbutton, this causes a binding loop as the
sizeHint is dependent on the paintedSize, which will change if you
elide.
In all cases we are trying to make toolbuttons fit the contents, so this
actually got in the way of that.
2014-05-21 20:07:36 +02:00
Martin Klapetek
5aa1e18f97
Elide Components' Button label
...
Otherwise the label can get out of the button boundaries. Tested with
RTL text too, it's elided properly as the elipsis switches to Left on
its own.
Reviewed-by: Marco Martin
BUG: 334867
2014-05-21 17:46:04 +02:00
Marco Martin
bb10131fd4
support inverted layout
2014-05-21 15:03:37 +02:00
Marco Martin
944c1549ae
avoid half pixels
2014-05-02 15:43:55 +02:00
Marco Martin
cee9c928e3
simplify theme
...
add an hint for the progressbar size, throw away the old elements legacy of pre-components
2014-05-02 15:39:08 +02:00
Marco Martin
90c8dbc255
simplify logic a lot
2014-05-02 14:55:43 +02:00
David Edmundson
97d6ba2dab
Add a ComboBox to PlasmaComponents
...
REVIEW: 117798
2014-04-29 16:24:22 +02:00
Sebastian Kügler
670135db50
Fix color in TextField and TextArea
...
viewTextColor is wrong here, we have to use buttonTextColor. This
follows Plasma 1, and makes texts in fields and areas in white-on-black
themes work.
BUG:333837
2014-04-29 00:24:09 +02:00
Davide Bettio
ac1e50d3aa
TextArea.qml: Add backgroundVisible property ( http://qt-project.org/doc/qt-5/qml-qtquick-controls-textarea.html#backgroundVisible-prop ) so it will be possible to use this componenet to write Notes plasmoid.
...
Signed-off-by: Davide Bettio <bettio@kde.org>
2014-04-22 11:35:55 +02:00
Jan Grulich
25bb220724
Propagate containsMouse property and move the paddingitem to the mousearea
...
Reviewed by Marco Martin on irc
2014-04-09 16:01:23 +02:00
Marco Martin
d68bd29e50
binding loop--
...
after repeateddly changing the orientation no elements go crazy size wise
CCBUG:332701
2014-04-07 16:53:17 +02:00
Marco Martin
2f10450c17
make the animate property do something
...
BUG:332884
CCBUG:332869
2014-04-03 18:08:13 +02:00
Marco Martin
2fd322536b
text areas use textViewColor
2014-04-01 17:18:12 +02:00
Marco Martin
91cb51e3c3
fix behavior of inverted sliders
...
BUG:332688
2014-03-28 11:51:19 +01:00
Marco Martin
f3aed6ac4a
less groowe width rather reposition of handle
...
BUG:332587
2014-03-28 11:43:51 +01:00
Sebastian Kügler
84a212469f
Disable elide in TabButton
...
This messes up the fontmetrics needed to size the tab button. Before,
the labels would be elided no matter what.
This is more a band-aid than a real fix, we'll need to investigate how
we can make the sizing work correctly, but at least it "unscrews" the
layout of all of our tabbars.
2014-03-26 00:13:54 +01:00
Marco Martin
91642b0868
qtextracomponents->kquickcontrolsaddons
2014-03-25 17:10:25 +01:00
Marco Martin
1415c07d4b
the bounds of the slider are centered on the handle
...
BUG:332587
2014-03-25 15:30:00 +01:00
Marco Martin
0205aa1ec6
if not flat, use button color
...
BUG:332138
2014-03-20 17:55:22 +01:00
Marco Martin
50b5c62d81
fix highdpi mode for slider and progressbar
...
progressbar looks like still needs some serious work
2014-03-07 17:59:33 +01:00
Marco Martin
f4daf5f7d9
export location
2014-03-05 20:58:42 +01:00
Marco Martin
6fe147f4d7
new graphics for tabbars
2014-03-05 20:14:52 +01:00
Marco Martin
9cac91b652
try harder to avoid scroll buttons
...
also event copmpress the relayout
2014-03-03 22:24:05 +01:00
Marco Martin
9c600c5d68
add a new property in TabBar: tabPosition
...
it makes the tabbar eventually vertical and appearing oriented differently towards the content
possible values:
Qt.TopEdge (default)
Qt.LeftEdge
Qt.RightEdge
Qt.BottomEdge
2014-03-03 19:43:13 +01:00
Marco Martin
c009c7f0cd
concept of fixedMargins
...
sometimes we need to know what the margins are of a framesvg, even if some of them are disabled
2014-02-21 21:13:12 +01:00
Marco Martin
4a0be9acd9
Revert "Slider scales with devicePixelRatio"
...
This reverts commit 4b0e828e29
.
2014-02-21 19:41:31 +01:00
Sebastian Kügler
4b0e828e29
Slider scales with devicePixelRatio
...
Conflicts:
src/declarativeimports/plasmacomponents/qml/Slider.qml
2014-02-21 19:28:34 +01:00
David Edmundson
e82b1dab9d
Enable Plasma Controls for tab-navigation
2014-02-06 12:35:32 +01:00
David Edmundson
a3a434ced5
Upgrade all components to use QtQuick2.1
...
This has some new features like activeFocusOnTab which are awesome.
2014-02-06 12:16:43 +01:00
David Edmundson
b97e726ae2
Set minimumWidth of button to actually show the text
...
The minimumWidth of a plasma button is based on the paintedWidth
of the text item. There is no way to work out the correct width it
should be if we set the text to elide.
(except for the hack of using a hidden fake text item)
We should always fit contents. This won't cause any problems unless a
developer has a broken layout, at which point that should be fixed
REVIEW: 115500
2014-02-05 17:00:34 +01:00
Sebastian Kügler
09564783a3
Fix wrong property name
2014-02-04 03:15:01 +01:00
Sebastian Kügler
1d0c41f936
Fix animations with animations disabled
...
This may sound a bit weird, but we can't just switch off everything, as
in some cases, the animation is not just eye-candy, but carries
important semantics of the UI -- examples are BusyIndicator and
ProgressBar. Behaviour for those is restored.
2014-02-04 01:32:12 +01:00
Sebastian Kügler
86e458cdd0
Normalize animations in PlasmaComponents
2014-02-04 00:16:55 +01:00
Sebastian Kügler
27eae008d6
250ms animations become units.longDuration
2014-02-03 18:56:32 +01:00
David Edmundson
9de921e34d
Warnings-- if modelData.seperator is not set
2014-01-29 18:39:20 +01:00
Sebastian Kügler
cc7bd8e11e
Port from theme iconsize to units.iconSizes.*
2014-01-23 00:24:38 +01:00
David Edmundson
d200bd0d16
Add a new component ModelMenu
...
This is a wrapper round ContextMenu that allows one to populate
the menu items from a model
REVIEW: 114925
2014-01-10 12:28:29 +01:00
Sebastian Kügler
e9a43b165b
Quicker animation in pagestack
2013-12-28 06:57:57 +01:00
Sebastian Kügler
682affabf8
Allow to switch off pagestack transitions
2013-12-28 06:44:58 +01:00
Marco Martin
4f3228ab44
fix rendering issues
2013-12-27 11:23:16 +01:00
Sebastian Kügler
462cfdcdc7
Port from activateWindow to requestActivate
2013-12-17 03:05:16 +01:00
Sebastian Kügler
79ad02c244
Out of bounds checking for array access
...
This fixes a crasher in v4, without backtrace. Trying to reproduce it
in a simpler case, but this at least makes PageStack work.
2013-10-28 04:20:52 +01:00
Marco Martin
cdc778f417
test applet for config uis
2013-09-11 17:39:09 +02:00
Marco Martin
abbe19722f
use native text rendering
2013-09-06 13:43:19 +02:00
Marco Martin
86a2847c84
revert bd6927138f
...
apparently we can't tap into the valuetype conversion of QFont at all
theme.mSize(font) it is
2013-08-28 14:07:07 +02:00
Sebastian Kügler
19c4b555d5
Less warnings in TabButton
2013-08-27 04:27:28 +02:00
Andreas Cord-Landwehr
24c60ed48c
Fix button width computation when height is set.
...
This commit fixes the button label overlapping over the button borders
when the button height is manually set to a value bigger than the
icon's smallsize.
Review done by notmart on IRC.
2013-08-22 21:14:42 +02:00
heena mahour
b17ca9f007
Merge branch 'heenamahour/gsoc' of git://anongit.kde.org/plasma-framework into heenamahour/plasma2
2013-08-17 08:15:01 +00:00
heena mahour
3fb515ca6d
Added margin Hints to highlight and indent Desktop.qml
2013-08-16 15:36:32 +00:00
Sebastian Kügler
2256c5ad1c
Fix text elide in button and toolbutton
...
Also use a Plasma.Label, instead of doing it on our own
2013-08-14 05:46:55 +02:00
Marco Martin
c0f3730686
forward port the scrolling fixes of plasma1 vers
2013-07-16 19:30:25 +02:00
Marco Martin
5b0b17f86a
respect contents hints
2013-07-01 18:21:29 +02:00
Sebastian Kügler
057d592a1a
Ensure the busyindicator is square
2013-06-17 15:22:15 +02:00
Marco Martin
7a7914126e
Switch is a CheckBox on desktop
...
the sliding Switch is touch specific
2013-05-25 12:50:32 +02:00
Marco Martin
c3e2a6e671
smaller sectionscroller
2013-04-05 11:08:30 +02:00
Sebastian Kügler
cbe0d39b99
add spacing in buttonrow and column
2013-03-27 22:27:22 +01:00
Sebastian Kügler
9c6b7539bc
fix namespacing in ContextMenu
2013-03-26 01:12:04 +01:00
Sebastian Kügler
a3b39a8321
All imports are now 2.0
...
This patch changes the version numbers of the plugins to 2.0. This
includes the previously 0.1 plasmacomponents, extras and
qtextracomponents. DragandDrop, which was at 1.0 is now also at 2.0.
Also, all the QML code has been changed to import the 2.0 plugins.
As a side-effect, we now share a version number with QtQuick 2.0 now.
2013-03-13 02:34:53 +01:00
Sebastian Kügler
4cfc6863af
change all 0.1 imports to 2.0 in qml files
2013-03-13 01:56:19 +01:00
Marco Martin
83baa3691e
theme.defaultFont.mSize api changed
...
QML2 has QFont directly binded, but doesn't have mSize, so move it to Theme
theme.defaultFont.mSize to theme.mSize(theme.defaultFont)
2013-03-11 17:06:05 +01:00
Marco Martin
e6eae78f06
propagate size hints
2013-03-07 12:01:29 +01:00
Sebastian Kügler
1a31c22e57
debug--
2013-03-07 02:42:13 +01:00
Sebastian Kügler
112fb3f78a
Fix API
2013-02-27 14:54:55 +01:00
Sebastian Kügler
00c93c186d
Test code for placement
2013-02-22 03:43:09 +01:00
Sebastian Kügler
006eb99b55
Make dialog-in-separate-window kind of work
...
inlining is still broken, disabled right now. popupPosition has moved
into PlasmaCore.Dialog internally, so don't handle it in QML.
2013-02-22 02:18:16 +01:00
Sebastian Kügler
6461683f58
Some work on PlasmaComponents.Dialog
...
Still broken in all kinds of ways, buttons, geometry, etc.
2013-02-20 06:56:48 +01:00
Sebastian Kügler
305e711c8c
Fix namespace of RangeModel in Slider and ProgressBar
...
Now those components work as well.
2013-02-20 05:27:11 +01:00
Sebastian Kügler
4375b61759
Add module identier to qmldirs
2013-02-20 02:09:23 +01:00
Sebastian Kügler
4683f10dcb
Fix namespacing in Sheet
2013-02-20 01:36:22 +01:00
Sebastian Kügler
55a9091992
Use Item as type for ToolBar, apparently we can't use our own defined types here anymore
2013-02-20 01:36:08 +01:00
Sebastian Kügler
d3ce808a41
Fix namespacing in SectionScroller
2013-02-20 01:35:27 +01:00
Sebastian Kügler
af1ca41261
Fix namespacing in PageStack
2013-02-20 01:34:57 +01:00
Sebastian Kügler
614259cf69
Fix namespacing in Dialog
2013-02-20 01:34:26 +01:00
Sebastian Kügler
0900460842
Fix namespacing in SelectionDialog
2013-02-20 01:34:07 +01:00
Sebastian Kügler
bb842b64d2
Fix namespacing in QueryDialog
2013-02-20 01:33:57 +01:00
Sebastian Kügler
b8ccb0ded6
Fix namespacing in CommonDialog
2013-02-20 01:33:43 +01:00
Sebastian Kügler
59e65cbaee
Fix import in ButtonColumn
2013-02-20 01:33:01 +01:00
Sebastian Kügler
fec80c2c96
Remove activeFocus property, it's moved up into one of its parents
2013-02-20 01:09:08 +01:00
Sebastian Kügler
36564796d0
Fix namespacing for RangeModel in ScrollBar
2013-02-20 01:08:52 +01:00
Sebastian Kügler
4e82cc5d3d
TextField polishing
...
- remove call to closeSoftwareInputPanel before calling it, it's removed
from TextInput in commit
3721de405e
I suppose it now "just works", but will test. The API is not there,
anyway, so it's safe to remove.
- clearbutton only shows when enabled
- clearbutton rightmargin
2013-02-20 00:26:33 +01:00
Sebastian Kügler
48cd938931
do not override TextField.activeFocus property
...
In QtQuick2, we cannot override a property anymore. In the case of
TextField, this means we'll have to rely on Qt for focus handling.
2013-02-19 22:32:41 +01:00
Sebastian Kügler
7dfe957e66
The Big Move
...
All cpp code moves into the src/ subdirectory, as the Frameworks policy
suggests.
Directory structure should now be in line with other, future frameworks.
2013-02-14 17:17:12 +01:00