Qt: Use menu font instead of system font as default font
This commit is contained in:
parent
7b9be0a586
commit
701491156a
|
@ -27,6 +27,12 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
QApplication app(argc, 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<QtHostInterface> host_interface = std::make_unique<QtHostInterface>();
|
||||||
|
|
||||||
std::unique_ptr<MainWindow> window = std::make_unique<MainWindow>(host_interface.get());
|
std::unique_ptr<MainWindow> window = std::make_unique<MainWindow>(host_interface.get());
|
||||||
|
|
|
@ -31,7 +31,7 @@ MainWindow::MainWindow(QtHostInterface* host_interface) : QMainWindow(nullptr),
|
||||||
setupAdditionalUi();
|
setupAdditionalUi();
|
||||||
connectSignals();
|
connectSignals();
|
||||||
|
|
||||||
resize(750, 690);
|
resize(800, 700);
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777215</width>
|
<width>16777215</width>
|
||||||
<height>80</height>
|
<height>110</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in New Issue