aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2016-07-31 22:48:31 +0200
committerJean-Baptiste Mardelle <[email protected]>2016-07-31 22:48:31 +0200
commit9ff454a158cf66c43e95f8ae1c05fac016f05fce (patch)
tree9f83e4fa00beb0d7fc3b6556c35d100cf5215ad6
parent8073a2c1525d988b895a9b726d686334513e4fc9 (diff)
Fix display of stabilize dialog (remove useless radio buttons)
-rw-r--r--src/project/clipstabilize.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/project/clipstabilize.cpp b/src/project/clipstabilize.cpp
index 2b23132..996e345 100644
--- a/src/project/clipstabilize.cpp
+++ b/src/project/clipstabilize.cpp
@@ -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,
- true,/*showRadioBtn*/
+ false,/*showRadioBtn*/
this);
dbl->setObjectName(hi.key());
dbl->setToolTip(val[QStringLiteral("tooltip")]);