Use Qt's High-DPI scaling on Windows (#4868)
This commit is contained in:
@@ -120,19 +120,6 @@ void BaseWidget::setScaleIndependantHeight(int value)
|
||||
QSize(this->scaleIndependantSize_.width(), value));
|
||||
}
|
||||
|
||||
float BaseWidget::qtFontScale() const
|
||||
{
|
||||
if (auto *window = dynamic_cast<BaseWindow *>(this->window()))
|
||||
{
|
||||
// ensure no div by 0
|
||||
return this->scale() / std::max<float>(0.01f, window->nativeScale_);
|
||||
}
|
||||
else
|
||||
{
|
||||
return this->scale();
|
||||
}
|
||||
}
|
||||
|
||||
void BaseWidget::childEvent(QChildEvent *event)
|
||||
{
|
||||
if (event->added())
|
||||
|
||||
Reference in New Issue
Block a user