KDE/kdeplasma-addons/applets/previewer

Alessandro Diaferia alediaferia at gmail.com
Wed Aug 26 17:38:02 CEST 2009


SVN commit 1015911 by adiaferia:

writing the name also at the bottom leads to unuseful redundancy
CCMAIL:plasma-devel at kde.org


 M  +0 -11     previewwidget.cpp  


--- trunk/KDE/kdeplasma-addons/applets/previewer/previewwidget.cpp #1015910:1015911
@@ -594,17 +594,6 @@
             painter->drawPixmap(p_rect, scaled);
         }
     }
-
-
-    if (!m_hoveredUrl.isValid()) {
-        return;
-    }
-    QRect itemNameRect = QRect(m_itemsRect.x(), m_itemsRect.bottom(),
-                               m_itemsRect.width(), bottomBorder);
-    // here we paint the file name
-    painter->setFont(KGlobalSettings::smallestReadableFont());
-    painter->setPen(Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor));
-    painter->drawText(itemNameRect, Qt::AlignVCenter | Qt::AlignLeft, m_hoveredUrl.fileName());
 }
 
 void PreviewWidget::drawOpenCloseArrow(QPainter *painter)


More information about the Plasma-devel mailing list