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
Laurent Montel
eac7473cd7
const'ify
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1190587
2010-10-28 07:45:48 +00:00
Laurent Montel
337cd237f1
const'ify
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1190586
2010-10-28 07:44:05 +00:00
Marco Martin
a84b230ddc
sortOrder/setSortOrder property
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1190489
2010-10-27 21:19:03 +00:00
Kevin Ottens
540606d0ed
Doesn't need to link on knewstuff2.
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1190279
2010-10-27 10:14:53 +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
a780189547
make work both VariantMaps and QVariantHash
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1190034
2010-10-26 17:32:08 +00:00
Marco Martin
7ec308a228
don't crash if the item list is empty
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1190003
2010-10-26 15:48:39 +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
7ee1ebf5ac
a crazy experiment: if one of the dataitems is a QVariantList of QVariantMaps (like many dataengines, like rss, microblog, opendesktop...)
...
make it available as a QAbstractModel, so will be possible to categorize it
(considering to put it behind a qsortfilterproxymodel to make it easy to do filtering)
svn path=/trunk/KDE/kdebase/runtime/; revision=1189920
2010-10-26 12:01:59 +00:00
Script Kiddy
711676009b
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1189884
2010-10-26 09:57:26 +00:00
Marco Martin
2e374dbd8c
use a normal QNetworkAccessManager in case of plasmapackage:/
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1189297
2010-10-24 14:01:56 +00:00
Marco Martin
be83c17415
loadService in SimpleJavaScriptApplet
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1189270
2010-10-24 12:17:22 +00:00
Script Kiddy
144997ee13
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1189214
2010-10-24 09:03:07 +00:00
Marco Martin
dc0ab1345f
loadService() function to load services without dataengines.
...
will be propagated to the js appletscript too
svn path=/trunk/KDE/kdebase/runtime/; revision=1189005
2010-10-23 17:30:10 +00:00
Script Kiddy
61b3302821
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1188900
2010-10-23 09:30:54 +00:00
Marco Martin
58adcad0a2
add loadUi from the js engine
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1188406
2010-10-22 10:12:35 +00:00
Marco Martin
bc13065f9a
make the authorization global
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1188264
2010-10-21 20:37:47 +00:00
Marco Martin
ade2a71286
check with the authorization manager whether to allow the import of a certain url (unfortunatel doesn't seem to be any way to block local absolute paths :/)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1188241
2010-10-21 19:02:29 +00:00
Marco Martin
155dc2d056
use a custom network access manager, based on the kio one, but has a
...
special handling for package:/foo urls
svn path=/trunk/KDE/kdebase/runtime/; revision=1188205
2010-10-21 17:39:05 +00:00
Script Kiddy
2586f3ecb8
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1188056
2010-10-21 08:44:18 +00:00
Marco Martin
5dd5d716dc
add the package folder (script) as valid imports dir (will probably have to be contents/imports
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187952
2010-10-20 20:55:35 +00:00
Marco Martin
e054fbb8aa
don't register print() in the declarative bindings: t' already there
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187930
2010-10-20 19:40:30 +00:00
Script Kiddy
81879c1cf4
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187411
2010-10-19 09:48:57 +00:00
Marco Martin
9b0b51a7a8
be quiet
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187392
2010-10-19 08:45:45 +00:00
Marco Martin
dd4f94ec09
reset the preferred height right before asking for th hint
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187391
2010-10-19 08:45:32 +00:00
Marco Martin
994c0cbd9a
if the preferred size is less then half m_appletsPerColumn or m_appletsPerRow, divide the corresponding normalAppletSize dimension by 2
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187390
2010-10-19 08:35:36 +00:00
Marco Martin
33c9aaf216
be quiet
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187303
2010-10-18 21:48:50 +00:00
Marco Martin
d5ef24103d
disable the overlay on exppand all
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187302
2010-10-18 21:47:42 +00:00
Marco Martin
7dae2f58b8
use ${IMPORTS_INSTALL_DIR}
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1187247
2010-10-18 19:20:08 +00:00
Andreas Hartmetz
f25a4e438f
Fix the same typo in CMakeLists.txt
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186855
2010-10-17 18:53:53 +00:00
Marco Martin
fd677e7423
correct typo
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186804
2010-10-17 16:01:34 +00:00
Script Kiddy
dea66b2269
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186710
2010-10-17 09:10:25 +00:00
Pino Toscano
1cf0db3e2a
install the declarative imports plugins in the proper place
...
(pending an addition to FindKDE4Internal.cmake for a nice variable for this)
svn path=/trunk/KDE/kdebase/runtime/; revision=1186527
2010-10-16 19:28:20 +00:00
Christophe Giboudeaux
d514ff8d30
Don't install files outside CMAKE_INSTALL_PREFIX
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186512
2010-10-16 18:29:32 +00:00
Christophe Giboudeaux
258cfab04b
Don't install files outside CMAKE_INSTALL_PREFIX
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186511
2010-10-16 18:22:02 +00:00
André Wöbbeking
8637029f79
-pedantic
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186462
2010-10-16 13:53:51 +00:00
Script Kiddy
ed1935d4ef
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186391
2010-10-16 08:32:59 +00:00
Marco Martin
3b219d6e39
if the parsing fails, set failed to launch with a reasonable message
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186305
2010-10-15 18:56:30 +00:00
Script Kiddy
5d1f73a693
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1186160
2010-10-15 09:10:36 +00:00
Marco Martin
ac187bfc50
build the declarative engine in its new location
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1185950
2010-10-14 18:43:25 +00:00
Marco Martin
d12cab235a
move in runtime
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1185949
2010-10-14 18:36:53 +00:00
Marco Martin
9a02b74797
move in the proper place
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1185948
2010-10-14 18:36:09 +00:00
Marco Martin
0ad5112af4
move in runtime
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1185947
2010-10-14 18:34:46 +00:00
Marco Martin
9de619ed86
remove the QVariant workaround since the QScriptEngine::newVariant() should be fixed now in qt.
...
it seems to work for now, will keep the js scriptengine unchanged for a while to check for eventual problems.
if this work out will make the merge with the qml engine way easier
svn path=/trunk/KDE/kdebase/runtime/; revision=1185556
2010-10-13 18:08:07 +00:00
Marco Martin
ac8de83bbd
first important part for the ml bindings merge:
...
make appletInterface more generic it could work with QML too
simplejavascriptapplet inherits from an abstract ckass that provides just the virtuals of functions needed by appletinterface so a different scriptengine implementation can be used as well.
The behaviour of the current js bindings should be completely unchanged.
svn path=/trunk/KDE/kdebase/runtime/; revision=1185532
2010-10-13 16:12:43 +00:00
Laurent Montel
c90b506d8e
Fix includes
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1185374
2010-10-13 07:20:22 +00:00
Laurent Montel
a2513a6a16
Fix forward declaration
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1185373
2010-10-13 07:19:47 +00:00
Laurent Montel
b6fb9dac52
Fix includes
...
svn path=/trunk/KDE/kdebase/runtime/; revision=1185371
2010-10-13 07:19:17 +00:00