From 894232ebda5b2cf155a4f4e5bf1287eb700faa18 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 21 May 2012 21:43:26 +0200 Subject: Places Panel: Show drop indicator The dropping itself has not been implemented yet. --- src/panels/places/placesitemmodel.cpp | 6 ------ src/panels/places/placesitemmodel.h | 3 --- src/panels/places/placespanel.cpp | 1 - 3 files changed, 10 deletions(-) (limited to 'src/panels') diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp index 68311bbab..2a3dfa441 100644 --- a/src/panels/places/placesitemmodel.cpp +++ b/src/panels/places/placesitemmodel.cpp @@ -339,12 +339,6 @@ QMimeData* PlacesItemModel::createMimeData(const QSet& indexes) const return mimeData; } -bool PlacesItemModel::supportsDropping(int index) const -{ - Q_UNUSED(index); - return true; -} - KUrl PlacesItemModel::convertedUrl(const KUrl& url) { KUrl newUrl = url; diff --git a/src/panels/places/placesitemmodel.h b/src/panels/places/placesitemmodel.h index 7225c04f4..18264f06a 100644 --- a/src/panels/places/placesitemmodel.h +++ b/src/panels/places/placesitemmodel.h @@ -108,9 +108,6 @@ public: /** @reimp */ virtual QMimeData* createMimeData(const QSet& indexes) const; - /** @reimp */ - virtual bool supportsDropping(int index) const; - /** * @return Converts the URL, which contains "virtual" URLs for system-items like * "search:/documents" into a Nepomuk-Query-URL that will be handled by diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 0229d3cac..ccf9d8cff 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -76,7 +76,6 @@ void PlacesPanel::showEvent(QShowEvent* event) // used at all and stays invisible. m_model = new PlacesItemModel(this); m_model->setGroupedSorting(true); - m_model->setSortRole("group"); connect(m_model, SIGNAL(errorMessage(QString)), this, SIGNAL(errorMessage(QString))); -- cgit v1.3