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
Multimedia
Kdenlive
Commits
5511f780
Commit
5511f780
authored
May 09, 2021
by
Julius Künzel
Browse files
Fix timecode validation on settings dialog
parent
415b70f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/kdenlivesettingsdialog.cpp
View file @
5511f780
...
...
@@ -119,7 +119,7 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(QMap<QString, QString> mappable_a
m_configMisc
.
kcfg_use_exiftool
->
setEnabled
(
!
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"exiftool"
)).
isEmpty
());
QRegExp
rx
(
R"((\+|-)?\d{2}:\d{2}:\d{2}
:
\d{2})"
);
QRegExp
rx
(
R"((\+|-)?\d{2}:\d{2}:\d{2}
(:||,)
\d{2})"
);
QValidator
*
validator
=
new
QRegExpValidator
(
rx
,
this
);
m_configMisc
.
kcfg_color_duration
->
setInputMask
(
pCore
->
timecode
().
mask
());
m_configMisc
.
kcfg_color_duration
->
setValidator
(
validator
);
...
...
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