Commit Graph

10285 Commits

Author SHA1 Message Date
Aaron Seigo
54a832c270 use the new setData method 2011-04-29 11:17:28 +02:00
Aaron Seigo
549f988fee use a QVariantHash as well as a transaction for saving 2011-04-29 11:17:28 +02:00
Aaron Seigo
3a2e2295df fix header guard 2011-04-29 11:17:28 +02:00
Marco Martin
67dbcb59b8 create a single timer for storage event compression 2011-04-29 11:17:28 +02:00
Script Kiddy
dd3e6f092c SVN_SILENT made messages (.desktop file) 2011-04-29 09:32:15 +02:00
Script Kiddy
fecc197de0 SVN_SILENT made messages (.desktop file) 2011-04-29 09:32:15 +02:00
Daker Fernandes Pinheiro
79d17528f6 Add buttons to ScrollBar when stepSize is defined
Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-28 19:22:51 -03:00
Artur Duque de Souza
97b37637fa Export icon information to package metadata for remote service
Get the original package metadata's icon and inject this information
into the package metadata that is going to be sent to the remote targets.

This way we are able to use the icon in several UIs which makes things
more beautiful ;)

CCMAIL:ervin@kde.org
Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-28 18:52:34 -03:00
Aaron Seigo
fa109eaaf9 initialize the value of applet
BUG:227453
2011-04-28 21:49:07 +02:00
Daker Fernandes Pinheiro
6b291d0ac6 Add ScrollBar component
- The stepButtons are not yet implemented

Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-28 10:22:05 -03:00
Daker Fernandes Pinheiro
cb00a42cb8 Refactor Slider component
Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-28 07:44:28 -03:00
Aaron Seigo
dca3eefc6e style 2011-04-28 10:54:23 +02:00
Aaron Seigo
c5cf7f8460 style 2011-04-28 10:54:23 +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
Artur Duque de Souza
f1e61647b6 QML Bindings for Plasma::ToolTips
Implementation of a proxy to make it easy to declare tooltips in QML,
that will use Plasma::ToolTipManager to display tooltips in any item
that is declared in QML.

The syntax is:

import org.kde.plasma.core 0.1 as PlasmaCore

PlasmaCore.ToolTip {
    target: id_of_the_target
    mainText: "hello"
    subText: "world"
    image: "konqueror"
}

The syntax looks pretty straightforward and simple. "id_of_the_target"
is the id of the element which will show the tooltip in case it's hovered.

If the target is a QGraphicsWidget, the code path is really simple but if
it's a QDeclarativeItem, then we create a wrapper (that is a QGraphicsWidget)
and setup that in a way that we set this wrapper as the target on Plasma's
API. For libplasma2 we may want to change this so it's more generic (and
also put this together with the components).

Right now there is two open issues for me:

 1) we should use "image" or "icon"? Allowing the use of a image that is
a string that identifies the icon for KIconLoader seems simpler and more
beautiful to me, but it would be nice to specify a random QPixmap. Besides
being able to use the bindings for QIcon it doesn't look very good. Marco,
do you have any thoughts on this issue?

 2) for touch oriented UIs, the tooltip as it is right now is not very
useful. Is there any "touch" scenario where we may want to use them?

