Make progress views adapt to title length.

Change-Id: Idd8cdd01215d648cdb36609f16ca704b08363699
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Eike Ziller
2014-04-17 13:49:14 +02:00
committed by hjk
parent 14c424f6c6
commit 0f8506e2f3
3 changed files with 34 additions and 18 deletions

View File

@@ -142,6 +142,8 @@ FutureProgress::FutureProgress(QWidget *parent) :
connect(&d->m_watcher, SIGNAL(progressTextChanged(QString)),
this, SLOT(setProgressText(QString)));
connect(d->m_progress, SIGNAL(clicked()), this, SLOT(cancel()));
setMinimumWidth(100);
setMaximumWidth(300);
}
/*!
@@ -356,7 +358,7 @@ bool FutureProgress::isFading() const
QSize FutureProgress::sizeHint() const
{
return QSize(100, minimumHeight());
return QSize(QWidget::sizeHint().width(), minimumHeight());
}
void FutureProgressPrivate::fadeAway()