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
Tobias Hunger
qt-creator
Commits
608ec497
Commit
608ec497
authored
Jan 29, 2009
by
Olli Werwolff
Browse files
Fixes: Resources in resource editor can be removed using the "delete" key
Task: - RevBy: thorbjorn AutoTest: - Details: -
parent
e4e26a91
Changes
2
Show whitespace changes
Inline
Side-by-side
src/shared/qrceditor/resourceview.cpp
View file @
608ec497
...
...
@@ -382,6 +382,14 @@ void ResourceView::mouseReleaseEvent(QMouseEvent *e)
QTreeView
::
mouseReleaseEvent
(
e
);
}
void
ResourceView
::
keyPressEvent
(
QKeyEvent
*
e
)
{
if
(
e
->
key
()
==
Qt
::
Key_Delete
)
removeItem
();
else
QTreeView
::
keyPressEvent
(
e
);
}
void
ResourceView
::
popupMenu
(
const
QModelIndex
&
index
)
{
if
(
!
m_releasePos
.
isNull
())
{
...
...
src/shared/qrceditor/resourceview.h
View file @
608ec497
...
...
@@ -138,6 +138,7 @@ protected:
void
changeLang
(
const
QModelIndex
&
index
);
void
changeAlias
(
const
QModelIndex
&
index
);
void
mouseReleaseEvent
(
QMouseEvent
*
e
);
void
keyPressEvent
(
QKeyEvent
*
e
);
signals:
void
removeItem
();
...
...
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