Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
261
Issues
261
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Multimedia
Kdenlive
Commits
70720756
Commit
70720756
authored
Jan 24, 2020
by
Jean-Baptiste Mardelle
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use standard rename action for bin rename (with standard F2 shortcut)
parent
d3b8ae9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
src/bin/bin.cpp
src/bin/bin.cpp
+7
-6
src/kdenliveui.rc
src/kdenliveui.rc
+2
-2
No files found.
src/bin/bin.cpp
View file @
70720756
...
...
@@ -1767,17 +1767,20 @@ void Bin::selectProxyModel(const QModelIndex &id)
m_proxyAction
->
setText
(
i18n
(
"Proxy Clip"
));
}
m_deleteAction
->
setEnabled
(
true
);
m_renameAction
->
setEnabled
(
true
);
}
else
{
m_reloadAction
->
setEnabled
(
false
);
m_locateAction
->
setEnabled
(
false
);
m_duplicateAction
->
setEnabled
(
false
);
m_openAction
->
setEnabled
(
false
);
m_deleteAction
->
setEnabled
(
false
);
m_renameAction
->
setEnabled
(
false
);
}
}
else
{
// No item selected in bin
m_openAction
->
setEnabled
(
false
);
m_deleteAction
->
setEnabled
(
false
);
m_renameAction
->
setEnabled
(
false
);
showClipProperties
(
nullptr
);
emit
requestClipShow
(
nullptr
);
// clear effect stack
...
...
@@ -2058,7 +2061,6 @@ void Bin::contextMenuEvent(QContextMenuEvent *event)
m_reloadAction
->
setEnabled
(
enableClipActions
);
m_locateAction
->
setEnabled
(
enableClipActions
);
m_duplicateAction
->
setEnabled
(
enableClipActions
);
m_renameAction
->
setEnabled
(
true
);
m_editAction
->
setVisible
(
!
isFolder
);
m_clipsActionsMenu
->
setEnabled
(
enableClipActions
);
...
...
@@ -2067,7 +2069,6 @@ void Bin::contextMenuEvent(QContextMenuEvent *event)
m_reloadAction
->
setVisible
(
itemType
!=
AbstractProjectItem
::
FolderItem
);
m_duplicateAction
->
setVisible
(
itemType
!=
AbstractProjectItem
::
FolderItem
);
m_inTimelineAction
->
setVisible
(
itemType
!=
AbstractProjectItem
::
FolderItem
);
m_renameAction
->
setVisible
(
true
);
if
(
m_transcodeAction
)
{
m_transcodeAction
->
setEnabled
(
enableClipActions
);
...
...
@@ -2494,11 +2495,8 @@ void Bin::setupMenu()
m_openAction
->
setEnabled
(
false
);
connect
(
m_openAction
,
&
QAction
::
triggered
,
this
,
&
Bin
::
slotOpenClip
);
m_renameAction
=
addAction
(
QStringLiteral
(
"rename_clip"
),
i18n
(
"Rename Clip"
),
QIcon
::
fromTheme
(
QStringLiteral
(
"document-edit"
)));
m_renameAction
->
setData
(
"rename_clip"
);
m_renameAction
=
KStandardAction
::
renameFile
(
this
,
SLOT
(
slotRenameItem
()),
pCore
->
window
()
->
actionCollection
());
m_renameAction
->
setEnabled
(
false
);
connect
(
m_renameAction
,
&
QAction
::
triggered
,
this
,
&
Bin
::
slotRenameItem
);
m_deleteAction
=
addAction
(
QStringLiteral
(
"delete_clip"
),
i18n
(
"Delete Clip"
),
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-delete"
)));
...
...
@@ -3548,6 +3546,9 @@ void Bin::setBinEffectsEnabled(bool enabled)
void
Bin
::
slotRenameItem
()
{
if
(
!
hasFocus
()
&&
!
m_itemView
->
hasFocus
())
{
return
;
}
const
QModelIndexList
indexes
=
m_proxyModel
->
selectionModel
()
->
selectedRows
(
0
);
for
(
const
QModelIndex
&
ix
:
indexes
)
{
if
(
!
ix
.
isValid
())
{
...
...
src/kdenliveui.rc
View file @
70720756
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui
name=
"kdenlive"
version=
"1
69
"
translationDomain=
"kdenlive"
>
<kpartgui
name=
"kdenlive"
version=
"1
70
"
translationDomain=
"kdenlive"
>
<MenuBar>
<Menu
name=
"file"
>
<Action
name=
"dvd_wizard"
/>
...
...
@@ -70,7 +70,7 @@
</Menu>
<Action
name=
"clip_properties"
/>
<Action
name=
"edit_clip"
/>
<Action
name=
"rename
_clip
"
/>
<Action
name=
"rename
file
"
/>
<Action
name=
"delete_clip"
/>
</Menu>
...
...
Eugen Mohr
@emohr
·
Jan 24, 2020
Developer
Renaming of the labels directly with F2 would be great:
Renaming of the labels directly with F2 would be great: 
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