Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Scott Petrovic
kdenlive
Commits
9ff454a1
Commit
9ff454a1
authored
Jul 31, 2016
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix display of stabilize dialog (remove useless radio buttons)
parent
8073a2c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
17 deletions
+3
-17
src/project/clipstabilize.cpp
src/project/clipstabilize.cpp
+3
-17
No files found.
src/project/clipstabilize.cpp
View file @
9ff454a1
...
...
@@ -21,13 +21,13 @@
#include "clipstabilize.h"
#include "effectstack/widgets/doubleparameterwidget.h"
#include "effectstack/effectstackview2.h"
#include <QDebug>
#include <mlt++/Mlt.h>
#include "kdenlivesettings.h"
#include <QFontDatabase>
#include <KMessageBox>
#include <KColorScheme>
#include <klocalizedstring.h>
ClipStabilize
::
ClipStabilize
(
const
QStringList
&
urls
,
const
QString
&
filterName
,
QWidget
*
parent
)
:
...
...
@@ -42,21 +42,7 @@ ClipStabilize::ClipStabilize(const QStringList &urls, const QString &filterName,
auto_add
->
setText
(
i18np
(
"Add clip to project"
,
"Add clips to project"
,
urls
.
count
()));
auto_add
->
setChecked
(
KdenliveSettings
::
add_new_clip
());
QPalette
p
=
palette
();
KColorScheme
scheme
(
p
.
currentColorGroup
(),
KColorScheme
::
View
,
KSharedConfig
::
openConfig
(
KdenliveSettings
::
colortheme
()));
QColor
dark_bg
=
scheme
.
shade
(
KColorScheme
::
DarkShade
);
QColor
selected_bg
=
scheme
.
decoration
(
KColorScheme
::
FocusColor
).
color
();
QColor
hover_bg
=
scheme
.
decoration
(
KColorScheme
::
HoverColor
).
color
();
QColor
light_bg
=
scheme
.
shade
(
KColorScheme
::
LightShade
);
QString
stylesheet
(
QStringLiteral
(
"QProgressBar:horizontal {border: 1px solid %1;border-radius:0px;border-top-left-radius: 4px;border-bottom-left-radius: 4px;border-right: 0px;background:%4;padding: 0px;text-align:left center}"
"QProgressBar:horizontal#dragOnly {background: %1} QProgressBar:horizontal:hover#dragOnly {background: %3} QProgressBar:horizontal:hover {border: 1px solid %3;border-right: 0px;}"
"QProgressBar::chunk:horizontal {background: %1;} QProgressBar::chunk:horizontal:hover {background: %3;}"
"QProgressBar:horizontal[inTimeline=
\"
true
\"
] { border: 1px solid %2;border-right: 0px;background: %4;padding: 0px;text-align:left center } QProgressBar::chunk:horizontal[inTimeline=
\"
true
\"
] {background: %2;}"
"QAbstractSpinBox#dragBox {border: 1px solid %1;border-top-right-radius: 4px;border-bottom-right-radius: 4px;padding-right:0px;} QAbstractSpinBox::down-button#dragBox {width:0px;padding:0px;}"
"QAbstractSpinBox::up-button#dragBox {width:0px;padding:0px;} QAbstractSpinBox[inTimeline=
\"
true
\"
]#dragBox { border: 1px solid %2;} QAbstractSpinBox:hover#dragBox {border: 1px solid %3;} "
).
arg
(
dark_bg
.
name
(),
selected_bg
.
name
(),
hover_bg
.
name
(),
light_bg
.
name
()));
QString
stylesheet
=
EffectStackView2
::
getStyleSheet
();
setStyleSheet
(
stylesheet
);
if
(
m_urls
.
count
()
==
1
)
{
...
...
@@ -107,7 +93,7 @@ ClipStabilize::ClipStabilize(const QStringList &urls, const QString &filterName,
0
/*id*/
,
QLatin1String
(
""
),
/*suffix*/
val
[
QStringLiteral
(
"decimals"
)]
!=
QLatin1String
(
""
)
?
val
[
QStringLiteral
(
"decimals"
)].
toInt
()
:
0
,
tru
e
,
/*showRadioBtn*/
fals
e
,
/*showRadioBtn*/
this
);
dbl
->
setObjectName
(
hi
.
key
());
dbl
->
setToolTip
(
val
[
QStringLiteral
(
"tooltip"
)]);
...
...
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