mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
plug memory leak in tst_QAbstractScrollArea::task214488_layoutDirection()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ca638eaafd
commit
10d360043b
1 changed files with 2 additions and 1 deletions
|
@ -327,7 +327,8 @@ void tst_QAbstractScrollArea::task214488_layoutDirection()
|
|||
scrollArea.setLayoutDirection(dir);
|
||||
|
||||
int refValue = hbar->value();
|
||||
qApp->sendEvent(&scrollArea, new QKeyEvent(QEvent::KeyPress, key, Qt::NoModifier));
|
||||
QKeyEvent event(QEvent::KeyPress, key, Qt::NoModifier);
|
||||
qApp->sendEvent(&scrollArea, &event);
|
||||
QVERIFY(lessThan ? (hbar->value() < refValue) : (hbar->value() > refValue));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue