]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinfileitemdelegate.cpp
The apply button in the settings dialog now disables itself when settings are applied...
[dolphin.git] / src / dolphinfileitemdelegate.cpp
index 9889feef8ef32d1e93cc7838bc5191d9235c40ed..3fa05cbb5f808f2e9c64e1328440454bab34d2eb 100644 (file)
@@ -42,7 +42,7 @@ void DolphinFileItemDelegate::paint(QPainter* painter,
 {
     if (m_hasMinimizedNameColumn && (index.column() == KDirModel::Name)) {
         QStyleOptionViewItemV4 opt(option);
-        
+
         const QAbstractProxyModel* proxyModel = static_cast<const QAbstractProxyModel*>(index.model());
         const KDirModel* dirModel = static_cast<const KDirModel*>(proxyModel->sourceModel());
         const QModelIndex dirIndex = proxyModel->mapToSource(index);
@@ -61,7 +61,7 @@ int DolphinFileItemDelegate::nameColumnWidth(const QString& name, const QStyleOp
 {
     QFontMetrics fontMetrics(option.font);
     int width = option.decorationSize.width() + fontMetrics.width(name) + 16;
-    
+
     const int defaultWidth = option.rect.width();
     if ((defaultWidth > 0) && (defaultWidth < width)) {
         width = defaultWidth;
@@ -69,4 +69,3 @@ int DolphinFileItemDelegate::nameColumnWidth(const QString& name, const QStyleOp
     return width;
 }
 
-#include "dolphinfileitemdelegate.moc"