diff options
| author | Peter Penz <[email protected]> | 2006-12-08 23:41:08 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2006-12-08 23:41:08 +0000 |
| commit | d8669c68e40a6571dfcbdf38e3281a4aeb8c2be6 (patch) | |
| tree | 8b49a9b34fbdcbb9f577481a7acf9efb62322c8f /src/dolphiniconsview.cpp | |
| parent | d7d4fb9d26773c2d729b49d71af10e1378381ff3 (diff) | |
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
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
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); |
