fixed clip adding

This commit is contained in:
itsmattkc
2019-04-03 02:05:15 +11:00
parent 2d4714547b
commit 365d96f83e
7 changed files with 35 additions and 8 deletions
+9 -3
View File
@@ -12,19 +12,25 @@ TimelineLabel::TimelineLabel() :
QLabel* label = new QLabel("Track!");
layout->addWidget(label);
mute_button_ = new QPushButton("M");
QSize fixed_size(mute_button_->sizeHint().height(), mute_button_->sizeHint().height());
fixed_size *= 0.75;
mute_button_->setFixedSize(fixed_size);
mute_button_->setStyleSheet("QPushButton::checked { background: red; }");
mute_button_->setCheckable(true);
mute_button_->setFlat(true);
layout->addWidget(mute_button_);
solo_button_ = new QPushButton("S");
solo_button_->setFixedSize(fixed_size);
solo_button_->setStyleSheet("QPushButton::checked { background: yellow; }");
solo_button_->setCheckable(true);
solo_button_->setFlat(true);
layout->addWidget(solo_button_);
lock_button_ = new QPushButton("L");
lock_button_->setFixedSize(fixed_size);
lock_button_->setStyleSheet("QPushButton::checked { background: gray; }");
lock_button_->setCheckable(true);
lock_button_->setFlat(true);
layout->addWidget(lock_button_);
}