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>.gitignore</file>
<file>tlds.txt</file>
<file>Makefile</file>
<file>contributors.txt</file>
<file>pajaDank.png</file>
<file>chatterino.icns</file>

View file

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