mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
Qt4 compilable again
This commit is contained in:
parent
94378dde3c
commit
52ea367982
@ -28,7 +28,12 @@
|
|||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QRawFont>
|
#include <QRawFont>
|
||||||
#include <QtEndian>
|
#include <QtEndian>
|
||||||
|
|
||||||
|
#if QT_VERSION >= 0x050100
|
||||||
#include <QtMath>
|
#include <QtMath>
|
||||||
|
#else
|
||||||
|
#define qDegreesToRadians(degree) (degree * (M_PI / 180))
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace lyx::support;
|
using namespace lyx::support;
|
||||||
@ -110,7 +115,6 @@ inline QChar const ucs4_to_qchar(char_type const ucs4)
|
|||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|
||||||
GuiFontMetrics::GuiFontMetrics(QFont const & font)
|
GuiFontMetrics::GuiFontMetrics(QFont const & font)
|
||||||
: font_(font), metrics_(font, 0),
|
: font_(font), metrics_(font, 0),
|
||||||
strwidth_cache_(cache_metrics_width_size),
|
strwidth_cache_(cache_metrics_width_size),
|
||||||
|
Loading…
Reference in New Issue
Block a user