Fix build and rename variables to be camelCase

This commit is contained in:
Mm2PL 2019-08-24 17:43:04 +02:00 committed by fourtf
parent 1c242a51dd
commit 7aa2bf4fec
2 changed files with 4 additions and 5 deletions

View file

@ -5,7 +5,6 @@
<file>error.png</file> <file>error.png</file>
<file>.gitignore</file> <file>.gitignore</file>
<file>tlds.txt</file> <file>tlds.txt</file>
<file>Makefile</file>
<file>contributors.txt</file> <file>contributors.txt</file>
<file>pajaDank.png</file> <file>pajaDank.png</file>
<file>chatterino.icns</file> <file>chatterino.icns</file>

View file

@ -62,11 +62,11 @@ UserInfoPopup::UserInfoPopup()
name_box.withoutMargin(); name_box.withoutMargin();
auto name = name_box.emplace<Label>().assign(&this->ui_.nameLabel); auto name = name_box.emplace<Label>().assign(&this->ui_.nameLabel);
LayoutCreator<EffectLabel2> copy_user_name = name_box.emplace<EffectLabel2>(this); LayoutCreator<EffectLabel2> copyUserName = name_box.emplace<EffectLabel2>(this);
copy_user_name->setPixmap(app->resources->buttons.copyDark); copyUserName->setPixmap(app->resources->buttons.copyDark);
// TODO(mm2pl): change this when the card get themed. // TODO(mm2pl): change this when the card get themed.
copy_user_name->setScaleIndependantSize(32, 32); copyUserName->setScaleIndependantSize(32, 32);
auto font = name->font(); auto font = name->font();
font.setBold(true); font.setBold(true);
@ -74,7 +74,7 @@ UserInfoPopup::UserInfoPopup()
name_box->addStretch(1); name_box->addStretch(1);
QObject::connect(copy_user_name.getElement(), &Button::leftClicked, [this] { QObject::connect(copyUserName.getElement(), &Button::leftClicked, [this] {
QClipboard *clipboard = QGuiApplication::clipboard(); QClipboard *clipboard = QGuiApplication::clipboard();
clipboard->setText(this->userName_); clipboard->setText(this->userName_);
}); });