From 1364d0e97b22c85742f0bc1c99fc72f0c7abf61c Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Tue, 26 Sep 2017 19:08:56 +0200 Subject: [PATCH] Properly create KPixmapSequence Summary: The KPixmapSequence constructor needs the full path of the icon, so the current code doesn't work and generates a "Invalid pixmap specified" warning at runtime. By using KIconLoader we can fix this issue. Test Plan: Search something and reach the end of document to make the animation start. Subscribers: #okular Tags: #okular Differential Revision: https://phabricator.kde.org/D7996 --- ui/searchlineedit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/searchlineedit.cpp b/ui/searchlineedit.cpp index 74e6ef60c..497e7b36b 100644 --- a/ui/searchlineedit.cpp +++ b/ui/searchlineedit.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -327,7 +328,7 @@ void SearchLineWidget::slotTimedout() { if ( m_anim->sequence().isEmpty() ) { - const KPixmapSequence seq( QStringLiteral("process-working"), 22 ); + const KPixmapSequence seq = KIconLoader::global()->loadPixmapSequence(QStringLiteral("process-working"), 22); if ( seq.frameCount() > 0 ) { m_anim->setInterval( 1000 / seq.frameCount() );