Commit Graph

1106 Commits

Author SHA1 Message Date
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
Giorgos Tsiapaliokas
22ef1f9318 add some documentation to the Fallback component
REVIEW: 106716
2012-10-11 11:23:11 +03: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
Aaron Seigo
c42d979a56 turns out we have to set the role names constantly to make sorting actually work
even just setting the sort/filter roles is not enough. role names must also be set again!
gaaaah. thankfully this seems to be very fast, though would still be nice to avoid it if
possible somehow.

CCBUG:308101
2012-10-09 11:30:32 +02:00
Aaron Seigo
19a7d82ed9 dataengine based models set their roles when setting the data, so respond to that
syncRoleNames is fast (and faster now that we check that the role names actually changed)
but it may be nicer to find a more efficient way in future than checking the role names
on all / any data changes. in fact, the documentation for QAbstractItemModel::setRoleNames says:

"This function must be called before the model is used.
 Modifying the role names after the model has been set may result in undefined behaviour."

BUG:308101
2012-10-09 11:21:14 +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
Aaron Seigo
f5275fc57a the model can be null, be careful with that (and use emit for signals!) 2012-10-08 14:28:39 +02:00
Aaron Seigo
4e78f327bb actually sync the roles and only sort when we have an actual model already 2012-10-08 14:16:16 +02:00
Marco Martin
cbd6bc5758 Label and Icon roles 2012-10-08 13:53:16 +02:00
Marco Martin
0dc3b067d7 revert use of display and decoration
there can be only one name per role
2012-10-08 13:42:08 +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
Marco Martin
8836f476ef add hover events 2012-10-04 19:21:48 +02:00
Jacopo De Simoi
7a1f75af9b Remove noop check in setSortRole
The noop check m_sortRole == role has to be removed
because the hash table m_roleIds can change between two calls to
setSortRole (as it actually happens when resync the hash table).

Possibly one could perform a more clever check (i.e. adding some
m_invalidated flag which would override the check), but I am not sure it is
really worth it.

This fixes sorting issues in the Plasma Device Notifier

CCMAIL:notmart@gmail.com
2012-10-04 12:22:29 +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
a740f30925 more docs 2012-10-03 20:18:38 +02:00
Marco Martin
d4d6f11a8a imap also decoration/display to be consistent 2012-10-03 16:03:47 +02:00
Marco Martin
43846dde0e bind runnermodel in core 2012-10-03 15:55:11 +02:00
Marco Martin
95e5431610 move the runnermodel in core
the old plugin is still there for compatibility, however is discouraged to be used
2012-10-03 15:40:55 +02:00
Marco Martin
4540203aa1 never use onFooChanged on signal names
those are autogenerated slot names from fooChanged
2012-10-03 12:47:43 +02: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
Antonis Tsiapaliokas
e5eae2e36a Fix typo on kDebug message 2012-09-25 01:01:17 +03:00
Giorgos Tsiapaliokas
d14494d096 Make the fallback component more generic 2012-09-25 00:21:57 +03:00
Giorgos Tsiapaliokas
dde5cc7d6c Add the fallback component from the plasma-mobile repository 2012-09-24 21:54:26 +03:00
Marco Martin
d86b233464 avoid potential infinite recursions 2012-09-21 14:23:41 +02:00
Marco Martin
708be449c3 fix absolute screen position for menu position 2012-09-20 16:28:49 +02:00
Marco Martin
af189dff04 ensure the dialog is not out of workarea 2012-09-20 14:59:26 +02:00
Marco Martin
9d92b822aa support minimum/maximum/preferred sizes 2012-09-20 14:22:40 +02:00
Marco Martin
0e1021feb1 if is a dock, is on all desktops 2012-09-20 14:22:15 +02:00
Marco Martin
f4638e3438 avoid a first resize when a declarative item is assigned 2012-09-20 12:52:06 +02:00
Marco Martin
e9cee7f69c fix dialog default size 2012-09-18 18:07:11 +02:00
Marco Martin
e1c4125ac8 bigger 2012-09-18 12:02:04 +02:00
Marco Martin
d3d96826ac pay attention to not emit 2 signals per event 2012-09-17 16:27:38 +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
8e2b56b7a5 keep some margins 2012-09-07 21:51:23 +02:00
Marco Martin
22f536b6fd use qvariants for the samples
now addSamples actually works and doesn't crash
2012-09-07 19:14:13 +02:00
Marco Martin
5e2e0ceeac more sensible borders, listen onCanceled 2012-09-06 12:31:12 +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
Aleix Pol
b8b474068e Introduce the ColumnProxyModel
This component will let the developer access different parts of the
QAbstractItemModel implementations that are impossible to be accessed
from QML. i.e. columns!=0 and the tree branches.

