David Edmundson
8277da7015
Remove unused includes
2014-06-04 18:54:55 +02:00
David Edmundson
05485cf36f
Remove unused include
2014-06-04 18:48:00 +02:00
David Edmundson
67b6bfc0c3
Remove unused include
2014-06-04 18:48:00 +02:00
Aleix Pol
6608359333
No need to forward the implicit* properties
...
It's not modifying anything or similar either.
Reviewed by David Edmundson
2014-06-04 16:55:14 +02:00
Marco Martin
051dabae5e
warnings--
...
BUG:335522
2014-06-03 15:57:42 +02:00
Harald Sitter
ce329f4402
qmax(qreal, double) is not valid as qreal may be float
...
adjust the call to use qreal for both (floor() returns double)
REVIEW: 118487
2014-06-03 14:37:38 +02:00
Marco Martin
80195aa149
check for currentTab
2014-06-03 14:29:48 +02:00
David Edmundson
23068fb2b0
Avoid references to QApplication
...
They cause problems when running in QGuiApplication
REVIEW: 118470
2014-06-02 17:44:47 +02:00
Aleix Pol
1419eea367
Fix warning on ToolButton
...
If there's no parent for the ToolButton, always show all borders.
2014-05-29 18:39:31 +02:00
Marco Martin
f7adc059ee
warnings--
...
BUG:335488
2014-05-29 12:14:09 +02:00
David Edmundson
8a59fe3643
Fix wrapping in tooltip subtexts
...
REVIEW: 118376
2014-05-28 16:24:54 +02:00
David Edmundson
78684c46cd
Remove unnecessary placeholder
...
Text.implicitWidth holds the size the text would be if it wasn't
truncated
2014-05-28 16:24:50 +02:00
Marco Martin
a8f73abfbe
warning--
...
BUG:335393
2014-05-28 12:32:57 +02:00
Martin Klapetek
aca024c2e0
Fix copy-paste calendar component bug
2014-05-27 17:44:08 +02:00
Martin Klapetek
19f21ec507
Equal margins on calendar grid from both sides
2014-05-27 17:44:08 +02:00
Marco Martin
140d066021
check for slots existence before blindly connecting
2014-05-27 17:13:57 +02:00
Antonis Tsiapaliokas
7916c9d766
Fix the PlasmaComponents.Sheet
...
*location property is now using the PlasmaCore.Types
*DialogStatus => PlasmaCore.DialogStatus
*windowFlags property => flags property
2014-05-27 17:56:37 +03:00
Marco Martin
66d65f1b12
QML warnings--
2014-05-27 16:38:14 +02:00
Marco Martin
157d0ed836
use Qt::BypassWindowManagerHint
...
BUG:335267
2014-05-27 13:57:34 +02:00
Marco Martin
71b22cb89b
tooltip is override redirect
...
CCBUG:335267
2014-05-27 13:39:12 +02:00
Martin Klapetek
12811f1fc4
Add the current month name to the calendar component by default
...
Currently we have 3 applets using the calendar grid and all of them put
the extra heading to the calendar. We also offer ways to change the
displayed month so we should also show /which/ month is the current one
displayed, implicitly.
REVIEW: 118328
BUG: 334147
2014-05-26 16:25:15 +02:00
Martin Klapetek
9f0765b002
Make sure we update the calendar on date change
...
This introduces new property on MonthView - "today". This property is
updated by dataengine (or can be a timer too, but we already get signals
from dataengine every 30 seconds to update the clock) and is never
updated by the code itself.
Furthermore, the DayDelegate is now bound to it, so when "today"
changes, the selection rectangle in the calendar should also change.
And finally, the selected item in the grid is cleared if MonthView's
date property is cleared (which is second part of this patch, to the
applet itself).
REVIEW: 118277
2014-05-26 13:40:47 +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
Marco Martin
4cc6d84a81
try harder to use a pixel perfect size
2014-05-22 14:04:27 +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
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
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
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
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
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
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
David Edmundson
72c134b80f
Update includes to be from QtGui
2014-05-15 18:42:46 +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
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
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
Martin Klapetek
247e829332
Proper if-else {} style
2014-05-12 19:21:06 +02:00
Allen Winter
939e01f554
fix build
...
include <cmath> to declare floor()
2014-05-11 20:58:53 -04:00
Marco Martin
39047a0ab8
layout fixes
2014-05-09 13:12:30 +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
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
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
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
90c8dbc255
simplify logic a lot
2014-05-02 14:55:43 +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
David Edmundson
97d6ba2dab
Add a ComboBox to PlasmaComponents
...
REVIEW: 117798
2014-04-29 16:24:22 +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
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
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
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
Marco Martin
65c5c0dfe8
slightly more deterministic tooltip animations
2014-04-25 22:44:08 +02:00
Aurélien Gâteau
b3b95fa77d
Refresh doc to use README.md and markdown
2014-04-25 21:06:00 +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
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
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
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
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
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
2f10450c17
make the animate property do something
...
BUG:332884
CCBUG:332869
2014-04-03 18:08:13 +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
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
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
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
Ivan Čukić
04bf0ddaed
The icon dialog can now be closed on request
2014-03-27 20:11:28 +01:00
Bhushan Shah
79684002f6
Formats are now part of KDeclarative repo
2014-03-27 01:57:47 +05:30
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
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
Eike Hein
6a6bf8e80c
Add back a public slot to procedurally hide a ToolTipArea's tooltip.
2014-03-24 15:19:02 +01: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
0205aa1ec6
if not flat, use button color
...
BUG:332138
2014-03-20 17:55:22 +01:00
Marco Martin
e64ab583c5
delete imports now provided by kdeclarative repo
2014-03-20 16:20:59 +01:00
Marco Martin
b5a61d00a0
don't start if already running
2014-03-19 18:31:26 +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
Marco Martin
cc6a87cee4
remove unneeded dependencies
2014-03-18 11:56:54 +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
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
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
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
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
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
Marco Martin
b388a0d76b
expose hasElementPrefix() method
2014-03-04 18:13:46 +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
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
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
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
b2fec905b5
Merge branch 'mart/svgHiDpi'
...
REVIEW:116027
2014-02-26 16:39:52 +01:00
Marco Martin
53b2aba558
explain why we only consider integers right now
2014-02-25 19:39:12 +01:00
Marco Martin
449e659ded
Dialog don't have borders. ever.
2014-02-25 16:30:13 +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
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
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
David Edmundson
c825bd7509
Update SVG outside paint loop
2014-02-21 16:32:05 +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
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
Sebastian Kügler
13ec787302
Improved contrast for highlighted and today's delegate
2014-02-21 01:22:24 +01:00
Marco Martin
c9ac5ebefb
make private what should be private
2014-02-19 18:30:24 +01: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
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
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
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
David Edmundson
6bff4ef469
Avoid frame resizing till componentCompleted
2014-02-13 12:45:30 +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
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
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
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
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
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
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
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
Sebastian Kügler
eebfb64d0a
Merge branch 'master' into sebas/themeswitch2
2014-02-06 17:56:28 +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
Sebastian Kügler
60e955784c
PlasmaCore.Dialog respects contrast effect settings
2014-02-06 03:51:14 +01:00
David Edmundson
af82f2f0e7
Take into account screen positioning when detecting if out of bounds
2014-02-05 20:12:22 +01:00
David Edmundson
aada92247c
Fix documentation
2014-02-05 20:04:33 +01:00
David Edmundson
3bbda089ed
Add missing const
2014-02-05 20:04:23 +01:00
Martin Gräßlin
e69179e42e
Fix cast error with new flags in NETWM
2014-02-05 17:42:24 +01:00