]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/serviceitemdelegate.cpp
[Details mode] Allow to fill the column size of directories with actual size
[dolphin.git] / src / settings / serviceitemdelegate.cpp
index 3350061b64762f023331a3e266176ba4c1734f3c..fa0b306c1d600ac38fecef4943518ea99af9b31e 100644 (file)
 
 #include "serviceitemdelegate.h"
 
-#include <QPushButton>
-
 #include "servicemodel.h"
 
 #include <QAbstractItemView>
 #include <QCheckBox>
 #include <QPainter>
+#include <QPushButton>
 
 ServiceItemDelegate::ServiceItemDelegate(QAbstractItemView* itemView, QObject* parent) :
     KWidgetItemDelegate(itemView, parent)
@@ -39,7 +38,7 @@ ServiceItemDelegate::~ServiceItemDelegate()
 QSize ServiceItemDelegate::sizeHint(const QStyleOptionViewItem &option,
                                     const QModelIndex &index) const
 {
-    Q_UNUSED(index);
+    Q_UNUSED(index)
 
     const QStyle *style = itemView()->style();
     const int buttonHeight = style->pixelMetric(QStyle::PM_ButtonMargin) * 2 +
@@ -51,7 +50,7 @@ QSize ServiceItemDelegate::sizeHint(const QStyleOptionViewItem &option,
 void ServiceItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option,
                                   const QModelIndex& index) const
 {
-    Q_UNUSED(index);
+    Q_UNUSED(index)
     painter->save();
 
     itemView()->style()->drawPrimitive(QStyle::PE_PanelItemViewItem, &option, painter);