}
}
+void DolphinMainWindow::slotTestCanDecode(const QDragMoveEvent* event, bool& canDecode)
+{
+ canDecode = KUrl::List::canDecode(event->mimeData());
+}
+
void DolphinMainWindow::init()
{
DolphinSettings& settings = DolphinSettings::instance();
this, SLOT(openTabContextMenu(int, const QPoint&)));
connect(m_tabBar, SIGNAL(newTabRequest()),
this, SLOT(openNewTab()));
+ connect(m_tabBar, SIGNAL(testCanDecode(const QDragMoveEvent*, bool&)),
+ this, SLOT(slotTestCanDecode(const QDragMoveEvent*, bool&)));
m_tabBar->blockSignals(true); // signals get unblocked after at least 2 tabs are open
QWidget* centralWidget = new QWidget(this);
* view is replaced by \a url.
*/
void handlePlacesClick(const KUrl& url, Qt::MouseButtons buttons);
+
+ /**
+ * Is connected to the KTabBar signal testCanDecode() and adjusts
+ * the output parameter \a accept.
+ */
+ void slotTestCanDecode(const QDragMoveEvent* event, bool& accept);
private:
DolphinMainWindow(int id);