Commit Graph

12315 Commits

Author SHA1 Message Date
Alex Richardson
afe17f1dca Use QExplicitlySharedDataPointer as the replacement of KSharedPtr
This should be slightly more efficient than the solution from e7e2eedd
which uses QWeakPointer and QSharedPointer

REVIEW: 114932
2014-01-14 19:41:04 +01:00
Marco Martin
92fe107329 put namespace around KDeclarative 2014-01-13 21:21:14 +01:00
Sebastian Kügler
374d230932 wallpaperForSize moves to Plasma::Theme 2014-01-13 02:11:37 +01:00
Sebastian Kügler
cf049f28cb Merge branch 'master' into sebas/theme 2014-01-13 02:05:44 +01:00
Marco Martin
4235ec4842 export the location as tooltip property 2014-01-13 02:00:45 +01:00
Sebastian Kügler
ea2a4db7ab Move spacing, stylesheet and mSize into Plasma::Theme 2014-01-13 01:31:46 +01:00
Sebastian Kügler
563035a1fa themeName is already gone 2014-01-12 23:05:55 +01:00
Sebastian Kügler
a9b1f2c619 Most of iconSize moves to Plasma::Theme
The QQmlPropertyMap isn't moved with this commit, this needs a bit more
changing, so we do a separate one for that, once the more trivial stuff
is moved out.
2014-01-12 20:10:19 +01:00
Sebastian Kügler
25dcdd39a4 Color properties move into Plasma::Theme
They're now convenience API in Plasma:Theme, PlasmaCore.Theme is
becoming smaller and smaller. Another nail in its coffin.
2014-01-12 19:49:56 +01:00
Sebastian Kügler
13242c8a5f Move smallestFont and defaultFont properties into Plasma::Theme 2014-01-12 19:33:56 +01:00
Sebastian Kügler
eba1a79b57 themeName, useGlobalSettings and wallpaperPath move into Plasma::Theme 2014-01-12 19:17:37 +01:00
Marco Martin
69efa8d941 simplify the qml of the default tooltip 2014-01-12 19:10:06 +01:00
Marco Martin
331b6c5d0d resize and move the tooltip in one move 2014-01-12 17:29:49 +01:00
l10n daemon script
e03580242e SVN_SILENT made messages (.desktop file) 2014-01-12 04:11:43 +00:00
Aleix Pol
5c88e300bd Small changes
Fix typo on API documentation
Remove pointless debug output
Remove unneeded loop
2014-01-11 11:17:53 +01:00
l10n daemon script
a12184e857 SVN_SILENT made messages (.desktop file) 2014-01-11 04:00:30 +00:00
Sebastian Kügler
b54b42fcc0 Merge branch 'master' into mart/ToolTipArea 2014-01-10 18:57:58 +01:00
Sebastian Kügler
30d1e6bdba Fix reference error 2014-01-10 18:57:42 +01:00
David Edmundson
d200bd0d16 Add a new component ModelMenu
This is a wrapper round ContextMenu that allows one to populate
the menu items from a model

REVIEW: 114925
2014-01-10 12:28:29 +01:00
l10n daemon script
41b1194aac SVN_SILENT made messages (.desktop file) 2014-01-10 04:33:50 +00:00
Marco Martin
b233c6e735 simplify 2014-01-09 16:36:59 +01:00
Marco Martin
1f2f706c10 bit better with animations 2014-01-09 16:10:17 +01:00
Marco Martin
c53a00ce4b first crude direction support for tooltips
it still needs support for diagonal movements
2014-01-09 15:09:53 +01:00
Aleix Pol
9e46c82733 Remove duplicated calls
setPosition will call setGeometry internally, no need to do both.
Only call setEnabledBorder once, with the enabled borders
2014-01-09 13:35:07 +01:00
Marco Martin
3f094d59a5 tooltips always have all the borders 2014-01-09 13:13:29 +01:00
Marco Martin
5836128789 animated tooltips are back 2014-01-09 12:10:22 +01:00
Marco Martin
bb7157a59e reposition when resize if there is a visualparent 2014-01-09 11:39:18 +01:00
Aurélien Gâteau
e7e2eeddc0 Plasma::Svg: Replace use of KSharedPtr with QWeakPointer and QSharedPointer
This removes the last dependency from plasma-framework on kde4support.

