change: change code style to Linux style except indent.
This commit is contained in:
@@ -22,29 +22,33 @@
|
||||
|
||||
#include "core.h"
|
||||
|
||||
namespace olive {
|
||||
|
||||
PixelSamplerPanel::PixelSamplerPanel() :
|
||||
PanelWidget(QStringLiteral("PixelSamplerPanel"))
|
||||
namespace olive
|
||||
{
|
||||
sampler_widget_ = new ManagedPixelSamplerWidget(this);
|
||||
SetWidgetWithPadding(sampler_widget_);
|
||||
|
||||
connect(this, &PixelSamplerPanel::shown, Core::instance(), []{Core::instance()->RequestPixelSamplingInViewers(true);});
|
||||
connect(this, &PixelSamplerPanel::hidden, Core::instance(), []{Core::instance()->RequestPixelSamplingInViewers(false);});
|
||||
connect(Core::instance(), &Core::ColorPickerColorEmitted, this, &PixelSamplerPanel::SetValues);
|
||||
PixelSamplerPanel::PixelSamplerPanel()
|
||||
: PanelWidget(QStringLiteral("PixelSamplerPanel"))
|
||||
{
|
||||
sampler_widget_ = new ManagedPixelSamplerWidget(this);
|
||||
SetWidgetWithPadding(sampler_widget_);
|
||||
|
||||
Retranslate();
|
||||
connect(this, &PixelSamplerPanel::shown, Core::instance(),
|
||||
[] { Core::instance()->RequestPixelSamplingInViewers(true); });
|
||||
connect(this, &PixelSamplerPanel::hidden, Core::instance(),
|
||||
[] { Core::instance()->RequestPixelSamplingInViewers(false); });
|
||||
connect(Core::instance(), &Core::ColorPickerColorEmitted, this,
|
||||
&PixelSamplerPanel::SetValues);
|
||||
|
||||
Retranslate();
|
||||
}
|
||||
|
||||
void PixelSamplerPanel::SetValues(const Color &reference, const Color &display)
|
||||
{
|
||||
sampler_widget_->SetValues(reference, display);
|
||||
sampler_widget_->SetValues(reference, display);
|
||||
}
|
||||
|
||||
void PixelSamplerPanel::Retranslate()
|
||||
{
|
||||
SetTitle(tr("Pixel Sampler"));
|
||||
SetTitle(tr("Pixel Sampler"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -24,22 +24,21 @@
|
||||
#include "panel/panel.h"
|
||||
#include "widget/pixelsampler/pixelsampler.h"
|
||||
|
||||
namespace olive {
|
||||
|
||||
class PixelSamplerPanel : public PanelWidget
|
||||
namespace olive
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
class PixelSamplerPanel : public PanelWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
PixelSamplerPanel();
|
||||
PixelSamplerPanel();
|
||||
|
||||
public slots:
|
||||
void SetValues(const Color& reference, const Color& display);
|
||||
void SetValues(const Color &reference, const Color &display);
|
||||
|
||||
private:
|
||||
virtual void Retranslate() override;
|
||||
|
||||
ManagedPixelSamplerWidget* sampler_widget_;
|
||||
virtual void Retranslate() override;
|
||||
|
||||
ManagedPixelSamplerWidget *sampler_widget_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user