Commit 88372b61 authored by Simon Eugster's avatar Simon Eugster

Abstract scopes: Moved pens to ASW so other widgets can use them

svn path=/trunk/kdenlive/; revision=4794
parent b19a4181
...@@ -25,6 +25,11 @@ const QColor light(250, 238, 226, 255); ...@@ -25,6 +25,11 @@ const QColor light(250, 238, 226, 255);
const QColor dark ( 40, 40, 39, 255); const QColor dark ( 40, 40, 39, 255);
const QColor dark2( 25, 25, 23, 255); const QColor dark2( 25, 25, 23, 255);
const QPen AbstractScopeWidget::penThick(QBrush(QColor(250,250,250)), 2, Qt::SolidLine);
const QPen AbstractScopeWidget::penThin (QBrush(QColor(250,250,250)), 1, Qt::SolidLine);
const QPen AbstractScopeWidget::penLight(QBrush(QColor(200,200,250,150)), 1, Qt::SolidLine);
const QPen AbstractScopeWidget::penDark (QBrush(QColor(0,0,20,250)), 1, Qt::SolidLine);
AbstractScopeWidget::AbstractScopeWidget(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent) : AbstractScopeWidget::AbstractScopeWidget(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent) :
QWidget(parent), QWidget(parent),
m_projMonitor(projMonitor), m_projMonitor(projMonitor),
......
...@@ -76,6 +76,12 @@ public: ...@@ -76,6 +76,12 @@ public:
virtual QString widgetName() const = 0; virtual QString widgetName() const = 0;
///// Variables /////
static const QPen penThick;
static const QPen penThin;
static const QPen penLight;
static const QPen penDark;
protected: protected:
///// Variables ///// ///// Variables /////
......
...@@ -34,11 +34,6 @@ const QPointF YUV_Cy(.147, -.615); ...@@ -34,11 +34,6 @@ const QPointF YUV_Cy(.147, -.615);
const QPointF YUV_Mg(.289, .515); const QPointF YUV_Mg(.289, .515);
const QPointF YUV_Yl(-.437, .100); const QPointF YUV_Yl(-.437, .100);
const QPen penThick(QBrush(QColor(250,250,250)), 2, Qt::SolidLine);
const QPen penThin(QBrush(QColor(250,250,250)), 1, Qt::SolidLine);
const QPen penLight(QBrush(QColor(200,200,250,150)), 1, Qt::SolidLine);
const QPen penDark(QBrush(QColor(0,0,20,250)), 1, Qt::SolidLine);
Vectorscope::Vectorscope(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent) : Vectorscope::Vectorscope(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent) :
AbstractScopeWidget(projMonitor, clipMonitor, parent), AbstractScopeWidget(projMonitor, clipMonitor, parent),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment