forked from qt-creator/qt-creator
Register TitilliumWeb-Regular
Change-Id: I0014bb5e315311c84c2fc301e1c3dba67fc64af1 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -360,6 +360,8 @@ void StudioWelcomePlugin::extensionsInitialized()
|
|||||||
// Enable QDS new project dialog
|
// Enable QDS new project dialog
|
||||||
Core::ICore::setNewDialogFactory([](QWidget *parent) { return new QdsNewDialog(parent); });
|
Core::ICore::setNewDialogFactory([](QWidget *parent) { return new QdsNewDialog(parent); });
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
if (Utils::CheckableMessageBox::shouldAskAgain(Core::ICore::settings(),
|
if (Utils::CheckableMessageBox::shouldAskAgain(Core::ICore::settings(),
|
||||||
DO_NOT_SHOW_SPLASHSCREEN_AGAIN_KEY)) {
|
DO_NOT_SHOW_SPLASHSCREEN_AGAIN_KEY)) {
|
||||||
connect(Core::ICore::instance(), &Core::ICore::coreOpened, this, [this] {
|
connect(Core::ICore::instance(), &Core::ICore::coreOpened, this, [this] {
|
||||||
@@ -448,6 +450,8 @@ WelcomeMode::WelcomeMode()
|
|||||||
setContextHelp("Qt Design Studio Manual");
|
setContextHelp("Qt Design Studio Manual");
|
||||||
setContext(Core::Context(Core::Constants::C_WELCOME_MODE));
|
setContext(Core::Context(Core::Constants::C_WELCOME_MODE));
|
||||||
|
|
||||||
|
QFontDatabase::addApplicationFont(":/studiofonts/TitilliumWeb-Regular.ttf");
|
||||||
|
|
||||||
m_modeWidget = new QQuickWidget;
|
m_modeWidget = new QQuickWidget;
|
||||||
m_modeWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
|
m_modeWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
|
||||||
QmlDesigner::Theme::setupTheme(m_modeWidget->engine());
|
QmlDesigner::Theme::setupTheme(m_modeWidget->engine());
|
||||||
|
Reference in New Issue
Block a user