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
258
Issues
258
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
853bbd53
Commit
853bbd53
authored
Aug 30, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix timelinekeyboard focus on start and grab not correctly ended
parent
9b1a25ec
Pipeline
#7145
passed with stage
in 20 minutes and 46 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
9 deletions
+22
-9
src/mainwindow.cpp
src/mainwindow.cpp
+1
-1
src/monitor/monitor.cpp
src/monitor/monitor.cpp
+1
-1
src/timeline2/view/qml/Clip.qml
src/timeline2/view/qml/Clip.qml
+3
-0
src/timeline2/view/qml/timeline.qml
src/timeline2/view/qml/timeline.qml
+7
-7
src/timeline2/view/timelinewidget.cpp
src/timeline2/view/timelinewidget.cpp
+8
-0
src/timeline2/view/timelinewidget.h
src/timeline2/view/timelinewidget.h
+2
-0
No files found.
src/mainwindow.cpp
View file @
853bbd53
...
...
@@ -105,7 +105,6 @@
#include <QStyleFactory>
#include <QTemporaryFile>
#include <QUndoGroup>
#include <KConfigGroup>
#include <QDesktopWidget>
#include <QDialogButtonBox>
...
...
@@ -2010,6 +2009,7 @@ void MainWindow::connectDocument()
m_buttonSelectTool
->
setChecked
(
true
);
connect
(
m_projectMonitorDock
,
&
QDockWidget
::
visibilityChanged
,
m_projectMonitor
,
&
Monitor
::
slotRefreshMonitor
,
Qt
::
UniqueConnection
);
connect
(
m_clipMonitorDock
,
&
QDockWidget
::
visibilityChanged
,
m_clipMonitor
,
&
Monitor
::
slotRefreshMonitor
,
Qt
::
UniqueConnection
);
getMainTimeline
()
->
focusTimeline
();
}
void
MainWindow
::
slotZoneMoved
(
int
start
,
int
end
)
...
...
src/monitor/monitor.cpp
View file @
853bbd53
...
...
@@ -1130,7 +1130,7 @@ void Monitor::checkOverlay(int pos)
pos
=
m_timePos
->
getValue
();
}
QPoint
zone
=
m_glMonitor
->
getControllerProxy
()
->
zone
();
std
::
shared_ptr
<
MarkerListModel
>
model
;
std
::
shared_ptr
<
MarkerListModel
>
model
(
nullptr
)
;
if
(
m_id
==
Kdenlive
::
ClipMonitor
&&
m_controller
)
{
model
=
m_controller
->
getMarkerModel
();
}
else
if
(
m_id
==
Kdenlive
::
ProjectMonitor
&&
pCore
->
currentDoc
())
{
...
...
src/timeline2/view/qml/Clip.qml
View file @
853bbd53
...
...
@@ -84,6 +84,8 @@ Rectangle {
onIsGrabbedChanged
:
{
if
(
clipRoot
.
isGrabbed
)
{
grabItem
()
}
else
{
mouseArea
.
focus
=
false
}
}
...
...
@@ -272,6 +274,7 @@ Rectangle {
}
Keys.onEscapePressed
:
{
timeline
.
grabCurrent
()
//focus = false
}
onPositionChanged
:
{
var
mapped
=
parentTrack
.
mapFromItem
(
clipRoot
,
mouse
.
x
,
mouse
.
y
).
x
...
...
src/timeline2/view/qml/timeline.qml
View file @
853bbd53
...
...
@@ -57,7 +57,7 @@ Rectangle {
playhead
.
fillColor
=
activePalette
.
windowText
ruler
.
repaintRuler
()
}
function
moveSelectedTrack
(
offset
)
{
var
cTrack
=
Logic
.
getTrackIndexFromId
(
timeline
.
activeTrack
)
var
newTrack
=
cTrack
+
offset
...
...
@@ -211,6 +211,12 @@ Rectangle {
}
return
tentativeClip
}
Keys.onDownPressed
:
{
root
.
moveSelectedTrack
(
1
)
}
Keys.onUpPressed
:
{
root
.
moveSelectedTrack
(
-
1
)
}
property
int
headerWidth
:
timeline
.
headerWidth
()
property
int
activeTool
:
0
...
...
@@ -848,12 +854,6 @@ Rectangle {
property
real
clickY
width
:
root
.
width
-
headerWidth
height
:
root
.
height
Keys.onDownPressed
:
{
root
.
moveSelectedTrack
(
1
)
}
Keys.onUpPressed
:
{
root
.
moveSelectedTrack
(
-
1
)
}
// This provides continuous scrubbing and scimming at the left/right edges.
hoverEnabled
:
true
acceptedButtons
:
Qt
.
RightButton
|
Qt
.
LeftButton
|
Qt
.
MidButton
...
...
src/timeline2/view/timelinewidget.cpp
View file @
853bbd53
...
...
@@ -224,3 +224,11 @@ int TimelineWidget::zoomForScale(double value) const
}
return
ix
;
}
void
TimelineWidget
::
focusTimeline
()
{
setFocus
();
if
(
rootObject
())
{
rootObject
()
->
setFocus
(
true
);
}
}
src/timeline2/view/timelinewidget.h
View file @
853bbd53
...
...
@@ -52,6 +52,8 @@ public:
QPoint
getTracksCount
()
const
;
/* @brief calculate zoom level for a scale */
int
zoomForScale
(
double
value
)
const
;
/* @brief Give keyboard focus to timeline qml */
void
focusTimeline
();
bool
loading
;
protected:
...
...
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