Small fixes for the last PR

This commit is contained in:
fourtf 2018-07-05 22:55:06 +02:00
parent 086ae010b1
commit 314c15bb87
4 changed files with 9 additions and 13 deletions

View file

@ -16,8 +16,6 @@ LastRunCrashDialog::LastRunCrashDialog()
this->setWindowFlag(Qt::WindowContextHelpButtonHint, false);
this->setWindowTitle("Chatterino");
auto &updateManager = Updates::getInstance();
auto layout = LayoutCreator<LastRunCrashDialog>(this).setLayoutType<QVBoxLayout>();
layout.emplace<QLabel>(

View file

@ -19,7 +19,6 @@ LogsPopup::LogsPopup()
}
void LogsPopup::initLayout()
{
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
@ -29,7 +28,6 @@ void LogsPopup::initLayout()
this->setLayout(layout);
}
}
void LogsPopup::setInfo(ChannelPtr channel, QString userName)
{

View file

@ -69,8 +69,8 @@ UserInfoPopup::UserInfoPopup()
user.emplace<QCheckBox>("Follow").assign(&this->ui_.follow);
user.emplace<QCheckBox>("Ignore").assign(&this->ui_.ignore);
user.emplace<QCheckBox>("Ignore highlights").assign(&this->ui_.ignoreHighlights);
auto viewLogs = user.emplace<RippleEffectLabel>(this).assign(&this->ui_.viewLogs);
this->ui_.viewLogs->getLabel().setText("Logs");
auto viewLogs = user.emplace<RippleEffectLabel2>(this);
viewLogs->getLabel().setText("Logs");
auto mod = user.emplace<RippleEffectButton>(this);
mod->setPixmap(app->resources->buttons.mod);
@ -81,7 +81,7 @@ UserInfoPopup::UserInfoPopup()
user->addStretch(1);
QObject::connect(viewLogs.getElement(), &RippleEffectLabel::clicked, [this] {
QObject::connect(viewLogs.getElement(), &RippleEffectButton::clicked, [this] {
auto logs = new LogsPopup();
logs->setInfo(this->channel_, this->userName_);
logs->setAttribute(Qt::WA_DeleteOnClose);

View file

@ -42,7 +42,7 @@ private:
struct {
RippleEffectButton *avatarButton = nullptr;
RippleEffectLabel *viewLogs = nullptr;
// RippleEffectLabel2 *viewLogs = nullptr;
Label *nameLabel = nullptr;
Label *viewCountLabel = nullptr;