Skip to content

Commit af7af6e

Browse files
committed
back to using setStyleSheet to set the fontsize
1 parent 6a8a9d4 commit af7af6e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/qgisapp.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1024,9 +1024,7 @@ void QgisApp::createActionGroups()
10241024

10251025
void QgisApp::setFontSize( int fontSize )
10261026
{
1027-
QFont theFont = font();
1028-
theFont.setPointSize( fontSize );
1029-
setFont( theFont );
1027+
setStyleSheet( QString( "font-size: %1pt; " ).arg( fontSize ) );
10301028
}
10311029

10321030
void QgisApp::createMenus()

0 commit comments

Comments
 (0)