Skip to content
GitLab
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
5a1f1d5e
Commit
5a1f1d5e
authored
Jan 19, 2010
by
Marco Bubke
Browse files
Remove unused code in the selection tool of the formeditor
parent
138266e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/formeditor/selectiontool.cpp
View file @
5a1f1d5e
...
@@ -188,21 +188,6 @@ void SelectionTool::keyPressEvent(QKeyEvent *event)
...
@@ -188,21 +188,6 @@ void SelectionTool::keyPressEvent(QKeyEvent *event)
view
()
->
changeToMoveTool
();
view
()
->
changeToMoveTool
();
view
()
->
currentTool
()
->
keyPressEvent
(
event
);
view
()
->
currentTool
()
->
keyPressEvent
(
event
);
break
;
break
;
case
Qt
::
Key_C
:
if
(
event
->
modifiers
().
testFlag
(
Qt
::
ControlModifier
))
{
copySelectedNodeToClipBoard
();
break
;
}
case
Qt
::
Key_V
:
if
(
event
->
modifiers
().
testFlag
(
Qt
::
ControlModifier
))
{
pasteClipBoard
();
break
;
}
case
Qt
::
Key_X
:
if
(
event
->
modifiers
().
testFlag
(
Qt
::
ControlModifier
))
{
cutSelectedNodeToClipBoard
();
break
;
}
}
}
}
}
...
@@ -211,21 +196,6 @@ void SelectionTool::keyReleaseEvent(QKeyEvent * /*keyEvent*/)
...
@@ -211,21 +196,6 @@ void SelectionTool::keyReleaseEvent(QKeyEvent * /*keyEvent*/)
}
}
void
SelectionTool
::
copySelectedNodeToClipBoard
()
{
// QClipboard *clipboard = QApplication::clipboard();
}
void
SelectionTool
::
cutSelectedNodeToClipBoard
()
{
// QClipboard *clipboard = QApplication::clipboard();
}
void
SelectionTool
::
pasteClipBoard
()
{
// QClipboard *clipboard = QApplication::clipboard();
}
void
SelectionTool
::
setSelectOnlyContentItems
(
bool
selectOnlyContentItems
)
void
SelectionTool
::
setSelectOnlyContentItems
(
bool
selectOnlyContentItems
)
{
{
m_selectOnlyContentItems
=
selectOnlyContentItems
;
m_selectOnlyContentItems
=
selectOnlyContentItems
;
...
...
src/plugins/qmldesigner/components/formeditor/selectiontool.h
View file @
5a1f1d5e
...
@@ -78,10 +78,6 @@ public:
...
@@ -78,10 +78,6 @@ public:
void
selectUnderPoint
(
QGraphicsSceneMouseEvent
*
event
);
void
selectUnderPoint
(
QGraphicsSceneMouseEvent
*
event
);
void
copySelectedNodeToClipBoard
();
void
cutSelectedNodeToClipBoard
();
void
pasteClipBoard
();
void
setSelectOnlyContentItems
(
bool
selectOnlyContentItems
);
void
setSelectOnlyContentItems
(
bool
selectOnlyContentItems
);
private:
private:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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