Some improvements to initial window size on "High DPI" screens.
This commit is contained in:
parent
1a50699e25
commit
548a86e707
@ -26,7 +26,7 @@
|
|||||||
#define VER_X264_MAJOR 2
|
#define VER_X264_MAJOR 2
|
||||||
#define VER_X264_MINOR 8
|
#define VER_X264_MINOR 8
|
||||||
#define VER_X264_PATCH 8
|
#define VER_X264_PATCH 8
|
||||||
#define VER_X264_BUILD 1130
|
#define VER_X264_BUILD 1138
|
||||||
|
|
||||||
#define VER_X264_PORTABLE_EDITION (0)
|
#define VER_X264_PORTABLE_EDITION (0)
|
||||||
|
|
||||||
|
@ -141,6 +141,9 @@ MainWindow::MainWindow(const MUtils::CPUFetaures::cpu_info_t &cpuFeatures, MUtil
|
|||||||
m_options.reset(new OptionsModel(m_sysinfo.data()));
|
m_options.reset(new OptionsModel(m_sysinfo.data()));
|
||||||
OptionsModel::loadTemplate(m_options.data(), QString::fromLatin1(tpl_last));
|
OptionsModel::loadTemplate(m_options.data(), QString::fromLatin1(tpl_last));
|
||||||
|
|
||||||
|
//DPI scaling
|
||||||
|
MUtils::GUI::scale_widget(this);
|
||||||
|
|
||||||
//Freeze minimum size
|
//Freeze minimum size
|
||||||
setMinimumSize(size());
|
setMinimumSize(size());
|
||||||
ui->splitter->setSizes(QList<int>() << 16 << 196);
|
ui->splitter->setSizes(QList<int>() << 16 << 196);
|
||||||
|
@ -108,7 +108,8 @@ UpdaterDialog::UpdaterDialog(QWidget *parent, const SysinfoModel *sysinfo, const
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
|
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
|
||||||
|
|
||||||
//Fix size
|
//Scale and fix size
|
||||||
|
MUtils::GUI::scale_widget(this);
|
||||||
setFixedSize(size());
|
setFixedSize(size());
|
||||||
|
|
||||||
//Enable buttons
|
//Enable buttons
|
||||||
|
Loading…
Reference in New Issue
Block a user