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 ;