Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Farid Abdelnour
kdenlive
Commits
efc1004a
Commit
efc1004a
authored
Jun 20, 2012
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix script rendering not working in some cases (resizing)
parent
5706601b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/renderwidget.cpp
src/renderwidget.cpp
+3
-3
No files found.
src/renderwidget.cpp
View file @
efc1004a
...
...
@@ -994,8 +994,8 @@ void RenderWidget::slotExport(bool scriptExport, int zoneIn, int zoneOut, const
}
QTextStream
outStream
(
&
file
);
outStream
<<
"#! /bin/sh"
<<
"
\n
"
<<
"
\n
"
;
outStream
<<
"SOURCE="
<<
"
\"
"
+
K
Url
(
playlistPath
).
url
()
+
"
\"
"
<<
"
\n
"
;
outStream
<<
"TARGET="
<<
"
\"
"
+
K
Url
(
dest
).
url
()
+
"
\"
"
<<
"
\n
"
;
outStream
<<
"SOURCE="
<<
"
\"
"
+
Q
Url
(
playlistPath
).
toEncoded
()
+
"
\"
"
<<
"
\n
"
;
outStream
<<
"TARGET="
<<
"
\"
"
+
Q
Url
(
dest
).
toEncoded
()
+
"
\"
"
<<
"
\n
"
;
outStream
<<
"RENDERER="
<<
"
\"
"
+
m_renderer
+
"
\"
"
<<
"
\n
"
;
outStream
<<
"MELT="
<<
"
\"
"
+
KdenliveSettings
::
rendererpath
()
+
"
\"
"
<<
"
\n
"
;
outStream
<<
"PARAMETERS="
<<
"
\"
"
+
render_process_args
.
join
(
" "
)
+
"
\"
"
<<
"
\n
"
;
...
...
@@ -1920,7 +1920,7 @@ void RenderWidget::parseScriptFiles()
item
->
setData
(
0
,
Qt
::
UserRole
,
'1'
);
}
else
item
->
setIcon
(
0
,
KIcon
(
"application-x-executable-script"
));
item
->
setSizeHint
(
0
,
QSize
(
m_view
.
scripts_list
->
columnWidth
(
0
),
fontMetrics
().
height
()
*
2
));
item
->
setData
(
1
,
Qt
::
UserRole
,
KUrl
(
target
).
path
());
item
->
setData
(
1
,
Qt
::
UserRole
,
KUrl
(
QUrl
::
fromEncoded
(
target
.
toUtf8
())
).
path
OrUrl
());
item
->
setData
(
1
,
Qt
::
UserRole
+
1
,
scriptpath
.
path
());
}
QTreeWidgetItem
*
script
=
m_view
.
scripts_list
->
topLevelItem
(
0
);
...
...
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