Skip to content

Commit

Permalink
Allow column resizing in the "User fonts" table
Browse files Browse the repository at this point in the history
in order to read full path of the fonts file (often longer than the font family name)
  • Loading branch information
DelazJ authored and github-actions[bot] committed Jan 17, 2023
1 parent e935f9f commit 4e150fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/options/qgsfontoptions.cpp
Expand Up @@ -34,7 +34,7 @@ QgsFontOptionsWidget::QgsFontOptionsWidget( QWidget *parent )
mTableReplacements->horizontalHeader()->setSectionResizeMode( QHeaderView::Stretch );

mTableUserFonts->setHorizontalHeaderLabels( {tr( "File" ), tr( "Font Families" ) } );
mTableUserFonts->horizontalHeader()->setSectionResizeMode( QHeaderView::Stretch );
mTableUserFonts->horizontalHeader()->setSectionResizeMode( QHeaderView::Interactive );

const QMap< QString, QString > replacements = QgsApplication::fontManager()->fontFamilyReplacements();
mTableReplacements->setRowCount( replacements.size() );
Expand Down

0 comments on commit 4e150fd

Please sign in to comment.