forked from qt-creator/qt-creator
Introduce dragging for all explorer nodes.
Extend drop support with variant values. A drop may be a file drop or a value drop or both. Rename Utils::FileDropSupport to Utils::DropSupport and add methods to add not only files but any QVariant value to the mime data. Project explorer adds dragged nodes (which will be needed for future ModelEditor plugin). Change-Id: I799542c60fdecb3e64af0d3ba47b6caa9adbcfd7 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
#include "icore.h"
|
||||
|
||||
#include <utils/appmainwindow.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/dropsupport.h>
|
||||
|
||||
#include <QMap>
|
||||
#include <QColor>
|
||||
@@ -135,7 +135,7 @@ private slots:
|
||||
void updateFocusWidget(QWidget *old, QWidget *now);
|
||||
void setSidebarVisible(bool visible);
|
||||
void destroyVersionDialog();
|
||||
void openDroppedFiles(const QList<Utils::FileDropSupport::FileSpec> &files);
|
||||
void openDroppedFiles(const QList<Utils::DropSupport::FileSpec> &files);
|
||||
void restoreWindowState();
|
||||
void newItemDialogFinished();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user