]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kstandarditemlistgroupheader.cpp
GIT_SILENT Update Appstream for new release
[dolphin.git] / src / kitemviews / kstandarditemlistgroupheader.cpp
index e8468dacc59fe86189760c9d04a7412da6ed3a28..0960084a37984a1a02132ffe64b28dfe877525da 100644 (file)
@@ -51,7 +51,8 @@ void KStandardItemListGroupHeader::paintSeparator(QPainter *painter, const QColo
     painter->setPen(color);
 
     if (scrollOrientation() == Qt::Horizontal) {
-        painter->drawLine(0, 0, 0, size().height() - 1);
+        const qreal x = layoutDirection() == Qt::RightToLeft ? size().width() - 1 : 0;
+        painter->drawLine(x, 0, x, size().height() - 1);
     } else {
         if (layoutDirection() == Qt::LeftToRight) {
             painter->drawLine(0, 0, size().width() - 1, 0);
@@ -109,3 +110,5 @@ void KStandardItemListGroupHeader::updateCache()
         m_text = text;
     }
 }
+
+#include "moc_kstandarditemlistgroupheader.cpp"