From d8669c68e40a6571dfcbdf38e3281a4aeb8c2be6 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 8 Dec 2006 23:41:08 +0000 Subject: Cleanup of signal/slot handling between the dolphin view and the main window: now the main window listens to the signals from the dolphin view and connects to private slots (previously the dolphin view connected to public slots of the main window). Also prevent naming all slots by the prefix 'slot', describe instead what the method does. svn path=/trunk/playground/utils/dolphin/; revision=611617 --- src/dolphiniconsview.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/dolphiniconsview.cpp') diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 8cec9bf7d..98d1a05b1 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -28,13 +28,28 @@ DolphinIconsView::DolphinIconsView(DolphinView* parent) : QListView(parent), m_parentView( parent ) { - setResizeMode( QListView::Adjust ); + setResizeMode(QListView::Adjust); } DolphinIconsView::~DolphinIconsView() { } +QStyleOptionViewItem DolphinIconsView::viewOptions() const +{ + return QListView::viewOptions(); + + // TODO: the view options should been read from the settings; + // the following code is just for testing... + //QStyleOptionViewItem options = QListView::viewOptions(); + //options.decorationAlignment = Qt::AlignRight; + //options.decorationPosition = QStyleOptionViewItem::Right; + //options.decorationSize = QSize(100, 100); + //options.showDecorationSelected = true; + //options.state = QStyle::State_MouseOver; + //return options; +} + void DolphinIconsView::contextMenuEvent(QContextMenuEvent* event) { QListView::contextMenuEvent(event); -- cgit v1.3