]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/kitemlistcontainer.cpp
KItemListView: Fix inconsistencies in requiredWidth calculation
[dolphin.git] / src / kitemviews / kitemlistcontainer.cpp
index 1d62c9620400dd90f6ea7b8b6d589f765e719218..f89a6c8ce3eea3a18b199bb09783b2582f62c8b2 100644 (file)
@@ -175,6 +175,22 @@ void KItemListContainer::wheelEvent(QWheelEvent *event)
     smoothScroller->handleWheelEvent(event);
 }
 
+void KItemListContainer::focusInEvent(QFocusEvent *event)
+{
+    KItemListView *view = m_controller->view();
+    if (view) {
+        QApplication::sendEvent(view, event);
+    }
+}
+
+void KItemListContainer::focusOutEvent(QFocusEvent *event)
+{
+    KItemListView *view = m_controller->view();
+    if (view) {
+        QApplication::sendEvent(view, event);
+    }
+}
+
 void KItemListContainer::slotScrollOrientationChanged(Qt::Orientation current, Qt::Orientation previous)
 {
     Q_UNUSED(previous)
@@ -396,3 +412,4 @@ void KItemListContainer::updateScrollOffsetScrollBarPolicy()
 }
 
 #include "kitemlistcontainer.moc"
+#include "moc_kitemlistcontainer.cpp"