maras
|
2011-09-30
, 08:06
|
Posts: 3 |
Thanked: 1 time |
Joined on Sep 2011
@ Poland
|
#691
|
|
2011-09-30
, 08:29
|
|
Posts: 277 |
Thanked: 93 times |
Joined on Jan 2010
@ Belgrade
|
#692
|
but it's possible to make a script setting current wallpaper and kill it to refresh qtlockscreen cache. However that would be a ugly hack.
|
2011-09-30
, 15:26
|
|
Posts: 397 |
Thanked: 802 times |
Joined on Jan 2010
@ Sydney
|
#693
|
#ifdef Q_WS_MAEMO_5
#include <QtGui/QMovie>
#include<QLabel>
#include<QGraphicsProxyWidget>
#include <QtGui/QWidget>
#include <QtGui/QX11Info>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <mce/dbus-names.h>
#include <mce/mode-names.h>
#endif
bool LockScreen:ebug;
bool LockScreen::ScreenshotMode;
QSettings* LockScreen::Settings;
LockScreen::LockScreen(QWidget *parent) :
QObject(parent)
{
.......
void LockScreen::setBackground()
{
bool isPortrait = LsWidget::isPortrait();
QString bkg;
if (isPortrait)
bkg = LockScreen::Settings->value("Main/BackGroundImageP", "/opt/usr/share/themes/alpha/backgrounds/lockslider.png").toString();
else
bkg = LockScreen::Settings->value("Main/BackGroundImageL", "/opt/usr/share/themes/alpha/backgrounds/lockslider.png").toString();
if (m_BkgPath != bkg){
if (!bkg.isEmpty())
{
QMovie *movie = new QMovie("/home/user/MyDocs/rotate.gif");
QLabel *processLabel = new QLabel();
processLabel->setGeometry(0,0,800,480);
processLabel->setMovie(movie);
movie->start();
QGraphicsProxyWidget *proxy = m_Scene.addWidget(processLabel);
m_Scene.setBackgroundBrush(QPixmap(bkg));
}
else
m_Scene.setBackgroundBrush(QBrush(QColor(0,0,0,0)) );
m_BkgPath = bkg;
}
}
|
2011-09-30
, 15:31
|
|
Posts: 533 |
Thanked: 1,341 times |
Joined on Dec 2010
@ Italy
|
#694
|
|
2011-09-30
, 15:46
|
|
Posts: 397 |
Thanked: 802 times |
Joined on Jan 2010
@ Sydney
|
#695
|
|
2011-09-30
, 15:59
|
|
Posts: 533 |
Thanked: 1,341 times |
Joined on Dec 2010
@ Italy
|
#696
|
|
2011-09-30
, 16:23
|
|
Posts: 397 |
Thanked: 802 times |
Joined on Jan 2010
@ Sydney
|
#697
|
The Following User Says Thank You to Blaizzen For This Useful Post: | ||
|
2011-09-30
, 16:49
|
|
Posts: 533 |
Thanked: 1,341 times |
Joined on Dec 2010
@ Italy
|
#698
|
The Following User Says Thank You to sakya For This Useful Post: | ||
|
2011-09-30
, 18:35
|
Posts: 336 |
Thanked: 129 times |
Joined on Jan 2011
@ portugal
|
#699
|
|
2011-09-30
, 18:38
|
Posts: 336 |
Thanked: 129 times |
Joined on Jan 2011
@ portugal
|
#700
|