Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow column resizing in the "User fonts" table
in order to read full path of the fonts file (often longer than the font family name)
  • Loading branch information
DelazJ authored and nyalldawson committed Jan 18, 2023
1 parent d3e2091 commit 3787618
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 3787618

Please sign in to comment.