┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews
diff options
context:
space:
mode:
authorManuel Alcaraz Zambrano <[email protected]>2024-07-17 17:56:25 +0200
committerManuel Alcaraz Zambrano <[email protected]>2024-07-17 17:56:25 +0200
commit285c14dd4e2127a34c5bd936e7563be3e62baa90 (patch)
tree0bfac14a9595d8b344e140659c94e12595be4fdc /src/kitemviews
parentb66070293f504c288186ee1b72f35fed85371db3 (diff)
Remove dead code
Diffstat (limited to 'src/kitemviews')
-rw-r--r--src/kitemviews/kstandarditemlistwidget.cpp4
-rw-r--r--src/kitemviews/private/kitemlistsmoothscroller.cpp6
2 files changed, 0 insertions, 10 deletions
diff --git a/src/kitemviews/kstandarditemlistwidget.cpp b/src/kitemviews/kstandarditemlistwidget.cpp
index d2806082a..cddd43330 100644
--- a/src/kitemviews/kstandarditemlistwidget.cpp
+++ b/src/kitemviews/kstandarditemlistwidget.cpp
@@ -1256,11 +1256,7 @@ QString KStandardItemListWidget::elideRightKeepExtension(const QString &text, in
if (elidingWidth > extensionWidth && extensionLength < 6 && (float(extensionWidth) / float(elidingWidth)) < 0.3) {
// if we have room to display the file extension and the extension is not too long
QString ret = m_customizedFontMetrics.elidedText(text.chopped(extensionLength), Qt::ElideRight, elidingWidth - extensionWidth);
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
- ret.append(text.rightRef(extensionLength));
-#else
ret.append(QStringView(text).right(extensionLength));
-#endif
return ret;
}
}
diff --git a/src/kitemviews/private/kitemlistsmoothscroller.cpp b/src/kitemviews/private/kitemlistsmoothscroller.cpp
index 1fc452542..fd26d198f 100644
--- a/src/kitemviews/private/kitemlistsmoothscroller.cpp
+++ b/src/kitemviews/private/kitemlistsmoothscroller.cpp
@@ -207,15 +207,9 @@ void KItemListSmoothScroller::handleWheelEvent(QWheelEvent *event)
m_smoothScrolling = true;
-#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QWheelEvent *copy = event->clone();
QApplication::sendEvent(m_scrollBar, copy);
event->setAccepted(copy->isAccepted());
-#else
- QWheelEvent copy = *event;
- QApplication::sendEvent(m_scrollBar, &copy);
- event->setAccepted(copy.isAccepted());
-#endif
m_smoothScrolling = previous;
}