Commit Graph

215 Commits

Author SHA1 Message Date
Sebastian Kügler
faa4826465 fix build of theme.cpp, Q_GLOBAL_STATIC needs parentheses 2013-02-11 12:11:11 +01:00
Sebastian Kügler
092220952c Use QML_INSTALL_DIR
... instead of screwing with IMPORTS_INSTALL_DIR. We're still setting it
by hand until the corresponding patch in cmake-extra-modules is merged.
2013-02-10 16:18:33 +01:00
Marco Martin
ba4250394b add ${KDE4_KDECORE_LIBS} to core bindings 2013-02-08 12:10:01 +01:00
Marco Martin
23bbfd5d91 try to add ${KDE4_INCLUDE_DIR} 2013-02-08 11:15:52 +01:00
Marco Martin
8018feea80 try to explicitly add kdecore to linking 2013-02-08 11:06:44 +01:00
Marco Martin
bb8356abb0 reenable theme
many qml components work now
2013-02-07 12:48:05 +01:00
Aleix Pol
7f8cbc4af2 Backport of commit a842523b46176b8cde845e26d06bca7f76166df0 in kde:kde-runtime 2013-02-07 12:11:51 +01:00
Marco Martin
3777ae67ef very war enable of components
they will still not work due theme not being defined yet
2013-02-06 13:37:56 +01:00
Marco Martin
965f6715db correctly link everything 2013-02-06 11:15:27 +01:00
Marco Martin
492bd13b00 slight progress in making the repo link again 2013-02-05 21:37:42 +01:00
Sebastian Kügler
e3149f9c77 Work on IconItem
The sizing we get is messed up, and the first pixmap (which we try to
use) has size 0x0. Needs fixing.
2013-02-02 04:43:20 +01:00
Sebastian Kügler
47ee5be976 Make SvgItem work, now successfully shows an Svg 2013-02-02 04:42:28 +01:00
Sebastian Kügler
0d26b04d47 FrameSvgItem becomes a QQuickPaintedItem, it now renders 2013-02-02 03:41:38 +01:00
Sebastian Kügler
a65c52fd16 Install imports into $PREFIX/qml/org/kde/... 2013-02-02 03:32:01 +01:00
Sebastian Kügler
42573a2c6a Use Q_PLUGIN_METADATA to register plugin 2013-02-02 03:31:21 +01:00
Sebastian Kügler
56fe183e00 enable svg and framesvg 2013-02-02 00:58:03 +01:00
Sebastian Kügler
826a97675c port and enable FrameSvgItem in core plugin 2013-02-02 00:54:25 +01:00
Sebastian Kügler
d105397f0a lower case includes 2013-02-01 18:19:27 +01:00
Sebastian Kügler
ad7fb806dc port iconitem to Qt5 2013-02-01 18:18:52 +01:00
Sebastian Kügler
acadc4f4b1 lower case include 2013-02-01 18:04:12 +01:00
Sebastian Kügler
7f0011a843 Renamed classes, QDeclarative -> QQml/QQuick* 2013-02-01 17:26:26 +01:00
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
05e5701e9b port svgitem to Qt5 2013-02-01 17:24:07 +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
c68b5909c2 Merge branch 'KDE/4.10' 2013-01-23 15:06:06 +01:00
Marco Martin
64c31f5ca1 update margins when the element prefix changes 2013-01-23 15:05:51 +01:00
Aurélien Gâteau
a87f7e4240 Thou shall not use "using namespace" in a header file 2012-12-19 14:57:28 +01:00
Aurélien Gâteau
2b6797dca3 Document QML names for C++ classes suffixed with "Proxy" 2012-12-14 16:16:27 +01:00
Aurélien Gâteau
34514cfe56 Create Mainpage.dox for kde-runtime plasma sub-projects
CCMAIL: notmart@kde.org
2012-12-14 16:15:44 +01:00
Marco Martin
0aebfa70e5 check for signals existence before connecting
removes a lot of warnings
2012-12-13 14:17:09 +01:00
Marco Martin
0b5dece0f0 implicitWidthChanged is a signal, not a slot 2012-12-03 18:10:25 +01:00
Marco Martin
d784a91655 always rewrite icon settings on signal
we can't just check the desktop icon size, another size may have been changed
2012-12-03 17:59:59 +01:00
Marco Martin
57e77a8591 remove the kdialog based querydialog
Dialogs are always plasma-themed, and if possible are inline.
only if there is not enough space (like in a panel) they get moved in a separate window
this removes quite some c++ usage and hopefully solves some layouting problems in dialogs
2012-11-30 00:03:49 +01:00
Marco Martin
03495debc4 check for elementId besides the file name 2012-11-28 16:05:46 +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
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
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
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
Dmitry Ashkadov
46e7b8065f Support of QIcon and QPixmap for QML item PlasmaCore.Tooltip 2012-10-23 20:58:50 +04: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
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