REVIEW: 106272
2012-09-04 01:27:05 +02:00
Aleix Pol
24f7593788 Improve QAbstractItemModel integration in Plasma.Core QML components
Introduces QAbstractItemModel to QDeclarative when setting up
the plasma core components.

This way we don't have to cast to the type ourselves and produce proper
QML errors if the type is not correct. This happened with Plasma::SortProxyModel.

REVIEW: 106267
2012-08-29 17:35:56 +02:00
Aurélien Gâteau
5220782be1 Add unit tests for SortFilterModel 2012-08-28 18:11:06 +02:00
Aurélien Gâteau
ea427e54c2 Check if filter and model needs to be updated in setters 2012-08-28 18:10:35 +02:00
Aurélien Gâteau
bfcc27e01d Allow model to be set to 0 2012-08-28 18:09:19 +02:00
Aurélien Gâteau
91313b5eb5 Add notify signals for SortFilterModel.sourceModel and filterRegExp 2012-08-28 11:42:56 +02:00
Marco Martin
115aab2242 consider dialog margins for the size 2012-08-28 11:21:07 +02:00
Marco Martin
d17002f04e set the hotspot coherent with Dolphin 2012-08-27 19:51:04 +02:00
Marco Martin
8b89701731 Merge branch 'plasma/mart/PageRow' 2012-08-27 19:21:21 +02:00
Marco Martin
523314b4a9 create the delegate in the proper context 2012-08-27 19:20:07 +02:00
Marco Martin
724d96a81d Merge branch 'master' into plasma/mart/PageRow 2012-08-17 18:20:08 +02:00
Marco Martin
c761a1078e same fillMode behavior as Image 2012-08-17 18:19:14 +02:00
Marco Martin
6febf02fc3 Merge branch 'master' into plasma/mart/PageRow 2012-08-17 15:44:21 +02:00
Marco Martin
17a3b858a2 don't close when clicking on empty spots 2012-08-17 15:43:21 +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
Marco Martin
dbc758db7a showMenu(int,int) becomes open(int,int) 2012-08-14 23:11:16 +02:00
Gregor Tätzner
64781a6c3a Merge branch 'master' of git://anongit.kde.org/kde-runtime 2012-08-14 22:23:23 +02:00
Gregor Tätzner
4e2ee8c42e Make showMenu invokable from qml
I.e. necessary if we want to specifiy the position of a menu with
position coordinates from a MouseArea.
2012-08-14 22:19:37 +02:00
Martin Klapetek
5fce412fe0 Add missing NOTIFY signals and 'null' property to QPixmapItem and QImageItem
Reviewed-by: Marco Martin
2012-08-14 20:02:58 +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
Marco Martin
3989c9efe9 adjust sizing 2012-08-14 15:53:20 +02:00
Luís Gabriel Lima
db1096edce FrameSvgItem: Add notify signals
REVIEW: 105987
2012-08-12 15:12:44 -03: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
34287ac131 default to clip 2012-08-09 11:45:42 +02:00
Marco Martin
662687ce03 default to clip 2012-08-09 11:43:41 +02:00
Marco Martin
9b4c8ba95d use a scrollArea 2012-08-09 11:11:29 +02:00
Marco Martin
a2f6e62e6c move transitionDuration in internal 2012-08-09 11:00:45 +02:00
Marco Martin
94405dd7fb if the shadow image isn't found, use a svg 2012-08-09 10:56:54 +02:00
Marco Martin
413053b9b6 Merge branch 'master' into plasma/mart/PageRow 2012-08-08 20:52:55 +02:00
Marco Martin
8eb870321c add the timeFormat property 2012-08-08 20:51:15 +02:00
Marco Martin
3f0e47110d restore proper depth and z calculation 2012-08-08 20:03:49 +02:00
Marco Martin
785ffaa0fb Merge branch 'master' into plasma/mart/PageRow 2012-08-08 17:51:56 +02:00
Marco Martin
79b5734d90 emit clickedOutside when it should 2012-08-08 17:50:21 +02:00
Marco Martin
fefa42c951 clip only when animating 2012-08-08 15:02:18 +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
7695197517 always display at least one column 2012-08-08 11:36:30 +02:00
Marco Martin
01aaeae527 slightly better slide out animation, still not perfect 2012-08-07 22:52:14 +02:00
Marco Martin
6a45ac2de5 a PageRow component
derivate from the active addons PageRow and PageStack
2012-08-07 21:29:37 +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
0b9e172a88 remove the icon if an invalid value is passed 2012-08-01 13:25:55 +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
Marco Martin
1180b5831d rename locale.h in locale_p.h
locale.h seems reserved in newer GCC
2012-07-30 20:11:26 +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
Marco Martin
d2f729d000 modify the hack that doesn't break in some cases 2012-07-13 10:50:07 +02:00
Marco Martin
8a04030fdf less ugly workaround for disappearing Qt::Popup
still a workaround but slightly less ugly and works on Qt 4.8 too
2012-07-12 17:51:28 +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
Marco Martin
daa3c78241 use pointSizeF
BUG:296117
FIXED-IN:4.9
2012-06-25 11:18:59 +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
Marco Martin
ed1e691b2d avoid repaints when the same id is set again
CCBUG:301903
2012-06-20 14:06:23 +02:00
Viranch Mehta
a60d6db013 Fix sourceFilter in QML DataModel to actually
filter the sources of the dataengine

