Sebastian Kügler
f79c3833bd
Start port of drag and drop import
2013-02-27 14:54:55 +01:00
Marco Martin
6777a7dc56
call superclass event handlers
2013-02-27 14:51:12 +01:00
Marco Martin
854ecdcf5b
make sure the dialog is resized before showing
...
crash--
probably there is a bug in scenegraph when one calls show() of a 0,0 size wondow
2013-02-27 14:35:34 +01:00
Aaron Seigo
4cb892dd04
only create a new svg item if we don't already have one
2013-02-26 14:50:41 +01:00
Sebastian Kügler
45147081e7
Fix comment
2013-02-26 05:47:12 +01:00
Sebastian Kügler
2032816118
Disable borders when we're hitting the screen's edge
2013-02-26 05:39:49 +01:00
Sebastian Kügler
d6b66ecb96
Switch enabledBorders based on popupPosition
2013-02-26 04:50:00 +01:00
Sebastian Kügler
6a73133da4
positioning for popups
...
- default top TopEdge
- Swap edges if specified
- shift on non-specified edges
- all borders, edge-cases (ha!) are confirmed working
- cleaned up some cruft
Not taken care of yet:
- framesvg border disabling
- sliding effect w/ kwin
- smarter resolution of visualParent
2013-02-26 03:58:55 +01:00
Sebastian Kügler
9b4db5a7b4
Basic edge locations working inside PlasmaCore.Dialog
2013-02-26 02:17:21 +01:00
Sebastian Kügler
8131ad0abc
Add PlasmaNamespace as PlasmaCore.Plasma
...
This is not beautiful, so we'll change it later on, for now, this allows
us to test enum settings.
2013-02-26 01:10:28 +01:00
Sebastian Kügler
e2a2a9f6d2
revert int -> Qt::AlignmentFlag for location
2013-02-25 17:55:06 +01:00
Sebastian Kügler
9e8f112be0
a few lingering bits of dialog layout code, not enabled
2013-02-25 16:48:04 +01:00
Sebastian Kügler
0faa120641
Convert alignment to Qt::AlignmentFlag
...
Also start a bit on the logic of setting location. Does nothing yet, but
build.
2013-02-22 16:45:08 +01:00
Sebastian Kügler
7c9d0abc23
Use Qt::AligntmentFlag instead of int for popupPosition
2013-02-22 03:54:14 +01:00
Sebastian Kügler
00c93c186d
Test code for placement
2013-02-22 03:43:09 +01:00
Sebastian Kügler
8f71cf9de7
Center in visualParent by default
...
If we have no visual parent, use the workArea's center. This is mostly
in line with Plasma1's behavior (modulo visualParent vs. parent).
2013-02-22 03:41:56 +01:00
Sebastian Kügler
006eb99b55
Make dialog-in-separate-window kind of work
...
inlining is still broken, disabled right now. popupPosition has moved
into PlasmaCore.Dialog internally, so don't handle it in QML.
2013-02-22 02:18:16 +01:00
Sebastian Kügler
e96671be05
Add debugsels for popupPosition
2013-02-22 02:18:16 +01:00
Marco Martin
73ab93e009
use the margins of the framesvg instead of own
2013-02-21 16:04:08 +01:00
Marco Martin
799a5989d9
enable blur behind
2013-02-21 14:58:09 +01:00
Marco Martin
31838228d4
add missing declaration
2013-02-21 14:49:28 +01:00
Marco Martin
efc725acec
use a framesvgitem as background
2013-02-21 14:32:48 +01:00
Marco Martin
de81cdada3
implement popupPosition
...
call it only by setting a visualParent, don't expose it to qml for now
2013-02-20 20:39:15 +01:00
Marco Martin
a1507092a0
restore isactivewindow
2013-02-20 19:39:03 +01:00
Marco Martin
7ce2d0f7d6
sync sizes also on the other way
2013-02-20 19:31:06 +01:00
Marco Martin
f7e3a72d14
iremove unused properties
...
x,y,width,height are already in qquickwindow
2013-02-20 18:03:28 +01:00
Marco Martin
8ba734f05b
correct item resize
...
comment out more old api
will be reenable one by one only when needed
2013-02-20 15:51:28 +01:00
Marco Martin
059682af85
less dead code
2013-02-20 15:25:13 +01:00
Marco Martin
1928ecce74
make sure a transparent window
2013-02-20 15:18:58 +01:00
Sebastian Kügler
6461683f58
Some work on PlasmaComponents.Dialog
...
Still broken in all kinds of ways, buttons, geometry, etc.
2013-02-20 06:56:48 +01:00
Sebastian Kügler
0fe94f0dac
try to make dialog transparent
2013-02-20 06:56:38 +01:00
Sebastian Kügler
ea508733d6
Rejig Dialog - starts working
...
It now inherits from QQuickWindow.
setting the mainItem is not reparenting it right now, this will probably
break, so needs fixing. For now, it works though as long as the mainItem
has the Dialog as parent already. WindowFlags and sizing seems to work.
2013-02-20 05:30:22 +01:00
Sebastian Kügler
305e711c8c
Fix namespace of RangeModel in Slider and ProgressBar
...
Now those components work as well.
2013-02-20 05:27:11 +01:00
Sebastian Kügler
71e2114541
Fix RangeModel namespace
2013-02-20 05:24:03 +01:00
Sebastian Kügler
2566309c9a
Start porting PlasmaCore.Dialog
...
This commit enables the build of PlasmaCore.Dialog. Most of the code is
disabled, as it's quite wired up with QGraphicsWidgets. The remaining
pieces are actually able to bring up a window, but don't display
anything.
2013-02-20 04:25:29 +01:00
Sebastian Kügler
226e61c432
module directive for runnermodel
2013-02-20 02:31:33 +01:00
Sebastian Kügler
0c2793718b
shush
2013-02-20 02:27:41 +01:00
Sebastian Kügler
4375b61759
Add module identier to qmldirs
2013-02-20 02:09:23 +01:00
Sebastian Kügler
4683f10dcb
Fix namespacing in Sheet
2013-02-20 01:36:22 +01:00
Sebastian Kügler
55a9091992
Use Item as type for ToolBar, apparently we can't use our own defined types here anymore
2013-02-20 01:36:08 +01:00
Sebastian Kügler
d3ce808a41
Fix namespacing in SectionScroller
2013-02-20 01:35:27 +01:00
Sebastian Kügler
af1ca41261
Fix namespacing in PageStack
2013-02-20 01:34:57 +01:00
Sebastian Kügler
614259cf69
Fix namespacing in Dialog
2013-02-20 01:34:26 +01:00
Sebastian Kügler
0900460842
Fix namespacing in SelectionDialog
2013-02-20 01:34:07 +01:00
Sebastian Kügler
bb842b64d2
Fix namespacing in QueryDialog
2013-02-20 01:33:57 +01:00
Sebastian Kügler
b8ccb0ded6
Fix namespacing in CommonDialog
2013-02-20 01:33:43 +01:00
Sebastian Kügler
59e65cbaee
Fix import in ButtonColumn
2013-02-20 01:33:01 +01:00
Sebastian Kügler
fec80c2c96
Remove activeFocus property, it's moved up into one of its parents
2013-02-20 01:09:08 +01:00
Sebastian Kügler
36564796d0
Fix namespacing for RangeModel in ScrollBar
2013-02-20 01:08:52 +01:00
Sebastian Kügler
4e82cc5d3d
TextField polishing
...
- remove call to closeSoftwareInputPanel before calling it, it's removed
from TextInput in commit
3721de405e
I suppose it now "just works", but will test. The API is not there,
anyway, so it's safe to remove.
- clearbutton only shows when enabled
- clearbutton rightmargin
2013-02-20 00:26:33 +01:00