Commit Graph

19 Commits

Author SHA1 Message Date
Sebastian Kügler
6c5025a866 Register SvgItem 2013-02-01 17:25:28 +01:00
Sebastian Kügler
b33fbfea4f Enable SvgItem 2013-02-01 17:24:24 +01:00
Sebastian Kügler
1667ad7619 Minimally building core plugin
All classes are disabled currently, and the plugin macros as well.
2013-02-01 17:03:00 +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
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
43846dde0e bind runnermodel in core 2012-10-03 15:55:11 +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
Marco Martin
7a325f4658 i_p suffix only for stuff not exported from qml
general rule:
if the header if from a class that will be made available as qml type, foo.h, otherwise foo_p.h
2011-11-01 19:27:55 +01:00
Marco Martin
43a069c681 bind types for dataengines in the palsmacore import 2011-11-01 19:18:41 +01:00
Marco Martin
2bb756cfe7 register extra types on QScriptEngine
only if hasn't been done yet
2011-11-01 18:55:57 +01: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
c77d815ec7 export servicejob in qml 2011-06-05 14:11:19 +02:00
Artur Duque de Souza
e3db04f3ff Add Tooltip to the build system
Let's compile the tooltip and also export it to our QML plugin.

Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-27 19:45:49 -03:00
Marco Martin
61abadfd25 bindings for Plasma::Dialog
setting the mainItem property of a Dialog element, it will create a top level window with that item as the graphicsWidget()
right now it works only with QGraphicsWidget{} elements, Plasma::Dialog will be given the api to make this work with any QGraphicsObject as well.
2011-02-24 18:29:56 +01:00
Marco Martin
0394675156 SortModel->SortFilterModel
svn path=/trunk/KDE/kdebase/runtime/; revision=1190655
2010-10-28 13:10:10 +00:00
Marco Martin
1b1ea1a1b3 export separately DataModel and SortModel
svn path=/trunk/KDE/kdebase/runtime/; revision=1190653
2010-10-28 13:06:40 +00:00
Marco Martin
ab064bedfa put the model into a QSortFilterProxyModel to mke possible to sort and filter trough a regular expression
svn path=/trunk/KDE/kdebase/runtime/; revision=1190082
2010-10-26 21:19:04 +00:00
Marco Martin
27bff00756 the previous way to have models didn't work for most engines:
some have many keys one for each item.
bind a new DataModel into QML that will be associated to a specific DataSource and a key pattern

an exact one like "items" of rss
or a partial regexp one like "KnowledgeBase-[\d]*" like the ocs engine

in this way is not necessary to change how those dataengine works and is possible to use them in QML without headaches

svn path=/trunk/KDE/kdebase/runtime/; revision=1189953
2010-10-26 13:18:19 +00:00
Marco Martin
2a256d1e74 move the core, graphicslayouts and graphicswidgets imports in runtime
svn path=/trunk/KDE/kdebase/runtime/; revision=1185277
2010-10-12 19:51:57 +00:00