The sources were not getting filtered due to an
error in the loop that added all the sources
in any case

REVIEW: 105267
2012-06-16 20:10:08 +05:30
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
Aurélien Gâteau
5c1e49fa76 SortFilterModel: Do not sort by default
It seems QML sets properties to their default value at startup and thus
calls setSortRole(QString()), which causes SortFilterModel to sort by
default.

CCMAIL: mart@kde.org
2012-06-13 23:56:31 +02: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
Giorgos Tsiapaliwkas
a0e5437a27 Install the qmldir in the right directory 2012-06-12 16:49:29 +03:00
Christophe Giboudeaux
ec788f1f47 Fix the fix.
If the config file is called KActivitiesConfig, the variable set is KActivities_FOUND

CCMAIL:winter@kde.org
2012-06-10 10:09:30 +02:00
Allen Winter
1d24b7a61d remove REQUIRED from the find_package(KActivities).
then tell the macro_log_feature that KActivities is required.
this way, if people are missing KActivities they will get a nice log
message about it.
2012-06-09 13:04:40 -04: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
3a8a66dc47 shadow between context area and toolbar 2012-06-06 02:26:47 +02:00
Sebastian Kügler
1ee3fbaf21 Contextarea goes under the main item, correct shadow 2012-06-06 00:55:19 +02:00
Sebastian Kügler
ba689faf16 Fix warnings in color assignments 2012-06-05 03:31:04 +02:00
Aaron Seigo
4698241d8d improve build 2012-06-04 15:28:07 +02:00
Aurélien Gâteau
bb8eef7db1 Introduct mapRowToSource and mapRowFromSource
REVIEW: 105044
2012-05-29 17:42:11 +02:00
Aurélien Gâteau
0ddb12cf96 Do not reset model while changing the regexp
There is no need to do so, QSortFilterProxyModel correctly adjust rows

REVIEW: 105042
2012-05-29 17:42:11 +02:00
Aurélien Gâteau
f145e1de8e Fix behavior of "runners" property
This commit changes the behavior of the "runners" property when no manager
has been created yet:
- Setting the property emits runnersChanged()
  (unless it is the same as the old value)
- Reading the property after setting it returns the new value

