refactor: fix some spelling mistakes (#6196)
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
- Bugfix: Fixed some Twitch commands not getting tab-completed correctly. (#6143)
|
- Bugfix: Fixed some Twitch commands not getting tab-completed correctly. (#6143)
|
||||||
- Bugfix: Fixed shared chat badges displaying pixelated when Chatterino is scaled too much. (#6146)
|
- Bugfix: Fixed shared chat badges displaying pixelated when Chatterino is scaled too much. (#6146)
|
||||||
- Bugfix: Fixed a crash that could occur when eventsub was enabled and Chatterino was attached to a conhost on Windows that was later gone. (#6161)
|
- Bugfix: Fixed a crash that could occur when eventsub was enabled and Chatterino was attached to a conhost on Windows that was later gone. (#6161)
|
||||||
|
- Bugfix: Fixed some minor typos. (#6196)
|
||||||
- Dev: Mini refactor of Split. (#6148)
|
- Dev: Mini refactor of Split. (#6148)
|
||||||
- Dev: Conan will no longer generate a `CMakeUserPresets.json` file. (#6117)
|
- Dev: Conan will no longer generate a `CMakeUserPresets.json` file. (#6117)
|
||||||
- Dev: Pass `--force-openssl` when installing from CMake in Qt 6.8+. (#6129)
|
- Dev: Pass `--force-openssl` when installing from CMake in Qt 6.8+. (#6129)
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ AccountSwitchPopup::AccountSwitchPopup(QWidget *parent)
|
|||||||
|
|
||||||
this->getLayoutContainer()->setLayout(vbox);
|
this->getLayoutContainer()->setLayout(vbox);
|
||||||
|
|
||||||
this->setScaleIndependantSize(200, 200);
|
this->setScaleIndependentSize(200, 200);
|
||||||
this->themeChangedEvent();
|
this->themeChangedEvent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+17
-17
@@ -70,7 +70,7 @@ void BaseWidget::setScale(float value)
|
|||||||
this->scaleChangedEvent(this->scale());
|
this->scaleChangedEvent(this->scale());
|
||||||
this->scaleChanged.invoke(this->scale());
|
this->scaleChanged.invoke(this->scale());
|
||||||
|
|
||||||
this->setScaleIndependantSize(this->scaleIndependantSize());
|
this->setScaleIndependentSize(this->scaleIndependentSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseWidget::setOverrideScale(std::optional<float> value)
|
void BaseWidget::setOverrideScale(std::optional<float> value)
|
||||||
@@ -84,29 +84,29 @@ std::optional<float> BaseWidget::overrideScale() const
|
|||||||
return this->overrideScale_;
|
return this->overrideScale_;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize BaseWidget::scaleIndependantSize() const
|
QSize BaseWidget::scaleIndependentSize() const
|
||||||
{
|
{
|
||||||
return this->scaleIndependantSize_;
|
return this->scaleIndependentSize_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int BaseWidget::scaleIndependantWidth() const
|
int BaseWidget::scaleIndependentWidth() const
|
||||||
{
|
{
|
||||||
return this->scaleIndependantSize_.width();
|
return this->scaleIndependentSize_.width();
|
||||||
}
|
}
|
||||||
|
|
||||||
int BaseWidget::scaleIndependantHeight() const
|
int BaseWidget::scaleIndependentHeight() const
|
||||||
{
|
{
|
||||||
return this->scaleIndependantSize_.height();
|
return this->scaleIndependentSize_.height();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseWidget::setScaleIndependantSize(int width, int height)
|
void BaseWidget::setScaleIndependentSize(int width, int height)
|
||||||
{
|
{
|
||||||
this->setScaleIndependantSize(QSize(width, height));
|
this->setScaleIndependentSize(QSize(width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseWidget::setScaleIndependantSize(QSize size)
|
void BaseWidget::setScaleIndependentSize(QSize size)
|
||||||
{
|
{
|
||||||
this->scaleIndependantSize_ = size;
|
this->scaleIndependentSize_ = size;
|
||||||
|
|
||||||
if (size.width() > 0)
|
if (size.width() > 0)
|
||||||
{
|
{
|
||||||
@@ -118,16 +118,16 @@ void BaseWidget::setScaleIndependantSize(QSize size)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseWidget::setScaleIndependantWidth(int value)
|
void BaseWidget::setScaleIndependentWidth(int value)
|
||||||
{
|
{
|
||||||
this->setScaleIndependantSize(
|
this->setScaleIndependentSize(
|
||||||
QSize(value, this->scaleIndependantSize_.height()));
|
QSize(value, this->scaleIndependentSize_.height()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseWidget::setScaleIndependantHeight(int value)
|
void BaseWidget::setScaleIndependentHeight(int value)
|
||||||
{
|
{
|
||||||
this->setScaleIndependantSize(
|
this->setScaleIndependentSize(
|
||||||
QSize(this->scaleIndependantSize_.width(), value));
|
QSize(this->scaleIndependentSize_.width(), value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseWidget::childEvent(QChildEvent *event)
|
void BaseWidget::childEvent(QChildEvent *event)
|
||||||
|
|||||||
@@ -26,13 +26,13 @@ public:
|
|||||||
std::optional<float> overrideScale() const;
|
std::optional<float> overrideScale() const;
|
||||||
void setOverrideScale(std::optional<float>);
|
void setOverrideScale(std::optional<float>);
|
||||||
|
|
||||||
QSize scaleIndependantSize() const;
|
QSize scaleIndependentSize() const;
|
||||||
int scaleIndependantWidth() const;
|
int scaleIndependentWidth() const;
|
||||||
int scaleIndependantHeight() const;
|
int scaleIndependentHeight() const;
|
||||||
void setScaleIndependantSize(int width, int height);
|
void setScaleIndependentSize(int width, int height);
|
||||||
void setScaleIndependantSize(QSize);
|
void setScaleIndependentSize(QSize);
|
||||||
void setScaleIndependantWidth(int value);
|
void setScaleIndependentWidth(int value);
|
||||||
void setScaleIndependantHeight(int value);
|
void setScaleIndependentHeight(int value);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void childEvent(QChildEvent *) override;
|
void childEvent(QChildEvent *) override;
|
||||||
@@ -56,7 +56,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
float scale_{1.f};
|
float scale_{1.f};
|
||||||
std::optional<float> overrideScale_;
|
std::optional<float> overrideScale_;
|
||||||
QSize scaleIndependantSize_;
|
QSize scaleIndependentSize_;
|
||||||
|
|
||||||
std::vector<BaseWidget *> widgets_;
|
std::vector<BaseWidget *> widgets_;
|
||||||
|
|
||||||
|
|||||||
@@ -676,7 +676,7 @@ TitleBarButton *BaseWindow::addTitleBarButton(const TitleBarButtonStyle &style,
|
|||||||
std::function<void()> onClicked)
|
std::function<void()> onClicked)
|
||||||
{
|
{
|
||||||
TitleBarButton *button = new TitleBarButton;
|
TitleBarButton *button = new TitleBarButton;
|
||||||
button->setScaleIndependantSize(30, 30);
|
button->setScaleIndependentSize(30, 30);
|
||||||
|
|
||||||
this->ui_.buttons.push_back(button);
|
this->ui_.buttons.push_back(button);
|
||||||
this->ui_.titlebarBox->insertWidget(1, button);
|
this->ui_.titlebarBox->insertWidget(1, button);
|
||||||
@@ -692,7 +692,7 @@ TitleBarButton *BaseWindow::addTitleBarButton(const TitleBarButtonStyle &style,
|
|||||||
EffectLabel *BaseWindow::addTitleBarLabel(std::function<void()> onClicked)
|
EffectLabel *BaseWindow::addTitleBarLabel(std::function<void()> onClicked)
|
||||||
{
|
{
|
||||||
EffectLabel *button = new EffectLabel;
|
EffectLabel *button = new EffectLabel;
|
||||||
button->setScaleIndependantHeight(30);
|
button->setScaleIndependentHeight(30);
|
||||||
|
|
||||||
this->ui_.buttons.push_back(button);
|
this->ui_.buttons.push_back(button);
|
||||||
this->ui_.titlebarBox->insertWidget(1, button);
|
this->ui_.titlebarBox->insertWidget(1, button);
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ Button *DraggablePopup::createPinButton()
|
|||||||
{
|
{
|
||||||
this->pinButton_ = new Button(this);
|
this->pinButton_ = new Button(this);
|
||||||
this->pinButton_->setPixmap(getTheme()->buttons.pin);
|
this->pinButton_->setPixmap(getTheme()->buttons.pin);
|
||||||
this->pinButton_->setScaleIndependantSize(18, 18);
|
this->pinButton_->setScaleIndependentSize(18, 18);
|
||||||
this->pinButton_->setToolTip("Pin Window");
|
this->pinButton_->setToolTip("Pin Window");
|
||||||
|
|
||||||
QObject::connect(this->pinButton_, &Button::leftClicked, this,
|
QObject::connect(this->pinButton_, &Button::leftClicked, this,
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ EditUserNotesDialog::EditUserNotesDialog(QWidget *parent)
|
|||||||
},
|
},
|
||||||
parent)
|
parent)
|
||||||
{
|
{
|
||||||
this->setScaleIndependantSize(500, 350);
|
this->setScaleIndependentSize(500, 350);
|
||||||
|
|
||||||
auto layout = LayoutCreator<QWidget>(this->getLayoutContainer())
|
auto layout = LayoutCreator<QWidget>(this->getLayoutContainer())
|
||||||
.setLayoutType<QVBoxLayout>();
|
.setLayoutType<QVBoxLayout>();
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ UpdateDialog::UpdateDialog()
|
|||||||
this->updateStatusChanged(status);
|
this->updateStatusChanged(status);
|
||||||
});
|
});
|
||||||
|
|
||||||
this->setScaleIndependantHeight(150);
|
this->setScaleIndependentHeight(150);
|
||||||
this->setScaleIndependantWidth(250);
|
this->setScaleIndependentWidth(250);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateDialog::updateStatusChanged(Updates::Status status)
|
void UpdateDialog::updateStatusChanged(Updates::Status status)
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ Label *addCopyableLabel(LayoutCreator<QHBoxLayout> box, const char *tooltip,
|
|||||||
button.assign(copyButton);
|
button.assign(copyButton);
|
||||||
}
|
}
|
||||||
button->setPixmap(getApp()->getThemes()->buttons.copy);
|
button->setPixmap(getApp()->getThemes()->buttons.copy);
|
||||||
button->setScaleIndependantSize(18, 18);
|
button->setScaleIndependentSize(18, 18);
|
||||||
button->setDim(Button::Dim::Lots);
|
button->setDim(Button::Dim::Lots);
|
||||||
button->setToolTip(tooltip);
|
button->setToolTip(tooltip);
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
@@ -274,7 +274,7 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, Split *split)
|
|||||||
// avatar
|
// avatar
|
||||||
auto avatar =
|
auto avatar =
|
||||||
head.emplace<Button>(nullptr).assign(&this->ui_.avatarButton);
|
head.emplace<Button>(nullptr).assign(&this->ui_.avatarButton);
|
||||||
avatar->setScaleIndependantSize(100, 100);
|
avatar->setScaleIndependentSize(100, 100);
|
||||||
avatar->setDim(Button::Dim::None);
|
avatar->setDim(Button::Dim::None);
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
avatar.getElement(), &Button::clicked,
|
avatar.getElement(), &Button::clicked,
|
||||||
@@ -418,16 +418,16 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, Split *split)
|
|||||||
usercard->getLabel().setText("Usercard");
|
usercard->getLabel().setText("Usercard");
|
||||||
auto mod = user.emplace<Button>(this);
|
auto mod = user.emplace<Button>(this);
|
||||||
mod->setPixmap(getResources().buttons.mod);
|
mod->setPixmap(getResources().buttons.mod);
|
||||||
mod->setScaleIndependantSize(30, 30);
|
mod->setScaleIndependentSize(30, 30);
|
||||||
auto unmod = user.emplace<Button>(this);
|
auto unmod = user.emplace<Button>(this);
|
||||||
unmod->setPixmap(getResources().buttons.unmod);
|
unmod->setPixmap(getResources().buttons.unmod);
|
||||||
unmod->setScaleIndependantSize(30, 30);
|
unmod->setScaleIndependentSize(30, 30);
|
||||||
auto vip = user.emplace<Button>(this);
|
auto vip = user.emplace<Button>(this);
|
||||||
vip->setPixmap(getResources().buttons.vip);
|
vip->setPixmap(getResources().buttons.vip);
|
||||||
vip->setScaleIndependantSize(30, 30);
|
vip->setScaleIndependentSize(30, 30);
|
||||||
auto unvip = user.emplace<Button>(this);
|
auto unvip = user.emplace<Button>(this);
|
||||||
unvip->setPixmap(getResources().buttons.unvip);
|
unvip->setPixmap(getResources().buttons.unvip);
|
||||||
unvip->setScaleIndependantSize(30, 30);
|
unvip->setScaleIndependentSize(30, 30);
|
||||||
|
|
||||||
user->addStretch(1);
|
user->addStretch(1);
|
||||||
|
|
||||||
@@ -1188,7 +1188,7 @@ UserInfoPopup::TimeoutWidget::TimeoutWidget()
|
|||||||
const QPixmap &pixmap) {
|
const QPixmap &pixmap) {
|
||||||
auto button = addLayout(title).emplace<Button>(nullptr);
|
auto button = addLayout(title).emplace<Button>(nullptr);
|
||||||
button->setPixmap(pixmap);
|
button->setPixmap(pixmap);
|
||||||
button->setScaleIndependantSize(buttonHeight, buttonHeight);
|
button->setScaleIndependentSize(buttonHeight, buttonHeight);
|
||||||
button->setBorderColor(QColor(255, 255, 255, 127));
|
button->setBorderColor(QColor(255, 255, 255, 127));
|
||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
@@ -1205,7 +1205,7 @@ UserInfoPopup::TimeoutWidget::TimeoutWidget()
|
|||||||
auto a = hbox.emplace<EffectLabel2>();
|
auto a = hbox.emplace<EffectLabel2>();
|
||||||
a->getLabel().setText(QString::number(item.second) + item.first);
|
a->getLabel().setText(QString::number(item.second) + item.first);
|
||||||
|
|
||||||
a->setScaleIndependantSize(buttonWidth, buttonHeight);
|
a->setScaleIndependentSize(buttonWidth, buttonHeight);
|
||||||
a->setBorderColor(borderColor);
|
a->setBorderColor(borderColor);
|
||||||
|
|
||||||
const auto pair =
|
const auto pair =
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ public:
|
|||||||
{
|
{
|
||||||
if (this->vertical_)
|
if (this->vertical_)
|
||||||
{
|
{
|
||||||
this->setScaleIndependantWidth(8);
|
this->setScaleIndependentWidth(8);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this->setScaleIndependantHeight(8);
|
this->setScaleIndependentHeight(8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ OverlayInteraction::OverlayInteraction(OverlayWindow *parent)
|
|||||||
this->interactAnimation_.setEndValue(1.0);
|
this->interactAnimation_.setEndValue(1.0);
|
||||||
|
|
||||||
this->closeButton_.setButtonStyle(TitleBarButtonStyle::Close);
|
this->closeButton_.setButtonStyle(TitleBarButtonStyle::Close);
|
||||||
this->closeButton_.setScaleIndependantSize(46, 30);
|
this->closeButton_.setScaleIndependentSize(46, 30);
|
||||||
this->closeButton_.hide();
|
this->closeButton_.hide();
|
||||||
this->closeButton_.setCursor(Qt::PointingHandCursor);
|
this->closeButton_.setCursor(Qt::PointingHandCursor);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,16 +82,16 @@ void TitleBarButtons::updateMaxButton()
|
|||||||
|
|
||||||
void TitleBarButtons::setSmallSize()
|
void TitleBarButtons::setSmallSize()
|
||||||
{
|
{
|
||||||
this->minButton_->setScaleIndependantSize(30, 30);
|
this->minButton_->setScaleIndependentSize(30, 30);
|
||||||
this->maxButton_->setScaleIndependantSize(30, 30);
|
this->maxButton_->setScaleIndependentSize(30, 30);
|
||||||
this->closeButton_->setScaleIndependantSize(30, 30);
|
this->closeButton_->setScaleIndependentSize(30, 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TitleBarButtons::setRegularSize()
|
void TitleBarButtons::setRegularSize()
|
||||||
{
|
{
|
||||||
this->minButton_->setScaleIndependantSize(46, 30);
|
this->minButton_->setScaleIndependentSize(46, 30);
|
||||||
this->maxButton_->setScaleIndependantSize(46, 30);
|
this->maxButton_->setScaleIndependentSize(46, 30);
|
||||||
this->closeButton_->setScaleIndependantSize(46, 30);
|
this->closeButton_->setScaleIndependentSize(46, 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
TitleBarButton *TitleBarButtons::buttonForHt(size_t ht) const
|
TitleBarButton *TitleBarButtons::buttonForHt(size_t ht) const
|
||||||
|
|||||||
@@ -545,7 +545,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
|||||||
[](auto args) {
|
[](auto args) {
|
||||||
return fuzzyToInt(args.value, 0);
|
return fuzzyToInt(args.value, 0);
|
||||||
});
|
});
|
||||||
layout.addSeperator();
|
layout.addSeparator();
|
||||||
layout.addCheckbox("Draw a line below the most recent message before "
|
layout.addCheckbox("Draw a line below the most recent message before "
|
||||||
"switching applications.",
|
"switching applications.",
|
||||||
s.showLastMessageIndicator, false,
|
s.showLastMessageIndicator, false,
|
||||||
@@ -610,7 +610,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
|||||||
layout.addCheckbox("Remove spaces between emotes",
|
layout.addCheckbox("Remove spaces between emotes",
|
||||||
s.removeSpacesBetweenEmotes, false,
|
s.removeSpacesBetweenEmotes, false,
|
||||||
"When enabled, adjacent emotes will no longer have an "
|
"When enabled, adjacent emotes will no longer have an "
|
||||||
"added space seperating them.");
|
"added space separating them.");
|
||||||
SettingWidget::checkbox("Show unlisted 7TV emotes",
|
SettingWidget::checkbox("Show unlisted 7TV emotes",
|
||||||
s.showUnlistedSevenTVEmotes)
|
s.showUnlistedSevenTVEmotes)
|
||||||
->addKeywords({"seventv"})
|
->addKeywords({"seventv"})
|
||||||
@@ -702,7 +702,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
|||||||
->addTo(layout);
|
->addTo(layout);
|
||||||
SettingWidget::checkbox("Send activity to 7TV", s.sendSevenTVActivity)
|
SettingWidget::checkbox("Send activity to 7TV", s.sendSevenTVActivity)
|
||||||
->setTooltip("When enabled, Chatterino will signal an activity to 7TV "
|
->setTooltip("When enabled, Chatterino will signal an activity to 7TV "
|
||||||
"when you send a chat mesage. This is used for badges, "
|
"when you send a chat message. This is used for badges, "
|
||||||
"paints, and personal emotes. When disabled, no activity "
|
"paints, and personal emotes. When disabled, no activity "
|
||||||
"is sent and others won't see your cosmetics.")
|
"is sent and others won't see your cosmetics.")
|
||||||
->addKeywords({"seventv"})
|
->addKeywords({"seventv"})
|
||||||
@@ -1082,7 +1082,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
|||||||
->addKeywords({"seventv"})
|
->addKeywords({"seventv"})
|
||||||
->setTooltip("Badges for 7TV admins, developers, and supporters")
|
->setTooltip("Badges for 7TV admins, developers, and supporters")
|
||||||
->addTo(layout);
|
->addTo(layout);
|
||||||
layout.addSeperator();
|
layout.addSeparator();
|
||||||
SettingWidget::checkbox("Use custom FrankerFaceZ moderator badges",
|
SettingWidget::checkbox("Use custom FrankerFaceZ moderator badges",
|
||||||
s.useCustomFfzModeratorBadges)
|
s.useCustomFfzModeratorBadges)
|
||||||
->addKeywords({"ffz"})
|
->addKeywords({"ffz"})
|
||||||
@@ -1221,7 +1221,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
|||||||
->addTo(layout);
|
->addTo(layout);
|
||||||
|
|
||||||
layout.addCheckbox("Bold @usernames", s.boldUsernames, false,
|
layout.addCheckbox("Bold @usernames", s.boldUsernames, false,
|
||||||
"Bold @mentions to make them more noticable.");
|
"Bold @mentions to make them more noticeable.");
|
||||||
layout.addCheckbox("Color @usernames", s.colorUsernames, false,
|
layout.addCheckbox("Color @usernames", s.colorUsernames, false,
|
||||||
"If Chatterino has seen a user, highlight @mention's of "
|
"If Chatterino has seen a user, highlight @mention's of "
|
||||||
"them with their Twitch color.");
|
"them with their Twitch color.");
|
||||||
@@ -1379,7 +1379,7 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
|||||||
|
|
||||||
// invisible element for width
|
// invisible element for width
|
||||||
auto *inv = new BaseWidget(this);
|
auto *inv = new BaseWidget(this);
|
||||||
// inv->setScaleIndependantWidth(600);
|
// inv->setScaleIndependentWidth(600);
|
||||||
layout.addWidget(inv);
|
layout.addWidget(inv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ DescriptionLabel *GeneralPageView::addDescription(const QString &text)
|
|||||||
return label;
|
return label;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralPageView::addSeperator()
|
void GeneralPageView::addSeparator()
|
||||||
{
|
{
|
||||||
this->addWidget(new Line(false));
|
this->addWidget(new Line(false));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ public:
|
|||||||
|
|
||||||
DescriptionLabel *addDescription(const QString &text);
|
DescriptionLabel *addDescription(const QString &text);
|
||||||
|
|
||||||
void addSeperator();
|
void addSeparator();
|
||||||
bool filterElements(const QString &query);
|
bool filterElements(const QString &query);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ void SplitHeader::initializeLayout()
|
|||||||
auto *layout = makeLayout<QHBoxLayout>({
|
auto *layout = makeLayout<QHBoxLayout>({
|
||||||
// space
|
// space
|
||||||
makeWidget<BaseWidget>([](auto w) {
|
makeWidget<BaseWidget>([](auto w) {
|
||||||
w->setScaleIndependantSize(8, 4);
|
w->setScaleIndependentSize(8, 4);
|
||||||
}),
|
}),
|
||||||
// title
|
// title
|
||||||
this->titleLabel_ = makeWidget<Label>([](auto w) {
|
this->titleLabel_ = makeWidget<Label>([](auto w) {
|
||||||
@@ -293,7 +293,7 @@ void SplitHeader::initializeLayout()
|
|||||||
}),
|
}),
|
||||||
// space
|
// space
|
||||||
makeWidget<BaseWidget>([](auto w) {
|
makeWidget<BaseWidget>([](auto w) {
|
||||||
w->setScaleIndependantSize(8, 4);
|
w->setScaleIndependentSize(8, 4);
|
||||||
}),
|
}),
|
||||||
// mode
|
// mode
|
||||||
this->modeButton_ = makeWidget<EffectLabel>([&](auto w) {
|
this->modeButton_ = makeWidget<EffectLabel>([&](auto w) {
|
||||||
|
|||||||
Reference in New Issue
Block a user