Commit 0f7e6903 authored by David Schulz's avatar David Schulz

Bookmark: make bookmarks draggable

Task-number: QTCREATORBUG-9721
Change-Id: I157e2c4a15ae9d7e4942d3be378ecd01ef493155
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 6591a014
......@@ -50,6 +50,16 @@ void Bookmark::removedFromEditor()
m_manager->deleteBookmark(this);
}
bool Bookmark::isDraggable() const
{
return true;
}
void Bookmark::dragToLine(int lineNumber)
{
move(lineNumber);
}
void Bookmark::updateLineNumber(int line)
{
if (line != lineNumber()) {
......@@ -63,6 +73,7 @@ void Bookmark::move(int line)
if (line != lineNumber()) {
TextMark::move(line);
m_manager->updateBookmark(this);
updateMarker();
}
}
......
......@@ -43,6 +43,9 @@ public:
void updateFileName(const QString &fileName) override;
void removedFromEditor() override;
bool isDraggable() const override;
void dragToLine(int lineNumber) override;
void setNote(const QString &note);
void updateNote(const QString &note);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment