X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/aa69bcdc64d4cc335da9ab853ace2fbf54157d82..09860f7cf4bdc6df66393d617184efec773ed1cf:/src/kcategorizedview.cpp diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index 72909e836..622fe7b60 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -608,7 +608,6 @@ void KCategorizedView::paintEvent(QPaintEvent *event) } // Redraw categories - int i = 0; QStyleOptionViewItem otherOption; foreach (const QString &category, d->categories) { @@ -938,7 +937,6 @@ QModelIndex KCategorizedView::moveCursor(CursorAction cursorAction, const QModelIndex current = selectionModel()->currentIndex(); int viewportWidth = viewport()->width() - spacing(); - int itemHeight = d->biggestItemSize.height(); int itemWidth = d->biggestItemSize.width(); int itemWidthPlusSeparation = spacing() + itemWidth; int elementsPerRow = viewportWidth / itemWidthPlusSeparation;