From 81f5cc4d938ff3a381358efa5d900517d66a80dd Mon Sep 17 00:00:00 2001 From: Thierry Bastian Date: Fri, 19 Mar 2010 10:40:25 +0100 Subject: simple cleanup in QSplitter there is no need for a singleshot for deleteLater here Reviewed-by: gabi --- src/gui/widgets/qsplitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widgets/qsplitter.cpp b/src/gui/widgets/qsplitter.cpp index f4076eb..597b28b 100644 --- a/src/gui/widgets/qsplitter.cpp +++ b/src/gui/widgets/qsplitter.cpp @@ -1305,7 +1305,7 @@ void QSplitter::setRubberBand(int pos) Q_D(QSplitter); if (pos < 0) { if (d->rubberBand) - QTimer::singleShot(0, d->rubberBand, SLOT(deleteLater())); + d->rubberBand->deleteLater(); return; } QRect r = contentsRect(); -- cgit v0.12