svn path=/trunk/KDE/kdebase/apps/; revision=706669
void DolphinStatusBar::resizeEvent(QResizeEvent* event)
{
QWidget::resizeEvent(event);
- QTimer::singleShot(0, this, SLOT(showSpaceInfo()));
+ QMetaObject::invokeMethod(this, "showSpaceInfo", Qt::QueuedConnection);
}
void DolphinStatusBar::updateProgressInfo()
text = i18nc("@info:status", "Getting size...");
} else {
text = QString();
- QTimer::singleShot(0, this, SLOT(hide()));
+ QMetaObject::invokeMethod(this, "hide", Qt::QueuedConnection);
}
}
#include <QTreeView>
#include <QBoxLayout>
#include <QModelIndex>
-#include <QTimer>
TreeViewSidebarPage::TreeViewSidebarPage(QWidget* parent) :
SidebarPage(parent),
Q_UNUSED(index);
// the expanding of the folders may not be done in the context
// of this slot
- QTimer::singleShot(0, this, SLOT(expandToLeafDir()));
+ QMetaObject::invokeMethod(this, "expandToLeafDir", Qt::QueuedConnection);
}
void TreeViewSidebarPage::expandToLeafDir()