Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
Plugin-SelectionBase
Commits
c4abb7d9
Commit
c4abb7d9
authored
Aug 10, 2017
by
Max Lyon
Browse files
enable drag and drop to load selections
parent
a3dbefbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
SelectionBasePlugin.cc
View file @
c4abb7d9
...
@@ -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
);
}
}
//============================================================================================
//============================================================================================
...
...
SelectionBasePlugin.hh
View file @
c4abb7d9
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment