Marco Martin
d4b4a9558f
use the interceptor on views too
...
relax its rules a bit and alter it to make it work with shell packages too
2014-05-23 20:03:41 +02:00
Sebastian Kügler
249c1e1c93
Less warnings at runtime
...
It's quite common to try loading a package in order to check if it's
valid. No need to litter the console with that.
2014-05-23 18:41:50 +02:00
Sebastian Kügler
511495caad
Make sure gridUnit is always an even number
...
This prevents subpixel alignment when gridUnit / 2 is used, which is
quite common.
2014-05-23 16:10:21 +02:00
l10n daemon script
2ba1a0c90f
SVN_SILENT made messages (.desktop file)
2014-05-23 08:16:11 +00:00
Marco Martin
4cc6d84a81
try harder to use a pixel perfect size
2014-05-22 14:04:27 +02:00
Marco Martin
2f9e158297
22x22 version
2014-05-22 12:38:32 +02:00
Marco Martin
524ff23f25
add support for tooltips
...
use qwidget tooltips, not plasma ones
BUG:335131
2014-05-22 12:18:30 +02:00
Marco Martin
88275439d4
fix platform colors
2014-05-22 11:49:16 +02:00
Marco Martin
ab27f8b945
use view text color
2014-05-22 11:44:26 +02:00
Marco Martin
357647577f
use view color for text in textfield
...
BUG:333837
2014-05-22 11:42:20 +02:00
Marco Martin
76ac7b7e6f
more pixel-ok 16x16 version
2014-05-22 11:24:03 +02:00
Marco Martin
c71e5d4722
make square
...
16x16 version
use system colors
2014-05-22 11:21:13 +02:00
Martin Klapetek
8d0d53655b
Add drive-harddisk breeze/systray icon
2014-05-22 11:04:49 +02:00
David Edmundson
b06fe8301c
Calculate implicitWidth of both button and toolbutton properly
2014-05-21 21:15:18 +02:00
David Edmundson
8b86279298
Match toolbutton sizing behaviour with button
...
Removing eliding in Toolbutton, this causes a binding loop as the
sizeHint is dependent on the paintedSize, which will change if you
elide.
In all cases we are trying to make toolbuttons fit the contents, so this
actually got in the way of that.
2014-05-21 20:07:36 +02:00
Martin Klapetek
5aa1e18f97
Elide Components' Button label
...
Otherwise the label can get out of the button boundaries. Tested with
RTL text too, it's elided properly as the elipsis switches to Left on
its own.
Reviewed-by: Marco Martin
BUG: 334867
2014-05-21 17:46:04 +02:00
David Edmundson
78e6000e72
Fix member variable capitalisation
2014-05-21 16:54:05 +02:00
Marco Martin
d2d61c4da3
reposition when resizing if there is visualParent
...
BUG:334970
BUG:334964
2014-05-21 15:45:21 +02:00
David Edmundson
394e29fa34
When changing geometry always update
2014-05-21 15:38:23 +02:00
Marco Martin
bb10131fd4
support inverted layout
2014-05-21 15:03:37 +02:00
Marco Martin
409d340fba
if a name is passed in the ctor, never change
...
BUG:335005
2014-05-20 18:26:03 +02:00
l10n daemon script
db8da9ff8d
SVN_SILENT made messages (.desktop file)
2014-05-20 10:48:03 +00:00
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