#include "QLPainter.h"
-#include "QWorkArea.h"
+#include "GuiWorkArea.h"
#include "QLImage.h"
#include "ColorCache.h"
using std::endl;
using std::string;
+namespace lyx {
+namespace frontend {
QLPainter::~QLPainter()
{
}
-QLPainter::QLPainter(QWorkArea * qwa)
+QLPainter::QLPainter(GuiWorkArea * qwa)
: Painter(), qwa_(qwa)
{
}
QString str;
str.setLength(ls);
- for (int i = 0; i < ls; ++i)
+ for (size_t i = 0; i < ls; ++i)
str[i] = QChar(encoding->ucs(s[i]));
// HACK: QT3 refuses to show single compose characters
qp.setFont(fontloader.get(f));
// We need to draw the text as LTR as we use our own bidi code.
qp.setLayoutDirection(Qt::LeftToRight);
- qp.drawText(x, y, str, -1);
+ qp.drawText(x, y, str);
} else {
smallCapsText(x, y, str, f);
}
QPainter qp(qwa_->paintDevice());
qp.drawImage(x, y, image);
}
+
+} // namespace frontend
+} // namespace lyx
+