change: change code style to Linux style except indent.

This commit is contained in:
Mike Solar
2025-08-03 03:09:40 +08:00
parent 65ab76edc8
commit 74f73ab3be
789 changed files with 77113 additions and 68888 deletions
+16 -12
View File
@@ -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"));
}
}