made some things scale

This commit is contained in:
fourtf
2018-12-02 18:26:21 +01:00
parent 0e242202a4
commit 2e68852768
4 changed files with 48 additions and 16 deletions
+13 -1
View File
@@ -273,6 +273,17 @@ void ChannelView::themeChangedEvent()
this->queueLayout();
}
void ChannelView::scaleChangedEvent(float scale)
{
BaseWidget::scaleChangedEvent(scale);
if (this->goToBottom_)
{
this->goToBottom_->getLabel().setFont(
getFonts()->getFont(FontStyle::UiMedium, this->qtFontScale()));
}
}
void ChannelView::queueUpdate()
{
// if (this->updateTimer.isActive()) {
@@ -716,7 +727,8 @@ void ChannelView::resizeEvent(QResizeEvent *)
this->scrollBar_->setGeometry(this->width() - this->scrollBar_->width(), 0,
this->scrollBar_->width(), this->height());
this->goToBottom_->setGeometry(0, this->height() - 32, this->width(), 32);
this->goToBottom_->setGeometry(0, this->height() - int(this->scale() * 26),
this->width(), int(this->scale() * 26));
this->scrollBar_->raise();