#include <QTimer>
#include <QScrollBar>
+#include <kcolorscheme.h>
#include <kdirmodel.h>
#include <kdirlister.h>
#include <kfileitemdelegate.h>
-#include <kglobalsettings.h>
#include <klocale.h>
#include <kiconeffect.h>
#include <kio/netaccess.h>
m_controller = new DolphinController(this);
m_controller->setUrl(url);
- connect(m_controller, SIGNAL(requestContextMenu(const QPoint&)),
- this, SLOT(openContextMenu(const QPoint&)));
+ connect(m_controller, SIGNAL(requestContextMenu(const QPoint&, const KUrl&)),
+ this, SLOT(openContextMenu(const QPoint&, const KUrl&)));
connect(m_controller, SIGNAL(urlsDropped(const KUrl::List&, const QModelIndex&, QWidget*)),
this, SLOT(dropUrls(const KUrl::List&, const QModelIndex&, QWidget*)));
connect(m_controller, SIGNAL(sortingChanged(DolphinView::Sorting)),
m_active = active;
- QColor color = KGlobalSettings::baseColor();
+ QColor color = KColorScheme(KColorScheme::View).background();
if (active) {
emit urlChanged(url());
emit selectionChanged(selectedItems());
| QItemSelectionModel::Current);
}
-void DolphinView::openContextMenu(const QPoint& pos)
+void DolphinView::openContextMenu(const QPoint& pos, const KUrl& url)
{
KFileItem* item = 0;
item = fileItem(index);
}
- emit requestContextMenu(item, url());
+ emit requestContextMenu(item, url);
}
void DolphinView::dropUrls(const KUrl::List& urls,