}
-int QLFontInfo::width(Uchar val) const
+int QLFontInfo::width(Uchar val)
{
// Starting with version 3.1.0, Qt/X11 does its own caching of
// character width, so it is not necessary to provide ours.
#include <QFont>
#include <QFontMetrics>
-#if QT_VERSION < 0x030100
+//#if QT_VERSION < 0x030100
#define USE_LYX_FONTCACHE
-#endif
+//#endif
#if defined(USE_LYX_FONTCACHE)
#include <map>
QLFontInfo(LyXFont const & f);
/// Return pixel width for the given unicode char
- int width(Uchar val) const;
+ int width(Uchar val);
/// The font instance
QFont font;