Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
f0a64720
Commit
f0a64720
authored
Apr 20, 2010
by
Friedemann Kleint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Designer: Fix accidental widget deletion by pressing Delete in PropEditor.
parent
7040c1a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/plugins/designer/formeditorw.cpp
src/plugins/designer/formeditorw.cpp
+3
-2
No files found.
src/plugins/designer/formeditorw.cpp
View file @
f0a64720
...
...
@@ -426,9 +426,10 @@ void FormEditorW::setupActions()
bindShortcut
(
am
->
registerAction
(
m_actionPrint
,
Core
::
Constants
::
PRINT
,
m_contexts
),
m_actionPrint
);
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
->
setDefaultKeySequence
(
QKeySequence
::
Delete
);
bindShortcut
(
command
,
m_fwm
->
actionDelete
());
command
->
setAttribute
(
Core
::
Command
::
CA_Hide
);
medit
->
addAction
(
command
,
Core
::
Constants
::
G_EDIT_COPYPASTE
);
...
...
Write
Preview
Markdown
is supported
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