Sebastian Kügler
7f0011a843
Renamed classes, QDeclarative -> QQml/QQuick*
2013-02-01 17:26:26 +01:00
Marco Martin
57e77a8591
remove the kdialog based querydialog
...
Dialogs are always plasma-themed, and if possible are inline.
only if there is not enough space (like in a panel) they get moved in a separate window
this removes quite some c++ usage and hopefully solves some layouting problems in dialogs
2012-11-30 00:03:49 +01:00
Allen Winter
78848d5d50
initialize m_left, m_top, m_right and m_bottom to make valgrind happy.
2012-11-12 19:01:55 -05:00
Marco Martin
af189dff04
ensure the dialog is not out of workarea
2012-09-20 14:59:26 +02:00
Marco Martin
0e1021feb1
if is a dock, is on all desktops
2012-09-20 14:22:15 +02:00
Marco Martin
d2f729d000
modify the hack that doesn't break in some cases
2012-07-13 10:50:07 +02:00
Marco Martin
8a04030fdf
less ugly workaround for disappearing Qt::Popup
...
still a workaround but slightly less ugly and works on Qt 4.8 too
2012-07-12 17:51:28 +02:00
Marco Martin
531031f753
can't use windowId in QML on Windows
2012-04-06 13:09:32 +02:00
Martin Gräßlin
e195c1d01f
Export WindowId on Plasma Dialog
...
Exporting the window Id allows to use it in declarative KWin scripts
to embedd window thumbnails on the dialog.
REVIEW: 104393
2012-03-24 10:51:12 +01:00
Marco Martin
fc0b0b8ed1
guard against no scene
2012-01-01 20:04:35 +01:00
Marco Martin
7988a4a7e4
don't try to set the main widget multiple times
2011-12-01 19:55:09 +01:00
Marco Martin
9726906ed0
recreate the dialog if the Popup flag changes
...
a popup only works if it's created with that flag from the beginning
2011-12-01 19:55:09 +01:00
Marco Martin
bda133a997
always be frameless
2011-11-27 18:12:24 +01:00
Marco Martin
855ced6672
more offscreen spacing
2011-11-19 11:46:28 +01:00
Marco Martin
7eaa8b9cc0
a way to activate the dialog window
2011-11-16 21:12:38 +01:00
Marco Martin
4a10379637
swap deletion to avoid a rare crash
2011-11-15 13:52:53 +01:00
Marco Martin
478cd9d3f0
add Dialogs
...
CommonDialog
QueryDialog
SelectionDialog
the base Dialog is still not exported
in future version on the desktop, QueryDialog will create a standard qt dialog instead
2011-11-03 14:46:05 +01:00
Marco Martin
270b6296b9
fallback when there is no corona
...
autonomous positioning when there is no corona (usually relies on addoffscreenwidget and popupposition from it)
2011-11-02 18:15:17 +01:00
Marco Martin
6d7b475468
location property that decides the sliding effect
2011-08-15 19:32:01 +02:00
Aaron Seigo
e2f4b4ecc2
protect against accessing a null
2011-07-15 13:18:47 +02:00
Aaron Seigo
201baafc1c
mainitem can be null according to the if() below, so respect that
2011-07-15 13:18:47 +02:00
Marco Martin
6354e56a91
emit visiblechanged when it should
2011-07-12 20:31:29 +02:00
Marco Martin
c4fb39de30
guard pointers, crash--
2011-06-24 17:58:21 +02:00
Marco Martin
86d4283ff9
read only property: activeWindow
2011-06-19 23:08:15 +02:00
Marco Martin
3475f99f96
guard against crash
2011-06-19 19:07:55 +02:00
Marco Martin
fe8ccf1d71
guard mainItem, crash--
2011-06-13 13:56:55 +02:00
Marco Martin
42f8d04f6c
a dialog has margins, take them into account
2011-06-08 17:53:55 +02:00
Marco Martin
9cd8721f61
support for centering
2011-06-08 13:02:48 +02:00
Marco Martin
e8b1374ff0
initialize member
2011-06-07 21:07:27 +02:00
Marco Martin
d3868a8b65
revert last commit
...
popups are done correctly now
(is necessary so show, set the flags and show again)
2011-06-07 19:12:04 +02:00
Marco Martin
230a15d475
correctly manage popup menus
...
similar fix in the taskbar coming
2011-06-07 18:11:30 +02:00
Marco Martin
f000f07b08
make the notify signals actually be emitted
2011-06-07 16:41:06 +02:00
Marco Martin
90ecc73536
return the correct mainItem()
2011-06-06 17:33:02 +02:00
Artur Duque de Souza
436fd7e762
Separate the DeclarativeItemContainer so it can be used by others
...
We are going to need the declarative container for the tooltips,
so it makes sense to put this guy in it's own files.
Signed-off-by: Artur Duque de Souza <asouza@kde.org>
2011-04-27 19:45:48 -03:00
Marco Martin
2d27bd40e6
less debug output
2011-03-21 21:40:00 +01:00
Marco Martin
d7d08c46ef
bind the dialog's window flags
2011-03-21 21:38:48 +01:00
Marco Martin
19ad72af78
showPopup() -> popupPosition()
...
makes possible to move the popup
2011-03-21 19:20:17 +01:00
Marco Martin
b958bf1480
monitor for declarativeitem resize
2011-03-19 18:36:29 +01:00
Marco Martin
c216fe47b8
resize DeclarativeItemContainer at item's size
2011-03-19 18:31:36 +01:00
Marco Martin
650e518c2e
reparent items when they go in a dialog
2011-02-25 22:38:03 +01:00
Marco Martin
d8457ecd8d
properties for dialog move
2011-02-25 20:37:56 +01:00
Marco Martin
fcfafcbc6e
proxy to setAttribute()
2011-02-25 19:00:01 +01:00
Marco Martin
8128291fee
fix setVisible
2011-02-25 15:01:18 +01:00
Marco Martin
9c6f2132ad
support qdeclarativeitems as well
...
support qdeclarativeitems as well trough a parent qgraphicswidget that syncs the geometry
2011-02-24 23:47:45 +01:00
Marco Martin
61abadfd25
bindings for Plasma::Dialog
...
setting the mainItem property of a Dialog element, it will create a top level window with that item as the graphicsWidget()
right now it works only with QGraphicsWidget{} elements, Plasma::Dialog will be given the api to make this work with any QGraphicsObject as well.
2011-02-24 18:29:56 +01:00