kephal or qdesktopwidget

Reza Shah rshah0385 at kireihana.com
Tue Oct 9 02:37:47 UTC 2012


Hi,
I managed to test my patch for color and pattern wallpaper in multi
monitor setup with different resolution.
The pattern wallpaper has proper result compared the color wallpaper.

I think, i miss understood the kephal::primaryScreen function in color
wallpaper so the result was not correct(both monitor has same
thumbnail size).

Below are the codes in pattern wallpaper:
QDesktopWidget *desktop = QApplication::desktop();
int activeScreen = desktop->screenNumber(parent);
QRect geom = desktop->screenGeometry(activeScreen);

I could not find something like QDesktopWidget::screenNumber in kephal,
the closest i think only Kephal::ScreenUtils::screenId(QPoint p),
which return id, then pass to Kephal::ScreenUtils::screenGeometry(int
id) to get the size.

Should i use kephal or better change to QDesktopWidget?

Regards,
Reza


More information about the Plasma-devel mailing list