added define for myself

This commit is contained in:
fourtf 2018-01-11 20:26:32 +01:00
parent 10850c0ec7
commit a7fa4160e8
2 changed files with 6 additions and 0 deletions

View file

@ -247,6 +247,10 @@ win32 {
}
}
win32::exists(C:\fourtf) {
DEFINES += "OHHEYITSFOURTF"
}
macx {
INCLUDEPATH += /usr/local/include
}

View file

@ -191,6 +191,7 @@ void MessageLayout::updateBuffer(QPixmap *buffer, int messageIndex, Selection &s
// draw message
this->container.paintElements(painter);
#ifdef OHHEYITSFOURTF
// debug
painter.setPen(QColor(255, 0, 0));
painter.drawRect(buffer->rect().x(), buffer->rect().y(), buffer->rect().width() - 1,
@ -201,6 +202,7 @@ void MessageLayout::updateBuffer(QPixmap *buffer, int messageIndex, Selection &s
painter.drawText(QRectF(1, 1, this->container.width - 3, 1000),
QString::number(++this->bufferUpdatedCount), option);
#endif
}
void MessageLayout::invalidateBuffer()