┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-05-10 20:29:10 +0000
committerPeter Penz <[email protected]>2007-05-10 20:29:10 +0000
commitd03b27f28850e25d087f946e3a5c99b21c76f359 (patch)
tree27cf913e6d10347df34f7172f4a128bd6246835b /src/dolphiniconsview.h
parent6ab84fbd6129422dfa59c095087c7ceb1a9e1e50 (diff)
layout improvements in the icons view:
* do a text wrapping if the number of lines is > 1 (TODO: bugfix of KFileItemDelegate necessary, currently the text might overlap with the icon) * increase the height for the text area if an additional information like type, date, ... is shown svn path=/trunk/KDE/kdebase/apps/; revision=663320
Diffstat (limited to 'src/dolphiniconsview.h')
-rw-r--r--src/dolphiniconsview.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dolphiniconsview.h b/src/dolphiniconsview.h
index fce8f62bd..212ed3e78 100644
--- a/src/dolphiniconsview.h
+++ b/src/dolphiniconsview.h
@@ -51,12 +51,8 @@ protected:
virtual void dropEvent(QDropEvent* event);
private slots:
- /**
- * Updates the size of the grid
- * depending on the state of \a showPreview.
- */
- void updateGridSize(bool showPreview);
-
+ void slotShowPreviewChanged(bool show);
+ void slotShowAdditionalInfoChanged(bool show);
void zoomIn();
void zoomOut();
@@ -70,9 +66,15 @@ private:
/** Returns the decreased icon size for the size \a size. */
int decreasedIconSize(int size) const;
+ /**
+ * Updates the size of the grid depending on the state
+ * of \a showPreview and \a showAdditionalInfo.
+ */
+ void updateGridSize(bool showPreview, bool showAdditionalInfo);
+
private:
DolphinController* m_controller;
- QStyleOptionViewItem m_viewOptions;
+ QStyleOptionViewItemV2 m_viewOptions;
};
#endif