diff options
| author | Fabian Vogt <[email protected]> | 2017-09-30 15:49:52 +0200 |
|---|---|---|
| committer | Fabian Vogt <[email protected]> | 2017-09-30 16:28:47 +0200 |
| commit | c96efc7ccba67a48920713a2d2b0461c747ca3fb (patch) | |
| tree | cd3bf0c5333d386f3c5f0f391936b199d0770975 /src/kitemviews/kstandarditemlistgroupheader.cpp | |
| parent | 478f404b8abf924a0e3e21bbf1dd49aefbe47672 (diff) | |
Fix build with Qt 5.10
Summary: QStaticText's constructor with const QString & as argument is now explicit.
Test Plan:
Did not build before, now does.
Note that this might change the behaviour as the other properties of m_text are now
kept, which was not the case before. I'm not sure what the expected behaviour here
is supposed to be.
Reviewers: #dolphin, #kde_applications, cfeck
Reviewed By: cfeck
Subscribers: cfeck, #kde_applications, #dolphin
Differential Revision: https://phabricator.kde.org/D8075
Diffstat (limited to 'src/kitemviews/kstandarditemlistgroupheader.cpp')
| -rw-r--r-- | src/kitemviews/kstandarditemlistgroupheader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kstandarditemlistgroupheader.cpp b/src/kitemviews/kstandarditemlistgroupheader.cpp index 2afaa168c..c7997faf1 100644 --- a/src/kitemviews/kstandarditemlistgroupheader.cpp +++ b/src/kitemviews/kstandarditemlistgroupheader.cpp @@ -101,7 +101,7 @@ void KStandardItemListGroupHeader::updateCache() const qreal maxWidth = size().width() - 4 * styleOption().padding; if (role() == "rating") { - m_text = QString(); // krazy:exlude=nullstrassign + m_text.setText(QString()); const qreal height = styleOption().fontMetrics.ascent(); const QSizeF pixmapSize(qMin(height * 5, maxWidth), height); |
