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 | |
| parent | f23e9496f303995557b744c03178f5dbd9b35016 (diff) | |
normalize signals/slots
Diffstat (limited to 'src/panels')
| -rw-r--r-- | src/panels/folders/folderspanel.cpp | 14 | ||||
| -rw-r--r-- | src/panels/folders/ktreeview.cpp | 6 | ||||
| -rw-r--r-- | src/panels/information/informationpanel.cpp | 2 | ||||
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 8 | ||||
| -rw-r--r-- | src/panels/information/phononwidget.cpp | 4 | ||||
| -rw-r--r-- | src/panels/places/placespanel.cpp | 8 |
6 files changed, 21 insertions, 21 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())); } diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp index 9bfb711c6..d45ef8ea4 100644 --- a/src/panels/information/informationpanel.cpp +++ b/src/panels/information/informationpanel.cpp @@ -346,7 +346,7 @@ void InformationPanel::init() org::kde::KDirNotify* dirNotify = new org::kde::KDirNotify(QString(), QString(), QDBusConnection::sessionBus(), this); - connect(dirNotify, SIGNAL(FileRenamed(QString, QString)), SLOT(slotFileRenamed(QString, QString))); + connect(dirNotify, SIGNAL(FileRenamed(QString,QString)), SLOT(slotFileRenamed(QString,QString))); connect(dirNotify, SIGNAL(FilesAdded(QString)), SLOT(slotFilesAdded(QString))); connect(dirNotify, SIGNAL(FilesChanged(QStringList)), SLOT(slotFilesChanged(QStringList))); connect(dirNotify, SIGNAL(FilesRemoved(QStringList)), SLOT(slotFilesRemoved(QStringList))); diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index 1084fa085..101473172 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -176,10 +176,10 @@ void InformationPanelContent::showItem(const KFileItem& item) KIO::PreviewJob* job = KIO::filePreview(KFileItemList() << item, QSize(m_preview->width(), m_preview->height())); job->setScaleType(KIO::PreviewJob::Unscaled); - connect(job, SIGNAL(gotPreview(const KFileItem&, const QPixmap&)), - this, SLOT(showPreview(const KFileItem&, const QPixmap&))); - connect(job, SIGNAL(failed(const KFileItem&)), - this, SLOT(showIcon(const KFileItem&))); + connect(job, SIGNAL(gotPreview(KFileItem,QPixmap)), + this, SLOT(showPreview(KFileItem,QPixmap))); + connect(job, SIGNAL(failed(KFileItem)), + this, SLOT(showIcon(KFileItem))); } } diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp index 5accf4d87..5f0c11158 100644 --- a/src/panels/information/phononwidget.cpp +++ b/src/panels/information/phononwidget.cpp @@ -210,7 +210,7 @@ void PhononWidget::play() } Q_ASSERT(m_media); - connect(m_media, SIGNAL(stateChanged(Phonon::State, Phonon::State)), + connect(m_media, SIGNAL(stateChanged(Phonon::State,Phonon::State)), this, SLOT(stateChanged(Phonon::State))); m_seekSlider->setMediaObject(m_media); @@ -221,7 +221,7 @@ void PhononWidget::stop() { if (m_media) { m_media->stop(); - disconnect(m_media, SIGNAL(stateChanged(Phonon::State, Phonon::State)), + disconnect(m_media, SIGNAL(stateChanged(Phonon::State,Phonon::State)), this, SLOT(stateChanged(Phonon::State))); emit playingStopped(); diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index e70fdf574..2581ca478 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -28,10 +28,10 @@ PlacesPanel::PlacesPanel(QWidget* parent) : m_mouseButtons(Qt::NoButton) { setDropOnPlaceEnabled(true); - connect(this, SIGNAL(urlsDropped(const KUrl&, QDropEvent*, QWidget*)), - this, SLOT(slotUrlsDropped(const KUrl&, QDropEvent*, QWidget*))); - connect(this, SIGNAL(urlChanged(const KUrl&)), - this, SLOT(emitExtendedUrlChangedSignal(const KUrl&))); + connect(this, SIGNAL(urlsDropped(KUrl,QDropEvent*,QWidget*)), + this, SLOT(slotUrlsDropped(KUrl,QDropEvent*,QWidget*))); + connect(this, SIGNAL(urlChanged(KUrl)), + this, SLOT(emitExtendedUrlChangedSignal(KUrl))); } PlacesPanel::~PlacesPanel() |
