Commit c4abb7d9 authored by Max Lyon's avatar Max Lyon
Browse files

enable drag and drop to load selections

parent a3dbefbf
...@@ -386,7 +386,14 @@ void SelectionBasePlugin::slotKeyReleaseEvent(QKeyEvent* _event) { ...@@ -386,7 +386,14 @@ void SelectionBasePlugin::slotKeyReleaseEvent(QKeyEvent* _event) {
// Check if we want to source or target selection // Check if we want to source or target selection
if ((_event->modifiers() & Qt::ShiftModifier) || (_event->key() == Qt::Key_Shift)) if ((_event->modifiers() & Qt::ShiftModifier) || (_event->key() == Qt::Key_Shift))
tool_->restrictOnTargets->setChecked(false); tool_->restrictOnTargets->setChecked(false);
}
//============================================================================================
void SelectionBasePlugin::loadIniFileOptionsLast(INIFile &_ini)
{
emit loadSelection(_ini);
} }
//============================================================================================ //============================================================================================
......
...@@ -201,6 +201,10 @@ Q_INTERFACES(SelectionInterface) ...@@ -201,6 +201,10 @@ Q_INTERFACES(SelectionInterface)
void slotKeyEvent(QKeyEvent* _event); void slotKeyEvent(QKeyEvent* _event);
void slotKeyReleaseEvent(QKeyEvent* _event); void slotKeyReleaseEvent(QKeyEvent* _event);
// INIInterface
void loadIniFileOptionsLast(INIFile& _ini);
// ============== Selection Actions =============== // ============== Selection Actions ===============
void slotMouseToggleSelection(QMouseEvent* _event); void slotMouseToggleSelection(QMouseEvent* _event);
......
Supports Markdown
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