diff options
| author | Montel Laurent <[email protected]> | 2011-07-31 13:33:56 +0200 |
|---|---|---|
| committer | Montel Laurent <[email protected]> | 2011-07-31 13:33:56 +0200 |
| commit | 08d655c2bc107449ee322f8b826710b7e690950b (patch) | |
| tree | 6268fe56b9d4bb7fdad68841836c3265fb178284 /src/panels/folders | |
| parent | f23e9496f303995557b744c03178f5dbd9b35016 (diff) | |
normalize signals/slots
Diffstat (limited to 'src/panels/folders')
| -rw-r--r-- | src/panels/folders/folderspanel.cpp | 14 | ||||
| -rw-r--r-- | src/panels/folders/ktreeview.cpp | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/panels/folders/folderspanel.cpp b/src/panels/folders/folderspanel.cpp index fe0f0b134..340e79d30 100644 --- a/src/panels/folders/folderspanel.cpp +++ b/src/panels/folders/folderspanel.cpp @@ -148,8 +148,8 @@ void FoldersPanel::showEvent(QShowEvent* event) m_dolphinModel = new DolphinModel(this); m_dolphinModel->setDirLister(m_dirLister); m_dolphinModel->setDropsAllowed(DolphinModel::DropOnDirectory); - connect(m_dolphinModel, SIGNAL(expand(const QModelIndex&)), - this, SLOT(expandToDir(const QModelIndex&))); + connect(m_dolphinModel, SIGNAL(expand(QModelIndex)), + this, SLOT(expandToDir(QModelIndex))); Q_ASSERT(!m_proxyModel); m_proxyModel = new DolphinSortFilterProxyModel(this); @@ -164,11 +164,11 @@ void FoldersPanel::showEvent(QShowEvent* event) new FolderExpander(m_treeView, m_proxyModel); - connect(m_treeView, SIGNAL(clicked(const QModelIndex&)), - this, SLOT(updateActiveView(const QModelIndex&))); - connect(m_treeView, SIGNAL(urlsDropped(const QModelIndex&, QDropEvent*)), - this, SLOT(dropUrls(const QModelIndex&, QDropEvent*))); - connect(m_treeView, SIGNAL(pressed(const QModelIndex&)), + connect(m_treeView, SIGNAL(clicked(QModelIndex)), + this, SLOT(updateActiveView(QModelIndex))); + connect(m_treeView, SIGNAL(urlsDropped(QModelIndex,QDropEvent*)), + this, SLOT(dropUrls(QModelIndex,QDropEvent*))); + connect(m_treeView, SIGNAL(pressed(QModelIndex)), this, SLOT(updateMouseButtons())); connect(m_treeView->horizontalScrollBar(), SIGNAL(sliderMoved(int)), diff --git a/src/panels/folders/ktreeview.cpp b/src/panels/folders/ktreeview.cpp index 6a492b400..765b934be 100644 --- a/src/panels/folders/ktreeview.cpp +++ b/src/panels/folders/ktreeview.cpp @@ -37,13 +37,13 @@ KTreeView::KTreeViewPrivate::KTreeViewPrivate(KTreeView *parent) : connect(timeLine, SIGNAL(frameChanged(int)), this, SLOT(updateVerticalScrollBar(int))); - connect(parent->verticalScrollBar(), SIGNAL(rangeChanged(int, int)), + connect(parent->verticalScrollBar(), SIGNAL(rangeChanged(int,int)), this, SLOT(startScrolling())); connect(parent->verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(startScrolling())); - connect(parent, SIGNAL(collapsed(const QModelIndex&)), + connect(parent, SIGNAL(collapsed(QModelIndex)), this, SLOT(startScrolling())); - connect(parent, SIGNAL(expanded(const QModelIndex&)), + connect(parent, SIGNAL(expanded(QModelIndex)), this, SLOT(startScrolling())); } |