This change is a bit more involved than other kde4support removals because
QSharedPointer does not provide a count() method. I therefore reworked the code
to store the SharedSvgRenderer as a QWeakPointer in s_renderers, making it
possible to detect when the last one goes away by creating a QWeakPointer guard
in SvgPrivate::eraseRenderer().

REVIEW: 114912
2014-01-09 10:13:57 +01:00
Sebastian Kügler
fb52783c48 Experiment with size limits in tooltip 2014-01-09 05:26:49 +01:00
Sebastian Kügler
62580bc331 Port calendar to ToolTipArea 2014-01-09 05:26:20 +01:00
Sebastian Kügler
f21ad15ed6 Fix up showing and hiding of the dialog
ToolTipArea.containsMouse allows the use to update the tooltip way
before it's shown, or when the contents of the tooltip should change
within an open dialog.

dismiss() and keepalive() allow handing over the tooltip dialog to
another item, in order to allow for a smoother handover when a new item
recycles the tooltipdialog. This avoids flickering when the tooltip
moves from one item to another.
2014-01-09 04:09:03 +01:00
Sebastian Kügler
b8fc3aea7f Merge branch 'master' into mart/ToolTipArea 2014-01-09 02:33:11 +01:00
Hrvoje Senjan
18def6e560 Fix accessdenied's install location
CCMAIL: notmart@gmail.com
2014-01-08 23:28:59 +01:00
David Edmundson
3e599d30b4 Move WidgetExplorer to be a private QML plugin
Instead of registering WidgetExplorer inside the shell, create a new qml
plugin in the org.kde.plasma.private namespace.

This is useful for running widgetexplorer in qmlscene.

This makes testing, debugging and profiling considerably easier.

REVIEW: 114914
2014-01-08 20:44:33 +01:00
Marco Martin
6a0525c1c3 ToolTip->ToolTipArea 2014-01-08 18:13:07 +01:00
Aurélien Gâteau
3b7fe5f2e6 K_GLOBAL_STATIC => Q_GLOBAL_STATIC
One less use of kde4support
2014-01-08 13:18:19 +01:00
Aurélien Gâteau
9fcb20fcd1 Make sure we find the Qt5-based version of KActivities 2014-01-08 13:18:19 +01:00
Aurélien Gâteau
c6e0b56d79 sortfiltermodeltest: qtest_kde.h => QtTest 2014-01-08 13:18:19 +01:00
Marco Martin
798b7665d4 work around a bug in url resolution of qmldir files 2014-01-08 13:06:23 +01:00
l10n daemon script
63fb80df2a SVN_SILENT made messages (.desktop file) 2014-01-08 04:02:16 +00:00
Marco Martin
9f3af64dac new way to do tooltips
manage it in c++
it still steals hover events from their target and not all features are there.

better than before tough
2014-01-07 21:44:50 +01:00
Alex Merry
0f1bc5e748 Add include(GenerateExportHeader) to CMakeLists.txt
We should not depend on the fact that KDECompilerSettings.cmake happens
to include it when we use generate_export_header().
2014-01-07 19:36:06 +00:00
Aleix Pol
e1a868e4f6 Fix QMenuItem connections
Don't emit twice textChanged when changed.
checkableChanged signal doesn't exist anymore. Use changed instead as
suggested by the Q_PROPERTY
2014-01-07 16:45:27 +01:00
Marco Martin
3feb6ac3ae use a QQmlPropertyMap instead of a variantmap
this way when a source is updated, only that will be updated, and not the whole data

so whould be way more efficient.

it remains API compatible
2014-01-07 14:33:20 +01:00
Aleix Pol
eb83537f63 Not being able to load an applet is a problem important enough to be a warning 2014-01-07 13:48:00 +01:00
Marco Martin
f9f89eda56 qmldir is like anybody else 2014-01-07 12:30:21 +01:00
Marco Martin
569ad6a41d applets can only import from their own private
importing from the private imports of another applet makes the applet fail to load
2014-01-07 11:16:11 +01:00
Martin Gräßlin
e50dbc413e Port EffectWatcher to XCB
Saves quite a lot of roundtrips to the XServer. Most important we
fetch the atom only once which means we don't have to refetch when
checking the property notify events.

REVIEW: 112445
2014-01-07 10:39:44 +01:00
l10n daemon script
aee973edcd SVN_SILENT made messages (.desktop file) 2014-01-07 03:52:22 +00:00
l10n daemon script
d2879f6226 SVN_SILENT made messages (.desktop file) 2014-01-06 04:02:34 +00:00