setMinimumHeight(barHeight);
m_messageLabel->setMinimumTextHeight(barHeight);
m_spaceInfo->setFixedHeight(barHeight);
-
- connect(parent, SIGNAL(urlChanged(const KUrl&)),
- this, SLOT(updateSpaceInfoContent(const KUrl&)));
}
void DolphinStatusBar::resizeEvent(QResizeEvent* event)
{
QWidget::resizeEvent(event);
- QTimer::singleShot(0, this, SLOT(showSpaceInfo()));
+ QMetaObject::invokeMethod(this, "showSpaceInfo", Qt::QueuedConnection);
}
void DolphinStatusBar::updateProgressInfo()
// The space information is shown currently. Hide it
// if the progress bar is visible or if the status bar
// text does not fit into the available width.
- const QSize size(m_progressBar->sizeHint());
if (isProgressBarVisible || (widthGap > 0)) {
m_spaceInfo->hide();
}