Skip to content

Commit

Permalink
Fix linking of applications that use QFontDatabase::removeApplication…
Browse files Browse the repository at this point in the history
…Font.

Application font support requires the platform to implement the private
registerFont() function, but it is also necessary to implement the public
QFontDatabase::removeApplicationFont() function in the platform fontdatabase.

The former is implemented as a stub, indicating an error to the caller. The
latter was missing as a stub, causing link errors in WebKit.

Reviewed-by: Jason Barron
  • Loading branch information
Simon Hausmann committed Aug 6, 2009
1 parent 7588eae commit d3bf214
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/text/qfontdatabase_s60.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@ static void registerFont(QFontDatabasePrivate::ApplicationFont *fnt)
Q_UNUSED(fnt);
}

bool QFontDatabase::removeApplicationFont(int handle)
{
Q_UNUSED(handle);
return false;
}

bool QFontDatabase::supportsThreadedFontRendering()
{
return false;
Expand Down

0 comments on commit d3bf214

Please sign in to comment.