|
|
|
|
@ -49,7 +49,8 @@ private slots:
|
|
|
|
|
// Верхняя цитата у медиа/emoji; у текста она ниже имени автора.
|
|
|
|
|
const bool text = type == "text/plain" || type == "poll"; |
|
|
|
|
const int y = text ? 8 + (outgoing ? 0 : QFontMetrics(view.font()).height() + 2) + 6 : 6; |
|
|
|
|
const QPoint quote(view.viewport()->width() / 2, y); |
|
|
|
|
const int x = width < 480 ? view.viewport()->width() / 2 : outgoing ? view.viewport()->width() - 170 : 170; |
|
|
|
|
const QPoint quote(x, y); |
|
|
|
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, Qt::NoModifier, quote); |
|
|
|
|
QCOMPARE(replies.size(), 1); QCOMPARE(replies[0][0].toString(), QString(64, 'b')); |
|
|
|
|
QCOMPARE(downloads, 0); QCOMPARE(polls.size(), 0); |
|
|
|
|
|