Commit Graph

973 Commits

Author SHA1 Message Date
Marco Martin
03495debc4 check for elementId besides the file name 2012-11-28 16:05:46 +01:00
Marco Martin
7b6d50b3c6 fix scrollbar anchors
make scrollbar anchor to root, so the binding doesn't break at the moment of creation when they are parentless for a moment

also, clip the flickable, not the scrollares
2012-11-28 15:25:35 +01:00
Marco Martin
0d03bf21c8 get rid of the old image if we are not animating 2012-11-27 17:54:46 +01:00
Marco Martin
d177b0a31d react to enabled changed 2012-11-27 14:03:19 +01:00
Marco Martin
3d21d43182 set default meaningful implicitWidth/height
svgItem has naturalSize as implicit size
framesvgitem has the sum of their borders
2012-11-27 13:33:50 +01:00
Marco Martin
01e84b4483 make dialogs layout work a bit better 2012-11-27 12:26:35 +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
Marco Martin
b353f6e7fb remove a couple of sizes 2012-11-26 11:35:53 +01:00
Marco Martin
171c795ac2 bind standard icon sizes (desktop, toolbar etc)
they should be preferred over smallIconSize, mediumIconSize etc
2012-11-26 11:24:09 +01:00
Marco Martin
7a9ca96135 move up the drag delegate 2012-11-22 13:15:46 +01:00
Aaron Seigo
9303b7592a add missing /, now it finds platform specific qml properly 2012-11-19 18:09:51 +01:00
Marco Martin
2cda92af4c correct the margins
react to scrollbars being visible or invisible
correct margins of the borders
2012-11-16 17:22:38 +01:00
Allen Winter
78848d5d50 initialize m_left, m_top, m_right and m_bottom to make valgrind happy. 2012-11-12 19:01:55 -05:00
Sebastian Kügler
74b0e0bd98 debug-- 2012-11-12 01:44:51 +01:00
Lamarque V. Souza
f711c9378d Make Keys.* event handlers work in PlasmaComponents.TextField. 2012-11-10 14:47:07 -02:00
Aaron Seigo
cdfd8688f4 styl ocd 2012-11-07 12:45:57 +01:00
Aaron Seigo
554f0b9909 ensure margins update in all cases
setElementPrefix does not trigger repaintNeeded() from the svg object;
repaintNeeded() is for internal changes. if you change the svg from your
own application code, the app code needs to react to those changes in its
own time and way.

so margins was never seeing that it was getting changed when setElementPrefix
was called -> pixel imperfections in layouts.
2012-11-07 12:43:11 +01:00
Aaron Seigo
1023ceda85 fixes and some internal docu 2012-11-07 01:10:05 +01:00
Marco Martin
e42ce8f782 export margins 2012-11-07 01:08:58 +01:00
Marco Martin
575b817c97 consider the case wen right or bottom margins are disabled 2012-11-06 13:52:36 +01:00
Marco Martin
390c97cfcb font based margin 2012-11-02 14:26:03 +01:00
Aaron Seigo
06f5f555a9 get the components target from libkdeclarative 2012-10-30 21:31:31 +01:00
Aaron Seigo
050222e9ed get rid of dead code 2012-10-30 18:33:48 +01:00
Sebastian Kügler
a45a18e810 Fix reference error in Highlight
ListView is just the namespace, we have to check for ListView.view's
existance
2012-10-27 02:01:34 +02:00
Marco Martin
f35539da1f remove debug output 2012-10-26 19:46:56 +02:00
Marco Martin
2b702fa6ef make sure scrollbars are visible 2012-10-26 19:46:36 +02:00
Marco Martin
b3dff51494 fix anchors 2012-10-26 18:12:51 +02:00
Marco Martin
8d24d8e1b0 nchor to the flickable instead of parent 2012-10-26 17:49:23 +02:00
Marco Martin
6327065728 remove arbitrary margin 2012-10-26 17:03:30 +02:00
Sebastian Kügler
ee7255b261 Check if referenced objects are valid
This kills plus 96c8478aef two ReferenceErrors I'm seeing when using
ListItems inside VisualItemModels (in this case, there's no view and
visual parent attached on creation).

REVIEW:106937
2012-10-25 14:47:16 +02:00
Aaron Seigo
3fb4a78ed5 replace tabs with space. 2012-10-25 13:14:53 +02:00
Sebastian Kügler
c9bfe00345 Fix reference error when ListItem is used with VisualItemModels
The correct way to check if an object is valid is using typeof(foo).
2012-10-25 00:02:10 +02:00
Marco Martin
e4cc7da085 bind width to listview width by default 2012-10-23 22:49:21 +02:00
Marco Martin
b3db7ce371 export item 2012-10-23 22:04:47 +02:00
Marco Martin
18ed35d2d8 sync the current items after clicked() 2012-10-23 21:52:06 +02:00
Marco Martin
f825a9f4a7 ConditionalLoader: lazy loading of components 2012-10-23 21:52:06 +02:00
Dmitry Ashkadov
46e7b8065f Support of QIcon and QPixmap for QML item PlasmaCore.Tooltip 2012-10-23 20:58:50 +04:00
Marco Martin
d7e77f5074 remoev hack 2012-10-23 14:42:57 +02:00
Marco Martin
3910b0604f use a position relative to the DropArea
view-position is completely useless from QML
2012-10-23 13:53:37 +02:00
Marco Martin
f8e9eeb587 support dragMove 2012-10-23 13:09:53 +02:00
Marco Martin
d4ad3e23c3 fix typo 2012-10-23 12:39:47 +02:00
Marco Martin
0b28d4cc40 fix pageParent being null the first time 2012-10-23 11:59:48 +02:00
Marco Martin
8f6eb3cc7f try a sectionscroller only if model.get is avail 2012-10-22 15:03:22 +02:00
Marco Martin
eadae554b8 menu items are menu children.
now works without packagekit dataengine installed
2012-10-22 11:32:02 +02:00
Marco Martin
595f6f43cd hover = true when highlight in listview 2012-10-22 11:25:36 +02:00
Marco Martin
ea59745a58 export the font, since qactions have them too 2012-10-22 11:25:36 +02:00
Marco Martin
5f22e36cd5 don't draw the background if there is an highlight
mouseover highlight plus item backgrounds looks horrible together
2012-10-22 11:25:36 +02:00
Marco Martin
a7c1e92ef2 checkable property 2012-10-19 10:10:46 +02:00
Marco Martin
6b32e0426c add missing property preferredWidth 2012-10-18 17:22:34 +02:00
Marco Martin
58d9657594 binding loop-- 2012-10-18 16:50:59 +02:00