Qt: Use menu font instead of system font as default font

This commit is contained in:
Connor McLaughlin 2020-03-22 22:40:29 +10:00
parent 7b9be0a586
commit 701491156a
3 changed files with 8 additions and 2 deletions

View File

@ -27,6 +27,12 @@ int main(int argc, char* argv[])
QApplication app(argc, argv);
#ifdef _WIN32
// Use Segoe UI on Windows rather than MS Shell Dlg 2, courtesy of Dolphin.
// Can be removed once switched to Qt 6.
QApplication::setFont(QApplication::font("QMenu"));
#endif
std::unique_ptr<QtHostInterface> host_interface = std::make_unique<QtHostInterface>();
std::unique_ptr<MainWindow> window = std::make_unique<MainWindow>(host_interface.get());

View File

@ -31,7 +31,7 @@ MainWindow::MainWindow(QtHostInterface* host_interface) : QMainWindow(nullptr),
setupAdditionalUi();
connectSignals();
resize(750, 690);
resize(800, 700);
}
MainWindow::~MainWindow()

View File

@ -122,7 +122,7 @@
<property name="minimumSize">
<size>
<width>16777215</width>
<height>80</height>
<height>110</height>
</size>
</property>
</widget>