Commit 1ed28b16 authored by Marco Martin's avatar Marco Martin

a canceledit function that stops timers

parent a79f80ed
......@@ -361,7 +361,6 @@ void AppletsLayout::setEventManagerToFilter(QQuickItem *item)
emit eventManagerToFilterChanged();
}
void AppletsLayout::save()
{
m_saveLayoutTimer->start();
......
......@@ -94,6 +94,13 @@ bool ItemContainer::dragActive() const
return m_dragActive;
}
void ItemContainer::cancelEdit()
{
m_editModeTimer->stop();
m_mouseDown = false;
setEditMode(false);
}
void ItemContainer::setEditMode(bool editMode)
{
if (m_editMode == editMode) {
......
......@@ -96,6 +96,8 @@ public:
bool dragActive() const;
Q_INVOKABLE void cancelEdit();
EditModeCondition editModeCondition() const;
void setEditModeCondition(EditModeCondition condition);
......
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