Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-14900

Refresh puppet if font is added

XMLWordPrintable

    • QDS Berlin - 2025 Week 11/12
    • 8996c4a9d (qds/dev)

      If a font is added to QDS we do not reset the puppet. Therefore, the font is not loaded, and the puppet has to be refreshed to preview the new font properly.

      Refresh puppet:

      void FormEditorView::resetNodeInstanceView()
      {
          resetPuppet();
      }
      

      If resources go through the item asset library this function is called:

      void AssetsLibraryWidget::addResources(const QStringList &files, bool showDialog)
      

      There is also the resource handler. Adding any resource will always go through the handler registered for .ttf files.

      void DesignerActionManager::createDefaultAddResourceHandler()
      

      Currently only the asset library does add new fonts/assets using ::addResources.

        For Gerrit Dashboard: QDS-14900
        # Subject Branch Project Status CR V

            ansemkiv Andrii Semkiv
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes