mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
compiler warnings fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
331f95a6c8
commit
06535f4b01
3 changed files with 0 additions and 6 deletions
|
@ -5951,8 +5951,6 @@ void qt_format_text(const QFont &fnt, const QRectF &_r,
|
|||
|
||||
tf = QStyle::visualAlignment(layout_direction, QFlag(tf));
|
||||
|
||||
bool isRightToLeft = (layout_direction == Qt::RightToLeft);
|
||||
|
||||
if (!painter)
|
||||
tf |= Qt::TextDontPrint;
|
||||
|
||||
|
|
|
@ -1262,8 +1262,6 @@ void QTextEngine::setBoundary(int strPos) const
|
|||
|
||||
QFixed QTextEngine::calculateTabWidth(int item, QFixed x) const
|
||||
{
|
||||
const QScriptItem &si = layoutData->items[item];
|
||||
|
||||
QFixed dpiScale = 1;
|
||||
if (block.docHandle() && block.docHandle()->layout()) {
|
||||
QPaintDevice *pdev = block.docHandle()->layout()->paintDevice();
|
||||
|
|
|
@ -996,7 +996,6 @@ void QTextLayout::draw(QPainter *p, const QPointF &pos, const QVector<FormatRang
|
|||
int firstLine = 0;
|
||||
int lastLine = d->lines.size();
|
||||
for (int i = 0; i < d->lines.size(); ++i) {
|
||||
QTextLine l(i, d);
|
||||
const QScriptLine &sl = d->lines[i];
|
||||
|
||||
if (sl.y > clipe) {
|
||||
|
@ -1188,7 +1187,6 @@ void QTextLayout::drawCursor(QPainter *p, const QPointF &pos, int cursorPosition
|
|||
qreal x = position.x() + l.cursorToX(cursorPosition);
|
||||
|
||||
int itm;
|
||||
|
||||
if (d->visualCursorMovement()) {
|
||||
if (cursorPosition == sl.from + sl.length)
|
||||
cursorPosition--;
|
||||
|
|
Loading…
Add table
Reference in a new issue