Marco Martin
00db8aa4b1
fix menu icon
2014-05-20 11:10:54 +02:00
Marco Martin
10cbbc5032
"menu" icon for air and oxygen
...
will be necessary to delete the cache for it to appear
BUG:335008
2014-05-20 10:58:32 +02:00
David Edmundson
989dc5c07c
Remove pointless include
2014-05-19 22:13:30 +02:00
Marco Martin
1e7a8b60a1
clean
2014-05-19 19:18:52 +02:00
Marco Martin
f7e25fe696
don't link to xml and iconthemes
2014-05-19 19:09:09 +02:00
Marco Martin
8155f2d542
don't link to qtquick
2014-05-19 18:32:34 +02:00
Marco Martin
fd87694c8d
fix build
2014-05-19 18:29:41 +02:00
Marco Martin
924818a0ca
don't link agains KConfigWidgets
...
not needed anymore
2014-05-19 16:58:37 +02:00
Marco Martin
d0816f1448
crash--
2014-05-19 15:35:04 +02:00
Marco Martin
72239e7f3c
apps can use more than one theme.
...
add the name in s_sharedFrames
CCBUG:335003
CCBUG:335004
2014-05-19 15:24:36 +02:00
Marco Martin
bbed0411b6
don't use another Thmeme copy
2014-05-19 14:58:19 +02:00
Marco Martin
682bf5f149
if containment gets destroyed, destroy all dialogs
...
BUG:334977
2014-05-19 11:15:51 +02:00
Marco Martin
9d3344d0a6
close the remove dialog if containment locks
...
BUG:334978
2014-05-19 11:11:19 +02:00
Eike Hein
cfda5c4d70
Update containsMouse even if tooltips are disabled globally.
...
ToolTipAreas are often the critical path for mouse handling, since
hover events are not filterable from below in the item hierarchy.
When disabling tooltips also stops updating containsMouse code has
no way to adapt, since there's no API to read the pref from within
QML. This changes the implementation of the pref to only prevent
tooltips from being shown, but still continue to handle hover events.
2014-05-19 10:25:25 +02:00
l10n daemon script
14ab84f5cc
SVN_SILENT made messages (.desktop file)
2014-05-18 08:22:25 +00:00
David Edmundson
2f16595036
Do not create a QSGNode when size is 0
...
This fixes a crash when resizing an icon to be super small
2014-05-16 15:44:25 +02:00
Marco Martin
2d29445164
set the shortcut to the action
...
BUG:334855
2014-05-16 10:03:45 +02:00
Martin Gräßlin
9653fad2f0
[declarative/core] Use proper GLXFBConfig for glxpixmap
...
We need to use a GLXFBConfig which matches the depth of the window
pixmap's depth. So far it used the GLXFBConfig of the GL context.
This worked fine for RGBA windows, but failed for RGB windows on e.g.
some NVIDIA drivers.
After this change the FBConfig of the context is completely ignored,
instead it tries to find a good FBConfig for a given depth.
Whenever a FBConfig for a given depth is found it's inserted in a
cache shared between all WindowThumbnails so that we don't have the
X roundtrips all the time.
BUG: 334241
REVIEW: 118110
2014-05-16 07:49:42 +02:00
Aleix Pol
35d1dd2d65
Don't try to delete null objects
...
Fixes a warning in Qt and makes sense of what the code it's actually doing.
At least it was not crashing!
2014-05-16 03:08:11 +02:00
David Edmundson
72c134b80f
Update includes to be from QtGui
2014-05-15 18:42:46 +02:00
Marco Martin
09453cfe89
parentHasFocus false if Qt::WindowDoesNotAcceptFocus
...
BUG:334819
2014-05-15 17:44:13 +02:00
Martin Gräßlin
5e057da091
Do not overwrite event mask in WindowThumbnailItem
...
The WindowThumbnail needs XCB_EVENT_MASK_STRUCTURE_NOTIFY on the window.
For this it needs to change the window attributes. But it needs to keep
the existing event mask to not break other code. Also it cannot remove
the event mask again, as there is no chance to know whether another
component requires STRUCTURE_NOTIFY.
This fixes the not updating items in the tasks applet as the event mask
needed for KWindowSystem got overwritten.
BUG: 331956
REVIEW: 118137
2014-05-15 17:28:21 +02:00
Patrick Spendrin
c68db518c8
remove unneeded header
...
REVIEW:118119
2014-05-15 16:54:31 +02:00
David Edmundson
096c6d247b
Port IconItem to native QSGTexture
...
Port IconItem to native QSGTexture including the animation.
This will save constantly uploading a new texture to OpenGL throughout the animation.
REVIEW: 116024
2014-05-15 16:19:59 +02:00
Marco Martin
5600cb0fea
dismiss on focus out if a View was clicked
...
BUG:334810
2014-05-15 14:40:03 +02:00
Marco Martin
7f4e72fb35
crash--
...
weird behavior:
qdeleteall crashes, deleting items one by one doesn't
2014-05-14 18:21:49 +02:00
Aleix Pol
3f78d130a5
Improve readability
...
QWeakPointer -> QPointer
2014-05-14 15:14:32 +02:00
Martin Gräßlin
02917b2335
Do not set a custom format on QQuickWindows
...
All QQuickWindows share a default format. By setting a custom format
it overwrites the default and this results in a format without a
stencil buffer being requested resulting in possible rendering errors.
REVIEW: 118122
2014-05-14 13:52:29 +02:00
l10n daemon script
1b3060649c
SVN_SILENT made messages (.desktop file)
2014-05-14 08:29:33 +00:00
Marco Martin
f5369d6349
resize the framesvg to the proper size
2014-05-13 19:41:56 +02:00
Martin Klapetek
2bd7101314
Calendar QML imports cleanup
2014-05-13 17:51:43 +02:00
Martin Klapetek
a4b08b0db3
Fix calendar font sizing
...
Reviewed-by: Sebastian Kügler
2014-05-13 17:44:45 +02:00
Aleix Pol
da190fa711
Reduce calls to ShellCorona::screenForContainment
...
Just store some values instead of calling repeatedly without reason.
2014-05-13 14:15:46 +02:00
Aleix Pol
cc661dfdd6
Save some calls to ShellCorona::screenGeometry
...
It's not an especially cheap function and it didn't make sense doing
it twice
2014-05-13 14:03:46 +02:00
Marco Martin
3f516ddda6
adapt api change
2014-05-13 13:45:32 +02:00
Marco Martin
34b86471d0
fix screen region mapping
...
BUG:334670
2014-05-13 13:42:44 +02:00
Marco Martin
55514d28c7
Merge branch 'mart/plasmoidMove'
2014-05-13 12:47:49 +02:00
Marco Martin
64cff59a31
api to add an existing applet and position mapping
2014-05-13 12:46:17 +02:00
Marco Martin
cdb9c8c1cc
addApplet function
...
offers a crude support to applet migration between containments
2014-05-12 21:07:41 +02:00
Martin Klapetek
247e829332
Proper if-else {} style
2014-05-12 19:21:06 +02:00
Marco Martin
895c5b6b2b
close the menu if it was already open
...
sometimes on plasma start, other context events may be triggered
while the menu is in its exec(), byt the qqmlincubator.
if so, close the already existing menu.
BUG:334562
2014-05-12 11:02:56 +02:00
Allen Winter
939e01f554
fix build
...
include <cmath> to declare floor()
2014-05-11 20:58:53 -04:00
Marco Martin
97831b616f
experim API to move plamoids between containments
2014-05-09 18:43:33 +02:00
Marco Martin
0b83de8fbb
"menu" icon
2014-05-09 18:01:48 +02:00
Marco Martin
759036e19f
remove dead code
2014-05-09 14:24:05 +02:00
Marco Martin
ea3544deb7
remove unused function
2014-05-09 14:21:23 +02:00
Marco Martin
91e6297114
export plasmoid.rootItem
2014-05-09 13:12:38 +02:00
Marco Martin
39047a0ab8
layout fixes
2014-05-09 13:12:30 +02:00
Marco Martin
79bf8bf138
no compactRepresentationCheck if not ready yet
2014-05-08 15:49:36 +02:00
Aleix Pol
2f027d4348
Remove pointless casts
2014-05-08 15:28:09 +02:00
Marco Martin
53893e8d0b
make the toolbox directly child of containmentinterface
2014-05-07 20:27:51 +02:00
Marco Martin
f21851548c
new api for availablescreensize/region
2014-05-07 15:18:21 +02:00
Marco Martin
842d8a7ad5
don't onAppExitCleanup on theme destroy
...
Theme is not a singleton anymore
2014-05-07 13:58:09 +02:00
Marco Martin
2d94312f97
support config for applets children of applets
2014-05-07 13:09:35 +02:00
Eike Hein
1805bb7496
Make sure the args part of Containment::createApplet(..., args) ends up in the applet.
2014-05-06 20:52:42 +02:00
Aleix Pol
556c1e321a
Remove random qDebug output
...
Makes it easier to spot the actual problems on the output. If there's
something that's actually indicating a problem, we should make it a
qWarning.
2014-05-06 19:57:37 +02:00
Marco Martin
ac963b8a27
emit externalData only after the ui is here
2014-05-06 19:28:44 +02:00
Marco Martin
a7928f29dd
if there are args, emit externalData
2014-05-06 19:06:31 +02:00
David Edmundson
f123671346
Check the right items are valid in iconItem
...
Reviewed-By: Marco Martin
2014-05-06 16:33:20 +02:00
Marco Martin
9d24b7e391
ensure to repaint on repaintNeeded
...
BUG:334394
2014-05-06 11:49:21 +02:00
Marco Martin
220e8766d2
fix css colors
2014-05-06 11:41:18 +02:00
Marco Martin
445081843c
this assert doesn't make much sense
2014-05-06 10:52:57 +02:00
David Edmundson
873106a7ca
Track screen in the containment when inside an applet
...
Make the system tray containment update which screen it is on when the
system tray applet is moved.
This fixes notifications if the panel is moved between screens.
REVIEW: 117946
2014-05-05 11:39:36 +02:00
Martin Gräßlin
491befb850
Add safety checks to XCB functions in WindowThumbnail
...
Prevents XCB warnings about BadWindow when a tooltip is shown for the
first time.
REVIEW: 117822
2014-05-05 07:18:06 +02:00
l10n daemon script
5713f72542
SVN_SILENT made messages (.desktop file)
2014-05-03 08:34:24 +00:00
Marco Martin
b27135a62b
icon for logout
2014-05-02 19:14:09 +02:00
Marco Martin
944c1549ae
avoid half pixels
2014-05-02 15:43:55 +02:00
Marco Martin
cee9c928e3
simplify theme
...
add an hint for the progressbar size, throw away the old elements legacy of pre-components
2014-05-02 15:39:08 +02:00
Marco Martin
d9823b2cd5
slightly more opaque
2014-05-02 14:55:53 +02:00
Marco Martin
90c8dbc255
simplify logic a lot
2014-05-02 14:55:43 +02:00
Marco Martin
02ccc2d98e
better radial symmetry look for the icon
...
BUG:333968
2014-05-02 12:49:23 +02:00
Marco Martin
a8d2315f34
slighly stronger contrast effect
2014-05-02 11:52:16 +02:00
Marco Martin
e6dd40919a
correct topleft color
2014-05-02 11:34:49 +02:00
l10n daemon script
d55335d2a9
SVN_SILENT made messages (.desktop file)
2014-05-02 08:52:44 +00:00
Marco Martin
a6eca11b84
restore corona immutability
...
BUG:334141
2014-04-30 19:31:56 +02:00
Eike Hein
2591685579
Emit signal when hiding due to focus loss to a non-related window.
2014-04-30 19:17:14 +02:00
Eike Hein
3ebbedead2
Also consider parent windows when evaluating focus loss for dialog hide.
2014-04-30 19:14:55 +02:00
Eike Hein
000d49463b
Don't hide when focus moves to a child window.
...
REVIEW:117897
2014-04-30 15:04:16 +02:00
Martin Gräßlin
af5a855da4
Discard window thumbnail pixmap after texture got destroyed by SceneGraph
...
If the window holding the WindowThumbnail item goes away the texture hold
by the node is destroyed but our bound window pixmap is not yet freed.
This results in incorrect state the next time the WindowThumbnail is
shown.
To get back into a clean state discardPixmap() is called if there is no
texture but a bound low level pixmap.
BUG: 333482
REVIEW: 117824
2014-04-30 13:14:44 +02:00
Marco Martin
4851be6e1e
don't crash if destroy happens before first sync
2014-04-29 18:21:28 +02:00
David Edmundson
97d6ba2dab
Add a ComboBox to PlasmaComponents
...
REVIEW: 117798
2014-04-29 16:24:22 +02:00
Marco Martin
e2f1cc289e
fix arrows svg
...
BUG:333926
2014-04-29 13:43:25 +02:00
l10n daemon script
238bc54c5b
SVN_SILENT made messages (.desktop file)
2014-04-29 10:13:52 +00:00
l10n daemon script
012b0681c9
SVN_SILENT made messages (.desktop file)
2014-04-29 04:51:45 +00:00
Sebastian Kügler
d2417ee82e
Switch to dark shading for Breeze Dark
...
Dark shading for panel and dialog background. This effectively lets
Plasma::Theme decide the shading based on the text color and results in
a dark panel.
2014-04-29 00:52:12 +02:00
Sebastian Kügler
670135db50
Fix color in TextField and TextArea
...
viewTextColor is wrong here, we have to use buttonTextColor. This
follows Plasma 1, and makes texts in fields and areas in white-on-black
themes work.
BUG:333837
2014-04-29 00:24:09 +02:00
l10n daemon script
d2f752597f
SVN_SILENT made messages (.desktop file)
2014-04-28 15:59:04 +00:00
Aleix Pol
94dc5c30c9
Remove unneeded statements
2014-04-28 17:18:11 +02:00
Marco Martin
3df85902ec
adjust mainItem position to borders
...
also in syncToMainItemSize() we need to reposition mainItem,
not only in the other way around syncMainItemToSize()
2014-04-28 16:54:04 +02:00
Marco Martin
042c4d815a
give a default icon
...
give the "plasma" icon to dialogs.
It will be never show, but windowmanagers should complain less
2014-04-28 16:46:19 +02:00
l10n daemon script
8fcd320f27
SVN_SILENT made messages (.desktop file)
2014-04-28 12:45:07 +00:00
l10n daemon script
b9130c7c24
SVN_SILENT made messages (.desktop file)
2014-04-28 09:02:00 +00:00
l10n daemon script
880da9b195
SVN_SILENT made messages (.desktop file)
2014-04-28 05:09:56 +00:00
Hrvoje Senjan
a4e2b38d51
unbreak dataengine loading after PLUGIN_INSTALL_DIR change in e-c-m
2014-04-28 02:42:02 +02:00
Aleix Pol
9cd8f9fbeb
Port plasma code to PLASMA_RELATIVE_DATA_INSTALL_DIR
2014-04-27 23:06:32 +02:00
l10n daemon script
dfd425ae82
SVN_SILENT made messages (.desktop file)
2014-04-27 21:04:10 +00:00
l10n daemon script
cbf1e988e9
SVN_SILENT made messages (.desktop file)
2014-04-27 16:44:26 +00:00
Aleix Pol
e6f1fec0c7
Install all plasma files in a prefix/share/plasma directory
...
At the moment, we could say that plasma is co-installable by chance,
it's only working because KF5 dropped the apps relative directory.
This change introduces a PLASMA_RELATIVE_DATA_INSTALL_DIR that will
be available to know where in share the components are and
PLASMA_DATA_INSTALL_DIR to know where data has to be installed to.
Reviewed by David Edmundson
CCMAIL: plasma-devel@kde.org
2014-04-27 17:14:22 +02:00
l10n daemon script
d149d719a9
SVN_SILENT made messages (.desktop file)
2014-04-27 05:19:59 +00:00
Aleix Pol
1294051eaf
Adapt to changes in KDEInstallDirs
...
kde5/services is kservices5
kde5/servicetypes is kservicestypes5
2014-04-26 19:50:53 +02:00
David Edmundson
4ce14a1654
Remove duplicated ConfigLoader
...
This moved to KConfigGui as KConfigLoader.
Use of private KConfig API in Service had to be ported to use only
public method.
REVIEW: 117784
2014-04-26 17:10:13 +02:00
Alex Merry
c4f408a334
Fix Plasma_INCLUDE_INSTALL_DIR variable in (another) config module
...
This should have been part of the INCLUDE_INSTALL_DIR to
KF5_INCLUDE_INSTALL_DIR commit.
2014-04-26 13:16:21 +01:00
Alex Merry
2ef3b32dcd
Use KF5_INCLUDE_INSTALL_DIR and KF5_INSTALL_TARGETS_DEFAULT_ARGS
...
This is instead of INCLUDE_INSTALL_DIR and INSTALL_TARGETS_DEFAULT_ARGS,
which will lose the "KF5" suffix from the include path.
2014-04-26 12:14:03 +01:00
Alex Merry
1d84c0bdc1
Remove NO_MODULE argument from find_package(KF5) in rename test
...
This is no longer wanted, since ECM has a FindKF5 module.
2014-04-26 10:31:48 +01:00
Aurélien Gâteau
d988b10870
Centralize Qt5 component loading and use same variable as other frameworks
2014-04-26 02:20:13 +02:00
Aurélien Gâteau
ae92074071
warning--
2014-04-26 02:16:10 +02:00
Aurélien Gâteau
69f95fec24
cmake debug message--
2014-04-26 02:10:51 +02:00
Aurélien Gâteau
d0bd7f77bf
cmake warnings--
...
No need to define projects if we don't use any ${project}_* var.
2014-04-26 02:10:23 +02:00
Aurélien Gâteau
c9a3fb4021
hardcoded searchpath--
2014-04-26 02:07:16 +02:00
Kevin Ottens
72ba7b4146
Apply the astyle-kdelibs script
2014-04-26 01:48:37 +02:00
Kevin Ottens
c2aa81e2d4
All source code under src per policy
2014-04-26 01:48:37 +02:00
Marco Martin
38d06b784a
get rid of dummyGroup()
...
it was used only in extenders that don't exist anymore
2014-04-25 23:06:36 +02:00
Marco Martin
65c5c0dfe8
slightly more deterministic tooltip animations
2014-04-25 22:44:08 +02:00
Aurélien Gâteau
fcbb057dca
Disable Python script engine for now, it requires bindings for libplasma
...
Approved by notmart
2014-04-25 21:18:07 +02:00
Aurélien Gâteau
b3b95fa77d
Refresh doc to use README.md and markdown
2014-04-25 21:06:00 +02:00
Aurélien Gâteau
0efc0572af
Consolidate all plasma-framework catalogs
2014-04-25 10:40:12 +02:00
Aleix Pol
3a150bb0e7
Don't overdo lambdas
2014-04-25 01:25:03 +02:00
Aleix Pol
7c83fd542e
Finish ToolTip::containsMouse property
...
The documentation was copy-pasted and was wrong.
The property name started with m_, which is odd and I don't see a reason
for it. Also I didn't find any code that uses it.
REVIEW: 117760
2014-04-25 01:22:58 +02:00
Marco Martin
c4bdaa1610
restore border check on window move
2014-04-24 17:45:01 +02:00
Marco Martin
55e2b27d53
change a bit resize logic
...
Make sure to always execute one between syncToMainItemSize()
and syncMainItemToSize() in a mutually exclusive fashion.
this should (hopefully) fix the dancing dialog problem
and dialogs with content of the wrong size
CCBUG:332576
CCBUG:332812
2014-04-24 17:29:40 +02:00
Aleix Pol
437962f2e8
Introduce a new plasmoid status
...
REVIEW: 117722
2014-04-24 16:56:51 +02:00
Antonis Tsiapaliokas
3798ac076a
Remove whitespace
2014-04-24 13:33:30 +03:00
Marco Martin
7ce31b6b69
correct the last commit
2014-04-23 21:14:56 +02:00
Marco Martin
fc98e6323b
always use all the borders for floating dialogs
2014-04-23 20:57:52 +02:00
Eike Hein
1e5524525f
Revert "Install header for Dialog so it's publically subclassable as discussed."
...
This reverts commit baff217874
.
2014-04-23 19:48:04 +02:00
Eike Hein
baff217874
Install header for Dialog so it's publically subclassable as discussed.
...
CCMAIL:notmart@gmail.com
CCMAIL:aleixpol@kde.org
2014-04-23 19:41:01 +02:00
Marco Martin
2e7d295e9e
sync borders after adjusting geometry
2014-04-23 17:20:47 +02:00
Davide Bettio
e1a2555278
QML appletinterface: add support for actionTrigered(name) method so we don't have to create an action_name method for each contextmenu action.
...
Signed-off-by: Davide Bettio <bettio@kde.org>
2014-04-22 20:08:20 +02:00
Marco Martin
1d5c6e5964
revert 0b4272fa56
2014-04-22 15:32:20 +02:00
Marco Martin
0b4272fa56
guard the pointer
2014-04-22 15:15:40 +02:00
Marco Martin
47dfda75c0
introduce the signal Corona::startupCompleted()
...
when emitted we are sure all containments *graphics objects*
have been created
2014-04-22 14:58:12 +02:00
Davide Bettio
ac1e50d3aa
TextArea.qml: Add backgroundVisible property ( http://qt-project.org/doc/qt-5/qml-qtquick-controls-textarea.html#backgroundVisible-prop ) so it will be possible to use this componenet to write Notes plasmoid.
...
Signed-off-by: Davide Bettio <bettio@kde.org>
2014-04-22 11:35:55 +02:00
l10n daemon script
16ea0c68f6
SVN_SILENT made messages (.desktop file)
2014-04-19 04:52:27 +00:00
l10n daemon script
709d60a737
SVN_SILENT made messages (.desktop file)
2014-04-18 05:16:48 +00:00
Marco Martin
13016a42b4
don't make the tooltip dance
...
note: this is different from the "dancing dialog" bug.
the tooltip should now appear in the proper position
and behave reasonably good
2014-04-17 20:06:43 +02:00
Michael Palimaka
d488420dcb
Move stray tests to the root directory to be more like
...
other frameworks.
REVIEW: 117599
2014-04-18 02:25:50 +10:00
Marco Martin
a2b436aef8
remove all references to runners
2014-04-16 18:56:22 +02:00
Marco Martin
18f54dff73
make possible for containments to run as applets
...
take into account the slightly different behaviour needed when containments such as folderview act as a normal plasmoid
BUG:333320
2014-04-14 14:03:49 +02:00
Aleix Pol
0e3978e22c
Expose the activated signal into the plasmoid
...
This was a regression from Plasma 1.
Reviewed by David Edmundson
2014-04-12 21:21:35 +02:00
Aleix Pol
9a305de76d
Fix activationAction connection
...
It was connecting to a deprecated signal, use QAction::changed instead.
Since QAction::changed is more generic and modifying the shortcut seems
expensive, actually check that the property is different from the previous
value.
Reviewed by Vishesh Handa.
2014-04-12 20:09:08 +02:00
Marco Martin
333bd207ac
react dinamically to tooltip config change
2014-04-11 17:39:40 +02:00
Marco Martin
d342c2e186
use the global option for tooltips
...
still has to watch for config file changes
2014-04-11 17:18:28 +02:00
Marco Martin
6a5350786a
swap top and bottom too
...
BUG:333281
2014-04-11 15:52:08 +02:00
Marco Martin
a0b52f4bf8
LeftEdge and RightEdge positioning was swapped
...
BUG:333281
2014-04-11 15:26:02 +02:00
Marco Martin
96e2522b8a
allow urls that are just an UrlString
...
BUG:333284
2014-04-11 12:55:05 +02:00
Marco Martin
767336e87e
isContainment() only true for proper containments
2014-04-10 20:53:19 +02:00
Marco Martin
7e3b2ae8af
move the applet configScheme to the new group
...
after migration
2014-04-10 20:41:34 +02:00
Marco Martin
d8731d7806
re-add Corona::createContainmentDelayed()
...
unfortunate, but necessary for on the fly containment plugin switch
2014-04-09 22:15:46 +02:00
Jan Grulich
25bb220724
Propagate containsMouse property and move the paddingitem to the mousearea
...
Reviewed by Marco Martin on irc
2014-04-09 16:01:23 +02:00
Marco Martin
06d8fea792
get rid of displayAspectRatio
...
this property is broken by design: units doesn't know anything about views, therefore it can't know what is the current screem
BUG:333068
2014-04-09 12:00:10 +02:00
Marco Martin
ba4e6825a4
don't create expander for containments
...
or always expaqnded applets
2014-04-08 20:14:06 +02:00
Marco Martin
10f0dc51b9
don't emit activate on reactToScreenChange
...
this makes the delete dialog *not* freeze palsma
2014-04-08 19:47:50 +02:00
Marco Martin
9a9d85c5e9
emit statusChanged when it closes
2014-04-08 19:02:33 +02:00
Marco Martin
d68bd29e50
binding loop--
...
after repeateddly changing the orientation no elements go crazy size wise
CCBUG:332701
2014-04-07 16:53:17 +02:00
Marco Martin
b2ecbd7ae5
make sure dialog is resized on minimumSize changed
2014-04-04 21:45:38 +02:00
Marco Martin
e6f71eebd1
remove the shell from plasma-framework
2014-04-04 17:55:56 +02:00
Marco Martin
2f10450c17
make the animate property do something
...
BUG:332884
CCBUG:332869
2014-04-03 18:08:13 +02:00
David Edmundson
1a65efb619
Remove now unused code to handle positioning widget explorer
2014-04-03 15:55:46 +02:00
Marco Martin
d0908ad735
use views geometries to calculate availableArea
...
Don't trust anything X11: use our internal tracking of panel
geometries to compute the corona availablescreenarea
also because the space behind a panel not autohide but without struts is to be considered unavailable as well
BUG:332850
2014-04-02 19:39:08 +02:00
Marco Martin
aeabbe9444
new AppletInterface in case of inexistent plugin
...
if the plugin name is wrong, create a fullfledged appletinterface for the error visualization.
This will make applet removal possible
BUG:332971
2014-04-02 18:59:47 +02:00
Marco Martin
857b0b8069
don't try to load dataengines with and empty name
2014-04-02 11:12:11 +02:00
Marco Martin
2fd322536b
text areas use textViewColor
2014-04-01 17:18:12 +02:00
Marco Martin
d597e07fd5
remove dead code
2014-03-31 20:37:52 +02:00
Marco Martin
a326f85cd8
a breeze-dark theme
...
this theme won't have any graphics, just colors that get applied with css on the default svgs
2014-03-31 20:36:37 +02:00
Martin Klapetek
461042a240
Use installEventFilter calls properly
...
Should fix some font-change related bugs
2014-03-31 18:49:45 +02:00
Marco Martin
82e9bd46d0
don't depend from Qt5Declarative
...
That's the qt5 port of QGraphicsView-based QML
2014-03-31 18:37:28 +02:00
Marco Martin
7438ba4164
ignore close events
...
try harder to not get automatically moved or resized.
on wayland probably kwin shouldn't even rty to auto position frameless windows from the plasma process, but for now is a workaround
2014-03-31 18:32:27 +02:00
David Edmundson
e59a86da32
Supress warning of re-defined signal in panelview
2014-03-31 17:47:06 +02:00
Marco Martin
8c54e053a1
alt+f4 shouldn't work on the dashboard
...
BUG:332810
2014-03-31 16:44:45 +02:00
Aleix Pol
018bd82aca
Drop QApplication usages in units.cpp
...
Drop dependency to QtWidgets from this file. We can start assuming that it
might not be that functional in some platforms.
Use QGuiApplication counterparts, based mostly on QScreen, which could make
it more powerful in the future.
REVIEW: 117161
2014-03-30 23:05:51 +02:00
David Faure
37179fb7a0
Include ksharedconfig.h (since it will be removed from kpluginfactory.h)
2014-03-29 08:22:28 +01:00
Marco Martin
91cb51e3c3
fix behavior of inverted sliders
...
BUG:332688
2014-03-28 11:51:19 +01:00
Marco Martin
f3aed6ac4a
less groowe width rather reposition of handle
...
BUG:332587
2014-03-28 11:43:51 +01:00
Marco Martin
144026951e
add activities() to the script engine
2014-03-28 11:13:33 +01:00
Marco Martin
5cfa48062e
add setCurrentActivity to scripting
2014-03-28 11:04:36 +01:00
Marco Martin
4b7b2356e0
create the containmentonly in insertActivity, for scripting
2014-03-28 11:04:36 +01:00
Marco Martin
abdca6f189
Make the desktop scripting activity aware:
...
adapt the desktop scripting from the time when Containment == activity to creating actual activities
* activities() -> desktops()
* activityById() -> desktopById()
* activityForScreen() -> desktopForScreen()
To create a new activity, there is the new global function
createActivity(activtyName, containmentPlugin (optional))
when you want to access the actual containments created by the activity, you do
Array[containments] = desktopsForActivity(activityId)
2014-03-27 21:39:36 +01:00
Ivan Čukić
04bf0ddaed
The icon dialog can now be closed on request
2014-03-27 20:11:28 +01:00
Ivan Čukić
f53a976ae7
Bypassing the window manager does not imply no focus
2014-03-27 19:51:16 +01:00
Marco Martin
5b4e2bff36
when the controller is open, force panel mode
...
force to "Windows can cover" when the controller is open: it's the least dangerous mode.
this also disables the struts while the controller is open, this makes panel resize faster
Means the behavior of struts disabling is *INTENDED*
BUG:332187
BUG:332592
2014-03-27 12:37:40 +01:00
Bhushan Shah
79684002f6
Formats are now part of KDeclarative repo
2014-03-27 01:57:47 +05:30
Martin Klapetek
ce878ee787
Use installEventFilter properly
...
BUG: 332501
2014-03-26 14:24:46 +01:00
Sebastian Kügler
dbbf69b4c5
Use Font.Light variants for PlasmaExtras' Heading and Title
2014-03-26 01:17:11 +01:00
Sebastian Kügler
84a212469f
Disable elide in TabButton
...
This messes up the fontmetrics needed to size the tab button. Before,
the labels would be elided no matter what.
This is more a band-aid than a real fix, we'll need to investigate how
we can make the sizing work correctly, but at least it "unscrews" the
layout of all of our tabbars.
2014-03-26 00:13:54 +01:00
Sebastian Kügler
71976aec92
More specific exit codes for plasmapkg2
2014-03-25 22:22:59 +01:00
Alex Merry
9aabcbe067
Explicitly specify link interface libraries for libKF5PlasmaQuick
...
The headers may not be public (yet?), but it doesn't hurt to have this
stuff specified properly.
REVIEW: 117060
2014-03-25 19:40:00 +00:00
Marco Martin
141df3d98d
if a containment gets removed, remove from bookeeping
...
CCBUG:332593
2014-03-25 18:26:25 +01:00
Marco Martin
c452c055da
don't try to hide the panel when the ui is not ready
2014-03-25 18:03:42 +01:00
Marco Martin
91642b0868
qtextracomponents->kquickcontrolsaddons
2014-03-25 17:10:25 +01:00
Marco Martin
c8844799eb
don't lose the final position on showEvent
...
if there is an animation running and a showEvent happens, set the position to the supposed endValue before killing the animation
BUG:331981
2014-03-25 16:24:20 +01:00
Marco Martin
1415c07d4b
the bounds of the slider are centered on the handle
...
BUG:332587
2014-03-25 15:30:00 +01:00
Marco Martin
c4e6f06f42
expose the plugin name
2014-03-25 15:13:22 +01:00
Sebastian Kügler
637bf0ea19
Add --no-respawn (-n) option to plasma-shell
...
Disables automatic restarting of plasma-shell, useful for debugging
purposes.
BUG:332515
2014-03-25 02:25:09 +01:00
Marco Martin
900e0108e1
if no position was provided, negative pos
...
call the qml part with an invalid position if not supplied, will make new applets in the panels being put in the end instead of at the beginning
2014-03-24 18:15:50 +01:00
Marco Martin
6c6aeef6b5
api (still not ui) to add panel spacer
2014-03-24 18:05:00 +01:00
David Edmundson
b5dc457570
Compact two identical conditions
2014-03-24 17:07:30 +01:00
David Edmundson
399e61901f
don't crash when expanding applets whilst loading
...
BUG: 332429
2014-03-24 17:05:40 +01:00
Eike Hein
6a6bf8e80c
Add back a public slot to procedurally hide a ToolTipArea's tooltip.
2014-03-24 15:19:02 +01:00
l10n daemon script
99900255bf
SVN_SILENT made messages (.desktop file)
2014-03-23 04:47:33 +00:00
Martin Gräßlin
9ecdcf5ae0
Don't crash in WindowThumbnail if XCB is not available
...
In case that XCB is not available we need to use the window icon.
2014-03-21 22:07:56 +01:00
Marco Martin
69cac03a64
the icon is now called org.kde.plasma.icon
2014-03-21 17:33:26 +01:00
Marco Martin
614af69f02
never show the dialog on destroy()
...
the remove action is now hooked to another slot, askDestroy()
it *MAY* solve the "Do you wish to remove this default desktop" bug, or may get it worse
CCBUG:332137
2014-03-20 19:22:27 +01:00
Marco Martin
0205aa1ec6
if not flat, use button color
...
BUG:332138
2014-03-20 17:55:22 +01:00
Marco Martin
ff7aebb1e2
guard for invalid root object
...
BUG:332361
2014-03-20 17:46:06 +01:00
Marco Martin
e64ab583c5
delete imports now provided by kdeclarative repo
2014-03-20 16:20:59 +01:00
Marco Martin
213584e987
export private signal
2014-03-19 18:31:26 +01:00
Marco Martin
b5a61d00a0
don't start if already running
2014-03-19 18:31:26 +01:00
Martin Klapetek
f1af24c40e
Don't try to set the Dialog's state when being destroyed
...
Because it crashes.
Reviewed-by: Marco Martin
2014-03-19 16:10:19 +01:00
Marco Martin
546dd32304
Dialog is now
...
it statically links FrameSvgItem and Units.. they may become libplasmaquick eventually but for now is fine like that
2014-03-19 12:47:09 +01:00
Marco Martin
4e03ec61e0
use PlasmaQuick:: namespace
2014-03-19 11:59:15 +01:00
Marco Martin
ac98abf67c
documentation++
2014-03-19 11:55:00 +01:00
Marco Martin
97bfabd4d7
remove transientParent property
2014-03-19 11:45:10 +01:00
Marco Martin
49252b0b5d
adjustGeometry is protected
2014-03-19 11:32:01 +01:00
Marco Martin
8b114a3f59
move size adjustment in private
2014-03-19 11:21:54 +01:00
Marco Martin
fe45629b99
updateInputShape is private
2014-03-19 11:06:56 +01:00
Marco Martin
68ae939d04
move the slots in private
2014-03-19 10:23:25 +01:00
Marco Martin
7e07bd7a3e
move screenForItem in the dpointer
2014-03-18 21:40:36 +01:00
Marco Martin
f412d1a9d0
remove :frameSvgItem()
2014-03-18 21:38:02 +01:00
Marco Martin
beac07c97d
call the class Dialog
2014-03-18 21:34:58 +01:00
Marco Martin
1809fe5429
move private stuff to dpointer
...
it will be made into a library, prepare for it
2014-03-18 21:21:34 +01:00
Marco Martin
dd2c4c7c28
relicense all lgpl
2014-03-18 12:13:38 +01:00
Aurélien Gâteau
43e2b0f670
Unbreak build of code using plasma-framework
...
plasma_export.h is now installed in include/plasma/, not in include/.
Code using plasma-framework does not have include/plasma in its include
directory list, so plasma-framework headers must refer to others using
</plasma/foo.h>, not "foo.h".
CCMAIL: aleixpol@kde.org
2014-03-18 12:01:36 +01:00
Marco Martin
cc6a87cee4
remove unneeded dependencies
2014-03-18 11:56:54 +01:00
Aleix Pol
2ef12f1ee8
More headers tweaking
...
Don't install the camel-case headers twice
Look for the plasma_export.h in the current directory instead of jumping
around in the project.
2014-03-17 16:48:49 +01:00
Aleix Pol
a3641aac25
Fix headers management in plasma-framework
...
Use generate headers instead of having them stored in the repository.
Figure out how relative paths are forwarded around, there were some weird
things.
Stop installing plasma header files in the KDE/ prefix.
2014-03-17 16:28:24 +01:00
Martin Gräßlin
d2452e2917
EGL/X11 backend for WindowThumbnail QQuickItem
...
Introduces a new optional dependency to EGL. If EGL is found the
WindowThumbnail gets compiled with EGL support. The EGL support is
unlike Qt's XCB plugin not mutual exclusive to the GLX backend, thus
it's possible to compile with EGL and GLX at the same time.
By that this implementation is prepared for the case that Qt supports
EGL or GLX through runtime selection.
In practice EGL support is only useful if Qt is compiled with GLESv2.
In that case the corebindingsplugin gets linked against Qt5::Gui_GLESv2
to get the dependency to GLES.
The implementation makes use of the EGL_KHR_image extension
(or EGL_KHR_image_base and EGL_KHR_Image_pixmap) and
the GL_OES_EGL_image extension to bind the X pixmap to an EGLImageKHR.
REVIEW: 116627
2014-03-17 09:09:23 +01:00
Marco Martin
710fe45527
move the shell packages in libplasmaquick
2014-03-15 17:25:42 +01:00
Marco Martin
07637b7f34
remove dead code
2014-03-14 18:03:15 +01:00
Martin Klapetek
b36ba7c9b6
Return intersection of KWS::workArea() and QScreen::availableGeometry()
...
KWindowSystem::workArea() gives us the whole workarea, which in case of dual screens is the whole virtual desktop. QApplication::desktop()->availableGeometry(id) gives the full screen geometry for the given screen. So we just intersect them and have a proper availableScreenRect().
This is just a temporary method until the patch in [1] is merged in Qt
and released, then we can revert back to the commented method.
[1] - https://codereview.qt-project.org/#change,80606
BUG: 331968
2014-03-11 19:14:15 +01:00
Marco Martin
cc8de5a789
remove unused variable
2014-03-11 17:07:15 +01:00
Marco Martin
d397358346
Make the delete containment dialog async
...
a syncronous dialog brings crashes if something gets deleted while the dialog's event loop is in execution
BUG:332027
2014-03-11 17:04:31 +01:00
Martin Klapetek
62d35541ed
Add availableScreenRect(int id) to ContainmentInterface
...
Now plasmoids can simply get the available screen rect
2014-03-11 15:30:45 +01:00
Martin Klapetek
699057ad33
Emit geometry changes on screen added/removed events
2014-03-11 15:30:45 +01:00
Martin Klapetek
6a1fa18986
Add availableScreenRect(int id) to Corona base class
...
This is already implemented in ShellCorona and is quite handy too
Reviewed-by: Marco Martin
2014-03-11 15:30:45 +01:00
Marco Martin
5fe26c0da1
close at applet destruction
...
and bury behind a weakpointer
BUG:332015
in some cases seems a crash still happens, but is completely unrelated with the one in 332015, so should be a separate bug
2014-03-11 12:44:04 +01:00
Martin Klapetek
cc6cc00282
Remove useless casting to itself
2014-03-10 22:55:06 +01:00
Marco Martin
dee8ff8645
delete remove action for desktops
...
desktop containments never have a remove action.
the only way to be deleted is from the activity manager
2014-03-10 19:47:46 +01:00
David Edmundson
effb5e8ad1
Add temp workaround to avoid black squares in main context menu
...
BUG: 331809
2014-03-10 17:50:50 +01:00
Sebastian Kügler
a1dce4bb86
Update theme on KWindowSystem::compositingChanged
...
BUG:328651
2014-03-09 23:50:21 +01:00
Ivan Čukić
4b3ae32b17
Added IconDialog class to the platform components
2014-03-08 18:02:39 +01:00
Marco Martin
50b5c62d81
fix highdpi mode for slider and progressbar
...
progressbar looks like still needs some serious work
2014-03-07 17:59:33 +01:00
Àlex Fiestas
a3c4e95bb8
Use Qt::CTRL since what we want there is the modifier
...
This fixes the bug where kglobalaccel "eats" the | character, what
was actually happening is that Qt::Key_Control + Qt::Key_F12 was
producing a valit KeySquence which was Shift+\, and Shit+\ is what
you use in US keymaps to make |.
2014-03-07 17:44:12 +01:00
Martin Klapetek
fa643132bc
Use QScreen::virtualGeometry() for computing panel struts
...
QScreen::availableGeometry() returns screen size minus the struts, which is fine on first Plasma start. But if Plasma crashes, the struts set on the startup are not cleared and then when Plasma autorestarts, availableGeometry() gives it rect with the old struts to which Plasma adds one more panel height (so the total strut height is panel.height()*(numberOfCrashes+1)).
Using QScreen::virtualGeometry() gives us the whole screen including
struts and the new struts are computed and set properly.
Reviewed-by: Marco Martin
2014-03-07 17:18:32 +01:00
Ivan Čukić
924fd195ae
Oprimized Units::devicePixelIconSize
2014-03-07 09:26:33 +01:00
Ivan Čukić
6008c889f5
Added the units.displayAspectRatio property
2014-03-06 20:24:41 +01:00
Marco Martin
fc6938887b
correctly restore saved popup size
2014-03-06 15:57:37 +01:00
Marco Martin
ef1010f312
set maximum size only when there is actually an hint
2014-03-06 15:26:05 +01:00
Marco Martin
3d5f105c80
use hints to ensure proper size
2014-03-06 14:37:19 +01:00
Marco Martin
83b0c8cc3c
re set the flags on show
...
ensured the dialog is a tooltip, on top and doesn't accept focus
2014-03-06 14:36:51 +01:00
Martin Gräßlin
3303f9b979
Set state in PlasmaCore.Dialog after Qt handled the show event
...
Qt's xcb plugin updates _NET_WM_STATE and ignores anything we set,
thus we need to ensure that our additional states are set after Qt
set the state. Luckily KWindowSystem does not remove the state which
is already set.
Reviewed-By: Marco Martin
2014-03-06 13:24:45 +01:00
Marco Martin
ba91c53c12
move the skiptaskbar flag set to showEvent
2014-03-06 13:10:55 +01:00
David Edmundson
58e45d97b1
Remove unused check against local shortcuts
2014-03-05 23:22:36 +01:00
David Edmundson
fdd627c629
Use promptStealShortcutSystemwide from frameworks
2014-03-05 23:20:56 +01:00
David Edmundson
a403c3f3ca
Don't check for conflicts when first setting keyboard shortcut
2014-03-05 23:20:56 +01:00
Marco Martin
f4daf5f7d9
export location
2014-03-05 20:58:42 +01:00
Marco Martin
6fe147f4d7
new graphics for tabbars
2014-03-05 20:14:52 +01:00
Marco Martin
0f4654643f
don't always do the "dialog inside panel"
...
if a window is not outsideParentWindow or all the borders are enabled, don't do the trick
this fixes positioning of systray tooltips
2014-03-05 20:14:52 +01:00
David Edmundson
1dc6d98aa3
Allow shift in global shortcut
2014-03-05 19:37:41 +01:00
David Edmundson
a8ddfe1def
Connect to real window changed signal
...
In PanelView screenChanged is redeclared in order to create a property.
However this signal is not the one that is emitted.
This fixes the confif following the panels when moving between screens
Reviewed-by: Aleix Pol
2014-03-05 18:41:50 +01:00
David Edmundson
b5a04c55ea
Add missing license
2014-03-05 18:09:47 +01:00
David Edmundson
48e8e588a6
Add documentation on FrameSVGItem updating
2014-03-05 18:07:54 +01:00
David Edmundson
fb7451051e
Expose globalShortcut in AppletInterface so it can be set from the config
2014-03-05 17:28:50 +01:00
David Edmundson
7e7fe6f972
Add KKeySequence QtQuick clone
2014-03-05 17:28:50 +01:00
David Edmundson
6599c25087
Port FrameSVGItem to paint directly
...
REVIEW: 116618
2014-03-05 17:24:13 +01:00
Marco Martin
c3d6c00a95
if parent = 0, component is complete
...
the tooltip dialog is created from c++, not qml
this fixes dialog positioning for tooltips
2014-03-05 17:03:47 +01:00
Aleix Pol
f8be8ab0fd
Fix glitch in PanelView
...
Never use the window size to figure out the thickness: This is bad because
sometimes this will get called before the move hasn't been effective, which
results in full-screen struts. Use the thickness method from KConfig
instead.
REVIEW: 116614
2014-03-05 16:09:16 +01:00
Aleix Pol
78c6e452df
Reduce QWindow::setGeometry calls
...
Don't call setPosition and resize, but do it all at once in a setGeometry
call. It simplifies the life of the QPA and WM, also it's quite faster as
we reduce the calls to the WM by half (both setPosition and resize are
syntax-sugar for setGeometry)
REVIEW: 116614
2014-03-05 16:08:09 +01:00
Aleix Pol
da325d037b
Make the PanelView::distance change immediate
...
This way we can use it from the EdgeHandle without having to stop moving
the mouse first.
Reviewed by Marco Martin
2014-03-05 16:06:32 +01:00
Aleix Pol
03dcec82b5
Remove unused variables
2014-03-05 14:28:06 +01:00
Aleix Pol
017387a0b2
Fix dis/connects in the panelview
...
When porting to the new syntax I saw that the slot was also missing, I
made it trigger the unhide timer.
REVIEW: 116613
2014-03-05 14:26:35 +01:00
Marco Martin
b388a0d76b
expose hasElementPrefix() method
2014-03-04 18:13:46 +01:00
Marco Martin
a0aa88f00d
formFactorChanged, locationchanged signals
2014-03-04 18:13:19 +01:00
Marco Martin
9cac91b652
try harder to avoid scroll buttons
...
also event copmpress the relayout
2014-03-03 22:24:05 +01:00
Marco Martin
9c600c5d68
add a new property in TabBar: tabPosition
...
it makes the tabbar eventually vertical and appearing oriented differently towards the content
possible values:
Qt.TopEdge (default)
Qt.LeftEdge
Qt.RightEdge
Qt.BottomEdge
2014-03-03 19:43:13 +01:00
David Faure
4f784339b6
Make ktexteditor an optional dependency
2014-03-01 18:47:00 +01:00
Marco Martin
31707f406c
locally manage the ToolTipDialog singleton
...
ToolTipDialog is not a Q_GLOBAL_STATIC because QQuickwindows as global static
are deleted too later after some stuff in the qml runtime has already been deleted,
causing a crash on exit
2014-02-28 19:12:14 +01:00
Marco Martin
0a8df8895f
don't access a global static when destroyed
2014-02-28 17:08:37 +01:00
Marco Martin
92d2e6adb6
icon and title for the desktop window
2014-02-28 16:26:57 +01:00
David Edmundson
66bac622b4
Merge branch 'davidedmundson/svgrendering'
...
Conflicts:
src/declarativeimports/core/svgitem.cpp
src/declarativeimports/core/svgitem.h
REVIEW: 115923
2014-02-28 16:22:49 +01:00
Aurélien Gâteau
16b6578806
Hopefully fix build on CI
...
CI noX11 variant fails, complaining HAVE_X11 is not set. I assume this is
because the call to add_definitions is too late. Using config-plasma.h is
cleaner anyway.
2014-02-28 16:09:34 +01:00
David Edmundson
6968ab8117
Set filtering so SVG's look nice and smooth
2014-02-28 15:58:05 +01:00
David Edmundson
8bdbc034d4
Add SVG::image(QSize size,QString elementId)
...
This allows SVGItem to fetch elements at various sizes without resizing
the SVG.
2014-02-28 15:24:08 +01:00
Sebastian Kügler
f3cf993882
Shush
2014-02-28 14:54:19 +01:00
Marco Martin
f4225e95c2
correct positioning in vertical panels
2014-02-28 14:33:52 +01:00
Marco Martin
c615013d96
restore panel autohide functionality
2014-02-28 12:41:56 +01:00
Marco Martin
ccd8f8494d
workaround a crash in qt during drop events
...
delay adding an applet with a queued connection.
this should be reverted once this is fixed:
https://bugreports.qt-project.org/browse/QTBUG-35702
2014-02-27 17:39:42 +01:00
Marco Martin
f1448ed71c
use the namespace
2014-02-27 16:33:02 +01:00
Marco Martin
7c14b22fc0
Qt5::Widgets not used anymore
2014-02-27 13:20:26 +01:00
Marco Martin
f5ce791246
Qt5::Network not used anymore
2014-02-27 13:19:00 +01:00
Marco Martin
9253bc1cf0
threadweaver not used anymore
2014-02-27 13:06:39 +01:00
Marco Martin
13bb3fa054
solid isn't used
2014-02-27 12:59:37 +01:00
Marco Martin
4817e11441
don't depend from Auth
2014-02-27 12:51:24 +01:00
Marco Martin
88122c62a5
don't depend from DNNSD
...
it wasn't actually used anymore
2014-02-27 12:50:32 +01:00
Marco Martin
1fd741b5d3
Merge branch 'mart/interactiveconsole'
...
REVIEW:116085
2014-02-26 18:35:49 +01:00
Marco Martin
d703996b24
initialize variabiles
2014-02-26 17:00:55 +01:00
Marco Martin
b2fec905b5
Merge branch 'mart/svgHiDpi'
...
REVIEW:116027
2014-02-26 16:39:52 +01:00
Marco Martin
c2812c30e5
add copyright
2014-02-26 16:24:28 +01:00
Marco Martin
a67b3c78f8
remove kcomponentdata
...
we are completely free of KDE$Support now
2014-02-26 16:17:33 +01:00
Marco Martin
6402338ac2
remove KIcon
2014-02-26 16:11:55 +01:00
Marco Martin
16182e90a6
remove KTextBrowser
2014-02-26 16:09:37 +01:00
Alex Merry
7dc3895451
Fix build
...
Link test that includes QQmlAbstractUrlInterceptor against Qt5::Qml.
2014-02-26 15:04:05 +00:00
Marco Martin
8b4c541cff
remove KStandardDirs
2014-02-26 16:03:43 +01:00
Marco Martin
777bf35984
remove klocale
2014-02-26 15:57:12 +01:00
Marco Martin
f995cf5b90
use a QFileDialog
...
platform plugin will make it use KFileDialog anyways
2014-02-26 15:27:41 +01:00
Marco Martin
9f2c38c66f
port away of kdialog
2014-02-26 14:27:42 +01:00
Marco Martin
bf181c0b4d
restore loadScriptInInteractiveConsole()
2014-02-26 13:17:50 +01:00
Marco Martin
ad86e5d2c8
remove dead code
2014-02-26 12:51:28 +01:00
Marco Martin
f8d254ed16
instantiate the console
2014-02-26 12:46:16 +01:00
Marco Martin
462b2cc836
port Package usage
2014-02-26 12:38:45 +01:00
Marco Martin
0612ae0402
add a building version of interactive console
...
still too much kde4 dependency, not used yet
2014-02-26 12:17:37 +01:00
Sebastian Kügler
5f998abd7b
More usage of QStringLiteral in theme's hot pathes
2014-02-26 05:09:31 +01:00
Sebastian Kügler
7fde00f2f0
Use QStringLiterals for stylesheet processing
...
Speeds up the construction of all these strings a bit.
2014-02-26 00:50:10 +01:00
Marco Martin
3e966f29b1
typo
2014-02-25 19:42:04 +01:00
Marco Martin
53b2aba558
explain why we only consider integers right now
2014-02-25 19:39:12 +01:00
Marco Martin
359dd09c5d
restore dbus interface for dashboard
...
restore old feature from plasma1
2014-02-25 17:48:10 +01:00
Marco Martin
449e659ded
Dialog don't have borders. ever.
2014-02-25 16:30:13 +01:00
Marco Martin
dd75385313
don't set keepabove
...
the dock windows are in their own layer, keep above gives them a weird behavior
2014-02-25 15:55:59 +01:00
Marco Martin
6ab569e85e
add new needed keys to applet plugin definition
2014-02-25 14:32:00 +01:00
Marco Martin
0fdc1a71f0
don't double create root objects
2014-02-25 13:52:19 +01:00
Marco Martin
c533153978
add a new color for svg stylesheets: Highlight
2014-02-25 11:21:19 +01:00
Marco Martin
b8b913c930
concept of panel distance
...
if the shell requires the panel window to be in a different position than attached to screen edge (will be needed for active)
also, fix panel and panelcontroller positioning
2014-02-24 20:47:34 +01:00
Marco Martin
a04a87bcec
use units to understand the devicePixelRatio
2014-02-24 16:55:19 +01:00
Marco Martin
9976c47ad9
add a transientParent property
...
if this contextmenu is done from a Dialog, add this as transientParent
2014-02-24 14:01:05 +01:00
Marco Martin
ef879a7c7b
transientParent property for Dialog
...
use it when a Dialog instance is a popup menu of another dialog
2014-02-24 13:52:24 +01:00
Martin Gräßlin
1249e5bfc1
Follow Qt's OpenGL compile flags
...
Only link against OpenGL if Qt links against OpenGL. This ensures
that we don't run into issues if Qt links GLES and plasma links
GL because that's found.
REVIEW: 115990
2014-02-24 09:43:13 +01:00
l10n daemon script
c802da22a5
SVN_SILENT made messages (.desktop file)
2014-02-23 04:51:11 +00:00
Marco Martin
c009c7f0cd
concept of fixedMargins
...
sometimes we need to know what the margins are of a framesvg, even if some of them are disabled
2014-02-21 21:13:12 +01:00
Marco Martin
840a77b083
remove other excess devicepixelratio
...
Svg manages devicepixelration completely internally, multiplying any of its sizes by it makes it applied twice, therefore incorrect
2014-02-21 20:08:01 +01:00
Marco Martin
372912d53e
fix elementSize()
2014-02-21 19:52:25 +01:00
Marco Martin
4a0be9acd9
Revert "Slider scales with devicePixelRatio"
...
This reverts commit 4b0e828e29
.
2014-02-21 19:41:31 +01:00
Sebastian Kügler
4b0e828e29
Slider scales with devicePixelRatio
...
Conflicts:
src/declarativeimports/plasmacomponents/qml/Slider.qml
2014-02-21 19:28:34 +01:00
Marco Martin
17332257d7
experimental devicePixelRatio in Plasma::Svg
...
Conflicts:
src/declarativeimports/core/framesvgitem.cpp
2014-02-21 19:24:14 +01:00
Marco Martin
8c65f60de5
get rid of actions()
...
redundant function
2014-02-21 18:57:55 +01:00
David Edmundson
c825bd7509
Update SVG outside paint loop
2014-02-21 16:32:05 +01:00
Sebastian Kügler
01d1509c7c
Speed up cache lookups
...
Use constFind and an iterator to save one hash key lookup.
CCMAIL:aleixpol@kde.org
2014-02-21 16:03:03 +01:00
David Edmundson
9e5727d15c
Force repainting a texture if the theme changes
2014-02-21 15:15:22 +01:00
David Edmundson
1eb0deb0df
Move QSGTexture memory management into QSGSimpleTextureNode subclass
2014-02-21 15:15:21 +01:00
David Edmundson
d7b8ba265b
Cleanup whitespace
2014-02-21 15:15:21 +01:00
David Edmundson
fd4bf875a7
Remove manual isDirty tracking in SvgItem
2014-02-21 15:15:21 +01:00
David Edmundson
9492340ba6
Always resize the node geometry on resizes
2014-02-21 15:15:21 +01:00
David Edmundson
f104d171da
Update to paint to fill the size of the object, not the size of texture
2014-02-21 15:15:21 +01:00
David Edmundson
d0bc8b2a75
Fix leaking texture
2014-02-21 15:15:21 +01:00
David Edmundson
9459ed1f02
Add convenient QImage image() getter in SVG
2014-02-21 15:15:21 +01:00
David Edmundson
318560c8c2
Avoid repainting if node is not changed
2014-02-21 15:15:21 +01:00
David Edmundson
9851f8c789
Render SvgItem natively rather than going through QQuickPaintedItem
2014-02-21 15:15:21 +01:00
Marco Martin
1a55ac0c8c
outside parent if the parent window ignores WM
2014-02-21 11:55:37 +01:00
Marco Martin
3fd81dbeb5
add a shadow in the panel controller
2014-02-21 11:36:54 +01:00
Marco Martin
e27a2512af
make :screen() not crash if is child of an applet
2014-02-21 11:13:14 +01:00
Sebastian Kügler
13ec787302
Improved contrast for highlighted and today's delegate
2014-02-21 01:22:24 +01:00
Sebastian Kügler
29cf8e22d2
Faster theme changes
...
Don't wait too long after the file changed, makes theme changes be
picked up half a second faster -- noticeable for the user.
2014-02-21 01:20:27 +01:00
Sebastian Kügler
d8ea983d45
Slightly faster lookup of cached theme elements
2014-02-21 01:19:58 +01:00
Marco Martin
68496ed363
unbreak wallpaper config model
2014-02-20 13:35:11 +01:00
Marco Martin
a7c6d3a79e
Merge branch 'mart/plasmaquickNamespace'
2014-02-20 12:36:44 +01:00
Marco Martin
aaf7fa328d
export plugin name
...
not super nice but the simplest way to avoid code duplication in the image plugin
2014-02-20 12:33:31 +01:00
Marco Martin
5fb89a5ea9
add warning notices that is not public api
2014-02-20 11:19:50 +01:00
Marco Martin
e9580fc257
don't install headers of plasmaquick
...
don't commit to binary stability just yet
2014-02-20 11:16:46 +01:00
Marco Martin
90c608f863
complete porting
2014-02-19 20:00:29 +01:00
Marco Martin
d3253428dc
plasmaquickview.h -> view.h
2014-02-19 19:40:40 +01:00
Marco Martin
5bb4761c73
use a namespace in libplasmaquick
...
right now only the library builds
2014-02-19 19:37:30 +01:00
Marco Martin
c9ac5ebefb
make private what should be private
2014-02-19 18:30:24 +01:00
Marco Martin
2be97bdcdc
realign the panel when size changes
...
inthe case the panel is centered or at right, it has to be moved as well
2014-02-19 16:20:48 +01:00
Martin Klapetek
bd0ccdebf7
Check the OSD path before trying to load it, Plasma crashes if empty
...
Review-by: David Edmundson
2014-02-19 14:39:21 +01:00
Martin Klapetek
d3d7a6fd63
Return early if we failed to load valid Wallpaper package
...
Reviewed-by: Marco Martin
2014-02-19 13:28:15 +01:00
Hrvoje Senjan
dde1da619e
Use QStandardPaths for finding plasma shells instead of hardcoding to install prefix
...
Otherwise plasma shells are never found if plasma-framework and
kde-workspace are installed to different prefixes
REVIEW: 115871
BUG: 331063
2014-02-19 12:15:25 +01:00
Alex Merry
e83e3cf300
Fix build
...
If code uses KDBusService, it must link against KDBusAddons.
2014-02-19 11:05:28 +00:00
Alex Merry
596abe8c68
Use ecm_configure_package_config_file
...
Ported with:
sed -i -e 's/\(include(\)CMake\(PackageConfigHelpers)\)/\1ECM\2/' \
-e 's/\<\(configure_package_config_file\)/ecm_\1/' \
CMakeLists.txt
See http://commits.kde.org/extra-cmake-modules/139f60d81653888f696ef433
2014-02-18 21:18:16 +00:00
Marco Martin
99e350bb34
take into account panel size while positioning
...
make the dialog look always inside the panel, to not have borders looking brutally cutted away
2014-02-18 18:16:17 +01:00
Marco Martin
ef2e4f46d4
correctly restore panelVisibilityMode
2014-02-18 17:41:48 +01:00
Marco Martin
208e485577
correct behaviors for panel modes
...
(just missing edge activation)
2014-02-18 17:26:32 +01:00
Marco Martin
456d919326
notify signal of visibilityMode property
2014-02-18 16:59:11 +01:00
Marco Martin
fa8ed3668b
event compress restore after location change
...
now the panel position is correct after location change, and flickers less
2014-02-18 16:54:05 +01:00
Marco Martin
553055e6d3
adjust maximumWidth when adjusting offset, if needed
2014-02-18 13:42:14 +01:00
Marco Martin
ef0832787a
restore the proper offset
2014-02-18 12:32:53 +01:00
l10n daemon script
592a0db2ab
SVN_SILENT made messages (.desktop file)
2014-02-18 05:13:41 +00:00
Sebastian Kügler
bc7a54bb09
Compile-time connect in PlasmaComponents.Menu
2014-02-18 01:05:26 +01:00
Sebastian Kügler
61e4b3bbd3
Fix assignment type error
2014-02-18 00:20:20 +01:00
Marco Martin
08e3fcfe65
requestActivate() in this place caused 100% cpu
...
if more than one dialog is shown in a loop, causes requestActivate called to different windows too fast, this causes 100% cpu usage both in the application and in the windowmanager (not kwin specific)
2014-02-17 19:49:40 +01:00
Sebastian Kügler
7fcb1b7889
Merge branch 'sebas/themeswitch2'
...
Conflicts:
src/shell/panelconfigview.cpp
2014-02-17 17:59:32 +01:00
Michael Palimaka
c9c4e6c3b2
Remove unused system dependencies.
...
- plasma_appletscript_declarative includes QtUiTools but doesn't use it
- QtPrintSupport is not used anywhere
- Xss, Xext, and SM are not used anywhere
- OpenSSL is not used anywhere
REVIEW: 115830
2014-02-18 03:12:12 +11:00
Marco Martin
11bdf0b5d3
repaint the svg icon when plasma theme changes
2014-02-17 15:45:20 +01:00
Marco Martin
317f19d658
event compression in icons generation
...
saves generation of useless qimages and speed improvement ruring manual resize: ludicrous
2014-02-17 15:39:01 +01:00
Marco Martin
1b21c1a5d9
call superclass in the proper place
2014-02-17 14:32:35 +01:00
Marco Martin
12a766795e
return the correct immutability
2014-02-17 12:00:24 +01:00
Marco Martin
e03570227c
more robust location switch
...
an horizontal panel will have a fixed height
a vertical panel will have a fixed height
this way window managers don't fiddle with it
2014-02-14 19:06:06 +01:00
Marco Martin
d1b0e89a63
a way to read and write global shortcuts from qml config views
2014-02-14 17:28:10 +01:00
Marco Martin
7e8aa867b0
crash--
...
wait for the ui to be ready before connecting activated() to the expanding
2014-02-14 17:25:59 +01:00
Marco Martin
50a584d0bc
rename Applet::activate() with Applet::activated()
...
activate() is a name that suggests a slot more than a signal
2014-02-14 14:40:53 +01:00
Marco Martin
60565dafcb
get rid of elementAtPoint()
...
was a stub, never implemented because qtsvg doesn't support it (and never will)
2014-02-14 14:30:58 +01:00
Marco Martin
54549d8312
set the applet as expanded on activate signal
2014-02-14 14:26:53 +01:00
Marco Martin
ad54cc0187
global shortcuts and different flags for the dashboard
...
it should be actually usable
2014-02-14 13:56:13 +01:00
Marco Martin
44ab365d2c
simplify a bit location change
...
don't call restore() on positionPanel()
a bit more reliable
still fails randomly by h11 not doing what is asked to
2014-02-13 18:42:55 +01:00
Marco Martin
4aa3360495
resize the panel in one single go
2014-02-13 15:48:20 +01:00
Marco Martin
59dbfeeab6
ask confirmation to delete containments
2014-02-13 15:30:07 +01:00
Sebastian Kügler
566e2a8a42
Fix QPixmapItem::PreserveAspectCrop
...
This case was broken and would scale the image, while what we want is a
centered piece, from Qt::KeepAspectRatioByExpanding.
2014-02-13 14:56:10 +01:00
Sebastian Kügler
a8e31e1593
plasmapkg2: Fix installation and listing of wallpapers
2014-02-13 14:56:10 +01:00
David Edmundson
6bff4ef469
Avoid frame resizing till componentCompleted
2014-02-13 12:45:30 +01:00
Marco Martin
5c6077c728
add a zoom icon
...
used for the panel controls
2014-02-13 11:50:49 +01:00
David Edmundson
7c135314aa
Watch QQmlParserStatus in dialog
...
This way we only call the expensive syncToMainItemSize once we have all
the information to accurately position the window.
Using the timer to limit the calls doesn't work entirely (according to
qDebug) especially with the multiple threads to compile things.
Seems to prevent the dialog ever jumping around on load.
REVIEW: 115709
2014-02-13 11:27:35 +01:00
Bhushan Shah
334e818af0
Do not show OSD for invalid values of percentage like -1 or 200
...
REVIEW: 115712
2014-02-13 18:16:49 +05:30
Marco Martin
664fd4167c
maximizing the panel actually works
2014-02-12 17:36:46 +01:00
Marco Martin
6bccf2d1af
api to access to containment actions
2014-02-12 17:13:56 +01:00
Martin Gräßlin
bada0c97ba
Ensure that we can build without X11 or XCB
...
* X11 is optional dependency
* XCB is optional dependency
* Qt::X11Extras is only found if both X11 and XCB are found
* switch to HAVE_X11 instead of X11_FOUND in CMakeLists
* remove/fix custom added definitions
* use #if HAVE_X11 instead of #ifdef HAVE_X11 (that is always true)
REVIEW: 115698
2014-02-12 16:20:42 +01:00
Martin Gräßlin
31e301174a
Ensure to not call X11 specific calls if we are not on platform X11
...
This fixes a bunch of possible crashy code when trying to run
applications linking plasma-framework on platform Wayland.
REVIEW: 115641
2014-02-12 16:20:04 +01:00
Marco Martin
68552f81dd
take into account margins when propagating size hints
2014-02-12 15:34:34 +01:00
Marco Martin
003cbf8317
hide remove action for desktop containments
2014-02-12 14:04:53 +01:00
Marco Martin
a4f14a966a
new property: interactive (default false)
...
if interactive is true, when the mouse cursor leavesthe tooltiparea and enters the tooltip,
it won't hide, so it will be possible to interacti with it
2014-02-11 19:28:28 +01:00
David Edmundson
63c62d6da8
Documentation++
2014-02-11 18:52:51 +01:00
Aleix Pol
18473c9e9e
Remove KRunner from Plasma-Framework
...
Have it as a separate KRunner framework instead
2014-02-11 18:03:06 +01:00
Sebastian Kügler
dbbb1ed513
Minor cleanup
2014-02-11 17:29:59 +01:00
David Faure
452413ef33
use version strings defined at toplevel - doesn't work though ?
2014-02-11 16:23:33 +01:00
Marco Martin
da36ebe0e4
remove unused signal
2014-02-11 13:31:44 +01:00
Marco Martin
6f256aa7e6
remove the legacy config machinery
2014-02-11 13:29:37 +01:00
David Edmundson
66d10d5c5a
Add a property to tooltip to enable/disable tooltips
...
This is useful to be able to disable tooltips when a dialog exists.
We don't use the QQuickItem::enabled property as this propagates onto
children and has side effects.
REVIEW: 115623
2014-02-11 12:10:43 +01:00
Marco Martin
0d138bf2fb
check the pointer
2014-02-11 11:11:34 +01:00
Marco Martin
3c74807791
don't alterate the position given the borders
...
eternal size dance--, don't take borders into account 2 times
2014-02-10 20:09:03 +01:00
Marco Martin
4e13ce6966
make sure full representations don't get loaded
2014-02-10 18:14:11 +01:00
Marco Martin
6f8f9a9c64
fix layout
2014-02-10 17:15:40 +01:00
Marco Martin
4e25b59b8e
fix the condition
2014-02-10 17:04:39 +01:00
Marco Martin
4722cf45bc
check the propert mainText() subText()
2014-02-10 17:01:25 +01:00
Marco Martin
022db8a9af
don't show tooltips without tiles or custom item
2014-02-10 16:56:58 +01:00
Marco Martin
808eca4182
use QStringLiteral instead
2014-02-10 16:38:15 +01:00
Marco Martin
87730146db
and make the previous one actually work
2014-02-10 16:23:13 +01:00
Marco Martin
e30a50f755
null string:fallback empty string: empty
2014-02-10 16:18:13 +01:00
Marco Martin
0573a47e06
tests and autotests in top level dir
2014-02-10 15:17:07 +01:00
Hrvoje Senjan
cc34d2c17e
Rename plasmapkg to plasmapkg2
...
So it can be co-installed in the same prefix as kde-runtime(4)
REVIEW: 115605
2014-02-10 12:56:26 +01:00
David Faure
e76d11be9d
Port to updated KActivities
2014-02-08 18:48:40 +01:00
David Edmundson
fb0728d40a
Ammend last commit
2014-02-07 19:37:06 +01:00
David Edmundson
39ce54c0db
Set paneltoolbox properties on construction
...
Also refactor the code to avoid creating and deleting an object if
containmentGraphicObject does not exist.
2014-02-07 19:35:31 +01:00
David Edmundson
233267f492
Fix spelling in comment
2014-02-07 19:35:31 +01:00
Marco Martin
77214956e7
search trough parent hierarchy for locations
...
seems reliable to determine the applet location
2014-02-07 17:44:47 +01:00
Marco Martin
5ba990df15
invert parent relationship of the compact and expander
2014-02-07 16:19:11 +01:00
Marco Martin
857150c183
the expander is compactrepresentation child
...
because it'll contain a tooltip too
2014-02-07 12:20:43 +01:00
Sebastian Kügler
b2ead1fe09
Merge branch 'master' into sebas/themeswitch2
2014-02-06 23:56:47 +01:00
David Edmundson
2b7a1eef48
Initialise values
...
Fixes valgrind screaming about us doing a jump on unitialised memory
2014-02-06 19:07:43 +01:00
Marco Martin
ab140c8c1e
add properties for tooltips metadata
2014-02-06 18:49:28 +01:00
Sebastian Kügler
eebfb64d0a
Merge branch 'master' into sebas/themeswitch2
2014-02-06 17:56:28 +01:00
Marco Martin
cab11dd7f8
change expanded accordingly when applet expands or collapses
2014-02-06 13:57:53 +01:00
Marco Martin
3858044d25
Merge branch 'mart/AppletAttached'
...
Conflicts:
src/declarativeimports/core/dialog.cpp
src/scriptengines/qml/plasmoid/containmentinterface.cpp
2014-02-06 13:16:11 +01:00
David Edmundson
e82b1dab9d
Enable Plasma Controls for tab-navigation
2014-02-06 12:35:32 +01:00
David Edmundson
a3a434ced5
Upgrade all components to use QtQuick2.1
...
This has some new features like activeFocusOnTab which are awesome.
2014-02-06 12:16:43 +01:00
Marco Martin
3bb0e7d3d0
use the config of the applet parent of containment
...
that's the systray specific hack
2014-02-06 12:12:43 +01:00
l10n daemon script
34284e90eb
SVN_SILENT made messages (.desktop file)
2014-02-06 04:12:17 +00:00
Sebastian Kügler
585aa4998a
noise--
2014-02-06 04:00:39 +01:00
Sebastian Kügler
15e4d93102
PanelConfigView respects contrast effect settings
2014-02-06 03:52:56 +01:00
Sebastian Kügler
62de49128e
Don't forget the Blur behind the panel
2014-02-06 03:52:11 +01:00
Sebastian Kügler
60e955784c
PlasmaCore.Dialog respects contrast effect settings
2014-02-06 03:51:14 +01:00
Sebastian Kügler
d9e43ff979
Be smarter about contrast effect reading
...
This commit allows the theme designer to just enable and disable the
effect (enable=true). If no color values are set, values are picked
based on the background color. This essentially restores the hardcoded
values in some other places, and makes them available as sensible
defaults to other themes.
Also, make sure colors are read before the effect is applied (as we need
the new bg color to decide whether it's light or dark).
2014-02-06 02:51:46 +01:00
Sebastian Kügler
8e062ace17
panelview takes contrast effect config from Theme
2014-02-06 01:04:23 +01:00
Sebastian Kügler
5dd4b51151
Plasma::Theme gets API for KWS' background contrast effect
...
From its api docs:
This method allows Plasma to enable and disable the background
contrast effect for a given theme, improving readability. The
value is read from the "enabled" key in the "ContrastEffect"
group in the Theme's metadata file.
The configuration in the metadata.desktop file of the theme
could look like this (for a lighter background):
[ContrastEffect]
enabled=true
contrast=0.45
intensity=0.45
saturation=1.7
2014-02-06 00:56:50 +01:00
David Edmundson
af82f2f0e7
Take into account screen positioning when detecting if out of bounds
2014-02-05 20:12:22 +01:00