Faster theme changes
Don't wait too long after the file changed, makes theme changes be picked up half a second faster -- noticeable for the user.
This commit is contained in:
parent
d8ea983d45
commit
29cf8e22d2
@ -77,7 +77,7 @@ ThemePrivate::ThemePrivate(QObject *parent)
|
|||||||
|
|
||||||
updateNotificationTimer = new QTimer(this);
|
updateNotificationTimer = new QTimer(this);
|
||||||
updateNotificationTimer->setSingleShot(true);
|
updateNotificationTimer->setSingleShot(true);
|
||||||
updateNotificationTimer->setInterval(500);
|
updateNotificationTimer->setInterval(100);
|
||||||
QObject::connect(updateNotificationTimer, SIGNAL(timeout()), this, SLOT(notifyOfChanged()));
|
QObject::connect(updateNotificationTimer, SIGNAL(timeout()), this, SLOT(notifyOfChanged()));
|
||||||
|
|
||||||
if (QPixmap::defaultDepth() > 8) {
|
if (QPixmap::defaultDepth() > 8) {
|
||||||
|
Loading…
Reference in New Issue
Block a user