Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove no longer required logic
  • Loading branch information
nyalldawson committed May 17, 2023
1 parent b017168 commit 74849da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmaptip.cpp
Expand Up @@ -423,8 +423,8 @@ QString QgsMapTip::htmlText( const QString &text, int maxWidth )

const QgsSettings settings;
const QFont defaultFont = qApp->font();
const int fontSize = settings.value( QStringLiteral( "/qgis/stylesheet/fontPointSize" ), defaultFont.pointSize() ).toInt();
const QString fontFamily = settings.value( QStringLiteral( "/qgis/stylesheet/fontFamily" ), defaultFont.family() ).toString();
const int fontSize = defaultFont.pointSize();
const QString fontFamily = defaultFont.family();
const QString backgroundColor = QgsApplication::palette().base().color().name();
const QString strokeColor = QgsApplication::palette().shadow().color().name();
const QString textColor = QgsApplication::palette().toolTipText().color().name();
Expand Down
4 changes: 0 additions & 4 deletions src/providers/arcgisrest/qgsamsprovider.cpp
Expand Up @@ -147,10 +147,6 @@ void QgsAmsLegendFetcher::handleFinished()

QgsSettings settings;
QFont font = qApp->font();
int fontSize = settings.value( QStringLiteral( "/qgis/stylesheet/fontPointSize" ), font.pointSize() ).toInt();
font.setPointSize( fontSize );
QString fontFamily = settings.value( QStringLiteral( "/qgis/stylesheet/fontFamily" ), font.family() ).toString();
font.setFamily( fontFamily );
QFontMetrics fm( font );
int textWidth = 0;
int textHeight = fm.ascent();
Expand Down

0 comments on commit 74849da

Please sign in to comment.