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