SystemTray: pop-up window position

Marco Martin notmart at gmail.com
Sat Nov 17 12:25:01 UTC 2012


On Saturday 17 November 2012, Aaron J. Seigo wrote:
> On Friday, November 16, 2012 18:57:17 Dmitry A. Ashkadov wrote:
> > 2. At center:
> this has been the standard alignment for several releases for popups. it
> looks nice, minimizes mouse movement, etc.
> 
> Corona::popupPosition calculates this for you, so if you use that function
> it should all be good.
> 
> what may be missing in the QML bindings is a way to access that function,
> and it is not great if one has to write C++ just to figure out where
> something should popup.
> 
> my proposal is to add a plasmoid.popupPosition(popupFromItem, itemToPopup,
> alignment) function .. thoughts?

it's in the bindings of the qml Dialog item

default as in libplasma is align at left

i was thinking about defaulting everything to centered (maybe because in 
design i'm a symmetry freak) but Djuro's point against it looks valid to me

Cheers,
Marco Martin


More information about the Plasma-devel mailing list