forked from qt-creator/qt-creator
Type hierarchy: Add drag & drop into editor splits
Change-Id: I8fec78779d4241988bd4987a5d86020cea83d077 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
|
||||
#include <utils/uncommentselection.h>
|
||||
|
||||
#include <QLabel>
|
||||
#include <QPlainTextEdit>
|
||||
#include <functional>
|
||||
|
||||
@@ -623,6 +624,24 @@ private:
|
||||
friend class RefactorOverlay;
|
||||
};
|
||||
|
||||
class TEXTEDITOR_EXPORT TextEditorLinkLabel : public QLabel
|
||||
{
|
||||
public:
|
||||
TextEditorLinkLabel(QWidget *parent = 0);
|
||||
|
||||
void setLink(TextEditorWidget::Link link);
|
||||
TextEditorWidget::Link link() const;
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
|
||||
private:
|
||||
QPoint m_dragStartPosition;
|
||||
TextEditorWidget::Link m_link;
|
||||
};
|
||||
|
||||
class TEXTEDITOR_EXPORT TextEditorFactory : public Core::IEditorFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user