From 834003d0dc7b0af6af257f656240c41cc3275ce8 Mon Sep 17 00:00:00 2001 From: Gilles Chauvin Date: Tue, 3 Jun 2008 21:08:52 +0000 Subject: [PATCH] Make widgets aware of qresources. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=816435 --- widgets/checkbox.cpp | 2 +- widgets/label.cpp | 2 +- widgets/pushbutton.cpp | 2 +- widgets/radiobutton.cpp | 2 +- widgets/template.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/widgets/checkbox.cpp b/widgets/checkbox.cpp index d216b6d91..40fc11a75 100644 --- a/widgets/checkbox.cpp +++ b/widgets/checkbox.cpp @@ -108,7 +108,7 @@ void CheckBox::setImage(const QString &path) #ifdef Q_WS_WIN !QDir::isRelativePath(path) #else - path[0] == '/' + (path[0] == '/' || path.startsWith(":/")) #endif ; diff --git a/widgets/label.cpp b/widgets/label.cpp index b3e62018f..61abd7d5a 100644 --- a/widgets/label.cpp +++ b/widgets/label.cpp @@ -114,7 +114,7 @@ void Label::setImage(const QString &path) #ifdef Q_WS_WIN !QDir::isRelativePath(path) #else - path[0] == '/' + (path[0] == '/' || path.startsWith(":/")) #endif ; diff --git a/widgets/pushbutton.cpp b/widgets/pushbutton.cpp index d9d070996..2a6b9b6bb 100644 --- a/widgets/pushbutton.cpp +++ b/widgets/pushbutton.cpp @@ -108,7 +108,7 @@ void PushButton::setImage(const QString &path) #ifdef Q_WS_WIN !QDir::isRelativePath(path) #else - path[0] == '/' + (path[0] == '/' || path.startsWith(":/")) #endif ; diff --git a/widgets/radiobutton.cpp b/widgets/radiobutton.cpp index 96d1e97ff..917ad8321 100644 --- a/widgets/radiobutton.cpp +++ b/widgets/radiobutton.cpp @@ -108,7 +108,7 @@ void RadioButton::setImage(const QString &path) #ifdef Q_WS_WIN !QDir::isRelativePath(path) #else - path[0] == '/' + (path[0] == '/' || path.startsWith(":/")) #endif ; diff --git a/widgets/template.cpp b/widgets/template.cpp index 05d68f686..323b00aef 100644 --- a/widgets/template.cpp +++ b/widgets/template.cpp @@ -110,7 +110,7 @@ void ::setImage(const QString &path) #ifdef Q_WS_WIN !QDir::isRelativePath(path) #else - path[0] == '/' + (path[0] == '/' || path.startsWith(":/")) #endif ;