[KPhotoAlbum] [PATCH 2/3] SettingsData: Default window geometry calculated

Michael Witten mfwitten at MIT.EDU
Wed Sep 24 17:39:18 BST 2008


On 23 Sep 2008, at 10:56 PM, Michael Witten wrote:

> I've got some fledgling support for handling multiple screens
> by storing screen numbers as well as geometries:
>
>     // If the setting for the screen is not valid, determine
>     // a screen the makes sense. By default, the MainWindow
>     // will be put on the primary screen, and all other
>     // windows will be placed on the same screen as the
>     // main window (or the primary screen)

Perhaps it would be more robust to choose the default screen
based on the cursor location:

	screen = QApplication::desktop()->screenNumber( QCursor::pos() );

Any reasons why this wouldn't be a good idea?



More information about the Kphotoalbum mailing list