CCMAIL:mart@kde.org
Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-27 19:45:48 -03:00
Artur Duque de Souza
436fd7e762 Separate the DeclarativeItemContainer so it can be used by others
We are going to need the declarative container for the tooltips,
so it makes sense to put this guy in it's own files.

Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-27 19:45:48 -03:00
Daker Fernandes Pinheiro
564f565c36 Add Slider component
- An example was added into the gallery
- The Keys and Mouse Wheels events are not being handled yet
- The value indicator is not yet created

Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-27 16:21:01 -03:00
Daker Fernandes Pinheiro
45b5b480f9 BusyIndicator smooth is switch off when animating
Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-27 16:19:02 -03:00
Daker Fernandes Pinheiro
72f4b7c778 Add RangeModel for QtComponents
RangeModel will be used by as a logical backend to Slider and ScrollBar

Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-27 16:17:34 -03:00
Davide Bettio
6455fefd09 Please don't set the default wallpaper in plasma/theme.cpp, configure the theme metadata file instead. 2011-04-27 18:31:12 +02:00
Davide Bettio
838969e22e The default wallpaper must be in the metadata file. 2011-04-27 18:27:50 +02:00
Daker Fernandes Pinheiro
56fbe5e67b Rename and Fix BusyWidget to BusyIndicator component to fit the common API
- An example also was add in ComponentsGallery.

Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-27 06:47:08 -03:00
Sebastian Kügler
0aaa04c2dc build++ 2011-04-27 03:49:03 +02:00
Sebastian Kügler
9dab5df492 Merge branch 'master' of git://anongit.kde.org/kde-runtime 2011-04-27 03:43:08 +02:00
Daker Fernandes Pinheiro
0a9670b381 Create a gallery for plasma components
Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-26 20:18:01 -03:00
Daker Fernandes Pinheiro
8a7f71dfba Add RadioButton component
Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-26 20:13:45 -03:00
David Faure
476f2f190f Enable -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS
Mostly needed fixes in the unittests, due to QCOMPARE template magic
failing with QString vs QStringBuilder.
2011-04-27 01:11:14 +02:00
Daker Fernandes Pinheiro
d38321afec Add CheckBox component
Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-26 20:00:51 -03:00
Daker Fernandes Pinheiro
c0bb0bb955 Add Button component with QtComponents compatible api
Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
2011-04-26 19:52:47 -03:00
Marco Martin
365cdef434 delete more methods 2011-04-26 23:36:59 +02:00
Marco Martin
de179b4e1d header of a possible applet api for plasma2 2011-04-26 23:19:19 +02:00
Marco Martin
00a7e73eb7 bump version 2011-04-26 22:53:32 +02:00
Artur Duque de Souza
3dbe535dec Last bits to theme bindings
We are going to need a proxy for the theme anyway, so we need
this guy complete anyway. Let's forget about the idea of exporting
Plasma::Theme directly.

Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-26 16:50:05 -03:00
Kevin Ottens
7fa4dff47b Allow to get tooltips to popup instantly on hover
Add an "instant popup" property on ToolTipContent allowing to control
for a given tooltip to popup immediately when the corresponding widget
is hovered. The default is the usual behavior though.

The ToolTipManager behavior itself got adjusted to take care of the
instant popup flag.
2011-04-26 20:56:00 +02:00
Aaron Seigo
ecba1f6d3b do all three types nicely 2011-04-26 20:53:51 +02:00
Sebastian Kügler
e5dbbdc8f1 bind Plasma::Theme::styleSheet() in declarative imports 2011-04-26 20:27:13 +02:00
Aaron Seigo
5364a3bd50 pretty output for the package roots. for sebas. with luvs. 2011-04-26 20:22:48 +02:00
Artur Duque de Souza
d54f9bbb5a Export more properties of the Plasma's theme
We should export name, font, windowTranslucencyEnabled and homepage
as well. Later we will just put all the properties on the Plasma::Theme
itself and export it.

Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-26 15:09:59 -03:00
Montel Laurent
955137bf2f don't check pointer before to delete it 2011-04-26 18:29:48 +02:00
Marco Martin
d8bd1cf2e7 first doc for libplasma2: QGV dependencies 2011-04-26 13:42:16 +02:00
Aaron Seigo
fe1a615cc4 make this even more painfully clear 2011-04-26 13:04:50 +02:00
Marco Martin
98bacfdb65 GlApplet is deprecated 2011-04-26 12:36:24 +02:00
Script Kiddy
e16d10b205 SVN_SILENT made messages (.desktop file) 2011-04-26 10:42:18 +02:00
Aaron Seigo
fbb50df067 ensure that the containment configChanged() routine always happens 2011-04-25 16:43:48 +02:00
Script Kiddy
ead259d383 SVN_SILENT made messages (.desktop file) 2011-04-25 08:42:50 +02:00
Artur Duque de Souza
add8249568 Do not allow the adition of a source that is already connected
If you try to connect a source that is already connected, it should
return and not create a duplicate of that source.

Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-24 19:18:14 -03:00
Aaron Seigo
2c3a5ef8fa make the compiler happy 2011-04-24 23:59:59 +02:00
Aaron Seigo
ffbe49d4bf uncomment this so when we do make a private class, we don't forget ;) 2011-04-24 23:59:59 +02:00
Sebastian Kügler
6de3205490 Switch off scrollbars when in dragToScroll mode
They don't work with dragging, anyway since flicking and scrollbars
operate in different directions.
2011-04-24 16:21:19 +02:00
Sebastian Kügler
547231f381 tame font family for CSS, makes it work =) 2011-04-24 14:22:18 +02:00