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
Marco Bubke
flatpak-qt-creator
Commits
f0a64720
Commit
f0a64720
authored
Apr 20, 2010
by
Friedemann Kleint
Browse files
Designer: Fix accidental widget deletion by pressing Delete in PropEditor.
parent
7040c1a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/designer/formeditorw.cpp
View file @
f0a64720
...
@@ -426,9 +426,10 @@ void FormEditorW::setupActions()
...
@@ -426,9 +426,10 @@ void FormEditorW::setupActions()
bindShortcut
(
am
->
registerAction
(
m_actionPrint
,
Core
::
Constants
::
PRINT
,
m_contexts
),
m_actionPrint
);
bindShortcut
(
am
->
registerAction
(
m_actionPrint
,
Core
::
Constants
::
PRINT
,
m_contexts
),
m_actionPrint
);
connect
(
m_actionPrint
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
print
()));
connect
(
m_actionPrint
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
print
()));
//'delete' action
//'delete' action. Do not set a shortcut as Designer handles
// the 'Delete' key by event filter. Setting a shortcut triggers
// buggy behaviour on Mac (Pressing Delete in QLineEdit removing the widget).
command
=
am
->
registerAction
(
m_fwm
->
actionDelete
(),
QLatin1String
(
"FormEditor.Edit.Delete"
),
m_contexts
);
command
=
am
->
registerAction
(
m_fwm
->
actionDelete
(),
QLatin1String
(
"FormEditor.Edit.Delete"
),
m_contexts
);
command
->
setDefaultKeySequence
(
QKeySequence
::
Delete
);
bindShortcut
(
command
,
m_fwm
->
actionDelete
());
bindShortcut
(
command
,
m_fwm
->
actionDelete
());
command
->
setAttribute
(
Core
::
Command
::
CA_Hide
);
command
->
setAttribute
(
Core
::
Command
::
CA_Hide
);
medit
->
addAction
(
command
,
Core
::
Constants
::
G_EDIT_COPYPASTE
);
medit
->
addAction
(
command
,
Core
::
Constants
::
G_EDIT_COPYPASTE
);
...
...
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