REVIEW: 105024
2012-05-29 17:42:11 +02:00
Aaron Seigo
fb6b4ecc09 handle single mode better 2012-05-28 19:43:34 +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
Luís Gabriel Lima
999dd60721 Adding notify signals to SvgItem
These signals are being added in order to keep track of property
changes in the QML side.

Signed-off-by: Luís Gabriel Lima <lampih@gmail.com>
2012-05-28 08:51:32 -03: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
b63d1feae4 sync passwword charactor with desktop version 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
Giorgos Tsiapaliwkas
b353a65502 Remove declarativeimports/test.
We moved it to kdeexamples
2012-05-16 21:13:35 +03:00
Aurélien Gâteau
cdba0a2222 Fix keyboard navigation in TabBar 2012-05-15 17:24:30 +02:00
Aurélien Gâteau
ea9cf23038 Unbreak gallery 2012-05-15 17:20:47 +02:00
Script Kiddy
944c4b7b58 SVN_SILENT made messages (.desktop file) 2012-05-15 16:42:42 +02:00
Lamarque V. Souza
4f670c149b Update all CMakeLists.txt to use KDeclarativeConfig.cmake.
rebuild kdelibs from KDE/4.8 branch to install KDeclarativeConfig.cmake.
2012-05-14 12:40:02 -03:00
Script Kiddy
1df9872621 SVN_SILENT made messages (.desktop file) 2012-05-14 11:00:55 +02:00
Allen Winter
200c90f096 fix compile.
apparently there is no != operator for Plasma::QueryMatch
perhaps there should be.

CCMAIL: notmart@gmail.com,agateau@kde.org
2012-05-11 14:32:34 -04:00
Aurélien Gâteau
1eb2650cd5 Do not reset the model when new matches are added
REVIEW: 104914
2012-05-11 17:36:01 +02:00
Script Kiddy
0e03fc990e SVN_SILENT made messages (.desktop file) 2012-05-11 09:43:44 +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
Sebastian Kügler
26e1276738 animate showing / hiding of navigation bar 2012-05-09 04:48:38 +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
Script Kiddy
804d490acd SVN_SILENT made messages (.desktop file) 2012-05-07 10:02:05 +02:00
Script Kiddy
93aba5f886 SVN_SILENT made messages (.desktop file) 2012-05-06 10:32:33 +02:00
Marco Martin
93acb20c8d put the model in non running state after a timeout
This is an hack, a real way must be found
2012-05-04 21:54:44 +02:00
Aaron Seigo
a60b7b83c9 signal when a drag starts so that qml items can take the necessary steps 2012-05-04 14:10:28 +02:00
Aaron Seigo
a4e83dde8e tabs to spaces. fewer kittens are now being killed. 2012-05-04 14:10:28 +02:00
Marco Martin
4c79f05a60 running property
true when at least some runner is not done yet
2012-05-04 13:47:41 +02:00
Script Kiddy
204946e451 SVN_SILENT made messages (.desktop file) 2012-05-04 10:29:42 +02:00
Shaun Reich
04d6b450d3 move krunnermodel into plasma/declarativeimports where it belongs
(slight mistake on the git-filter-branch import from plasma-mobile.
So it'll live here now, so that other gizmos can use it.
2012-05-03 10:00:04 -04:00
Marco Martin
14122d0199 hide the tools that have long been dismissed 2012-05-03 14:27:18 +02:00
Marco Martin
3c56d80d52 qdate and qtime need to be included in locale.h 2012-05-02 14:22:01 +02:00
Giorgos Tsiapaliwkas
77e5ff627c Merge branch 'plasma/terietorANDkokeroulis/KLocaleQMLBindings'
Fix the git conflicts
Conflicts:
	plasma/declarativeimports/CMakeLists.txt
	plasma/declarativeimports/test/contents/ui/Gallery.qml
2012-05-02 12:39:31 +03:00
Giorgos Tsiapaliwkas
835cd63c72 Move declarativeimports/locale/test to declarativeimports/test and
make the declarativeimports/test a plasmoid
2012-05-02 12:34:28 +03:00
Giorgos Tsiapaliwkas
920a7a0649 Rename the test into org.kde.example.localetest 2012-05-01 22:16:42 +03:00
Marco Martin
3d1ba60d3f fix active effect 2012-05-01 14:46:19 +02:00
Antonis Tsiapaliokas
1d8b0c0714 Fix a typo for klocaleqmltest.qml and remove unnecessary TODOs 2012-04-30 06:32:42 +03:00
Antonis Tsiapaliokas
bbc19904db Remove unused enumenators 2012-04-30 06:03:35 +03: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
Antonis Tsiapaliokas
5c890b1ba0 fix the wrong format type from the readTime and readLocaleTime 2012-04-24 13:25:00 +03:00
Giorgos Tsiapaliwkas
2bf1971ad4 Fix the emit 2012-04-24 23:14:30 +03:00
Giorgos Tsiapaliwkas
17265ad14c Fix compile warnings 2012-04-24 23:10:29 +03: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
Giorgos Tsiapaliwkas
d1f8e46a3e Remove the signals and make the properties constants 2012-04-13 19:51:07 +03:00
Stephen Kelly
73dc4f9a0c Simplify QtGui module includes. 2012-04-10 00:22:13 +02:00
Marco Martin
531031f753 can't use windowId in QML on Windows 2012-04-06 13:09:32 +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
Marco Martin
027c83e27a fix centering 2012-04-04 10:35:47 +02:00
Sebastian Kügler
c353ff7caa Fix up installation -- no touch-specific installs 2012-04-03 17:51:01 +02:00
Marco Martin
41a5105806 use borders similar to the c++ widget 2012-04-03 13:49:23 +02:00
Aaron Seigo
b098deb453 improve docu 2012-04-03 13:27:39 +02:00
Marco Martin
3af2e88301 add ScrollArea.qml
a component that automatically creates the scrollbars/scrollindicators/sectionscrollers for a Flickable, ListView or GridView
2012-04-03 13:22:26 +02:00
Sebastian Kügler
744fe720d2 Improve clipping in App 2012-04-02 17:46:01 +02:00
Sebastian Kügler
69fc1ee82e update todo 2012-04-02 04:52:34 +02:00
Sebastian Kügler
1889b8e1fa setting anchors inside of components is not a good idea 2012-04-02 04:52:20 +02:00
Sebastian Kügler
b6468d6437 ssht. 2012-04-01 00:15:34 +02:00
Sebastian Kügler
e747fb6e3b APIDOX improvements for PlasmaExtras 2012-03-31 01:20:25 +02:00
Sebastian Kügler
3dd6ad6138 remove green rectangle 2012-03-31 01:20:25 +02:00
Lamarque V. Souza
82fb04ccbf EditBubble.qml: put buttons in the order "copy" and then "paste", double
buttons' MouseArea sizeto make it easier to tap on them, and add space
between the buttons.

CCBUG: 296943
2012-03-30 20:08:42 -03:00
Sebastian Kügler
ed04c28fe2 Small optimization
By Lamarque, forward-ported from plasma-mobile
c9c6f5022fe5ccde59456157f18cdec4ab2b46b4
2012-03-30 00:42:42 +02:00
Sebastian Kügler
ec53236725 Animations have moved here
from plasma-mobile/components/mobilecomponents
2012-03-30 00:34:17 +02:00
Antonis Tsiapaliokas
0e702d85f5 Fix the Q_DECLARE_FLAGS parameters 2012-03-29 23:14:19 +03:00
Marco Martin
fb99635369 put buttons in the titlebar 2012-03-29 17:23:39 +02:00
Marco Martin
58d281d0b9 fix connect to destroyed, should solve crashes 2012-03-28 14:11:43 +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
Sebastian Kügler
af7ec4df34 Fix reference error and hiding SIP from TextArea 2012-03-27 13:54:51 +02:00
Giorgos Tsiapaliwkas
0c62466b99 Remove some parameters 2012-03-26 11:41:26 +03:00
Giorgos Tsiapaliwkas
f84c3642a6 Fix the includes in locale.h/cpp 2012-03-26 11:30:33 +03:00
Giorgos Tsiapaliwkas
feefca269b Remove the overloaded methods from Locale 2012-03-26 11:27:36 +03:00
Giorgos Tsiapaliwkas
ee1ce0dca9 Make the static methods normal ones 2012-03-26 11:06:00 +03:00
Giorgos Tsiapaliwkas
cc54b44fa2 Fix the includes in CalendarSystem 2012-03-24 19:36:59 +02:00
Giorgos Tsiapaliwkas
df1290b1ec Remove the @since 2012-03-24 19:31:35 +02:00
Giorgos Tsiapaliwkas
1bfb4e0083 Remove a few more overloaded methods 2012-03-24 19:29:37 +02:00
Giorgos Tsiapaliwkas
b503963b40 Fix calendar.readDate 2012-03-24 19:22:43 +02:00
Giorgos Tsiapaliwkas
1145d33e59 Make virtual methods normal 2012-03-24 19:22:19 +02:00
Martin Gräßlin
e195c1d01f Export WindowId on Plasma Dialog
Exporting the window Id allows to use it in declarative KWin scripts
to embedd window thumbnails on the dialog.

REVIEW: 104393
2012-03-24 10:51:12 +01:00
Giorgos Tsiapaliwkas
c94a4917c4 fix the calendarSystemsList list 2012-03-23 15:46:46 +02:00
Giorgos Tsiapaliwkas
c0cee92b7d Remove the overloaded methods from CalendarSystem 2012-03-23 15:31:03 +02:00
David Edmundson
732c98110f Remove invalid documentation for property "animated" on Slider
See discussion at: https://git.reviewboard.kde.org/r/104318/
2012-03-22 20:20:16 +00:00
Daker Fernandes Pinheiro
eabd70b019 Fix coding style for TextField Plasma Component accepted signal
Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
2012-03-22 08:58:29 -03:00
Daker Fernandes Pinheiro
161b548803 Fixed coding style in doc example for TextField Plasma Component
Signed-off-by: Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org>
2012-03-22 08:57:56 -03:00
Christophe Giboudeaux
dc1e5aa9cf Fix includes. 2012-03-20 12:08:48 +01:00
Sebastian Kügler
cf14c5563f spacing improvements 2012-03-20 02:48:40 +01:00
Sebastian Kügler
7bffae49d1 fix visual glitch when hiding toolbar 2012-03-20 02:35:20 +01:00
Sebastian Kügler
61cafd3215 update todo 2012-03-20 02:31:09 +01:00
Sebastian Kügler
409a2ac82c basic toolbar hiding and showing 2012-03-20 02:23:11 +01:00
Sebastian Kügler
73e2d78647 fix alignment in contentArea 2012-03-20 02:01:21 +01:00
Sebastian Kügler
b4b8986209 explain extracomponents in the Gallery page 2012-03-20 02:01:21 +01:00
David Edmundson
cfc76b8144 Fix padding in toolbutton and tab buttons
REVIEW: 104319
2012-03-20 00:57:54 +00:00
Sebastian Kügler
c5e6e8a826 add Paragraph.qml 2012-03-20 01:49:23 +01:00
Sebastian Kügler
fd048b6ff6 Move ResourceInstance into Extras page 2012-03-20 01:48:26 +01:00
Sebastian Kügler
7c0f0522d8 add plasmacomponents api docs ResourceInstance 2012-03-20 01:46:44 +01:00
Sebastian Kügler
2d864c5992 App gets ToolBar, gallery app uses it now
- the Gallery app is now derived from App, so we can test it.
- App now has a toolbar, similar to PageStack.

Toolbar is not yet auto-hidden.
2012-03-20 01:40:25 +01:00
Sebastian Kügler
5254662cc4 Move apptest here, common test directory 2012-03-19 23:52:39 +01:00
Sebastian Kügler
c6110235c0 New component: Paragraph
completes the Text Layout components for now.

Also add a page to Gallery.qml to test these new component.
2012-03-19 23:38:57 +01:00
Sebastian Kügler
ee7796c0a7 Fix up install
- platformimports is empty until we use touch-specific overrides, comment
this line
- also install Header.qml to touch-components
2012-03-19 23:03:16 +01:00
Sebastian Kügler
d0c2a45738 Merge branch 'plasmaextracomponents' 2012-03-19 16:21:02 +01:00