More style tweaks.

svn path=/trunk/; revision=44189
This commit is contained in:
Gerald Combs 2012-08-01 16:17:47 +00:00
parent dc3629ad55
commit 005ac60289
2 changed files with 9 additions and 1 deletions

View File

@ -147,6 +147,7 @@ MainStatusBar::MainStatusBar(QWidget *parent) :
m_expertStatus.setAttribute(Qt::WA_MacSmallSize, true);
#endif
// infoProgress->setStyleSheet("QWidget { border: 0.5px dotted red; }"); // Debug layout
m_expertStatus.setTextFormat(Qt::RichText);
m_expertStatus.hide();

View File

@ -119,14 +119,17 @@ ProgressBar::ProgressBar(QWidget *parent) :
m_dlg.topLevelWindow = window();
//#ifdef Q_WS_MAC
// // https://bugreports.qt-project.org/browse/QTBUG-11569
// setAttribute(Qt::WA_MacSmallSize, true);
//#endif
setTextVisible(false);
setStyleSheet(QString(
"ProgressBar {"
" max-width: 20em;"
" min-height: 0.8em;"
" max-height: 1em;"
" border-bottom: 0;"
" background: transparent;"
"}"));
hide();
@ -139,6 +142,7 @@ progdlg_t * ProgressBar::show(bool animate, bool terminate_is_stop, gboolean *st
setValue(value);
#ifndef Q_WS_MAC
if (animate) {
QGraphicsOpacityEffect *effect = new QGraphicsOpacityEffect(this);
this->setGraphicsEffect(effect);
@ -150,7 +154,10 @@ progdlg_t * ProgressBar::show(bool animate, bool terminate_is_stop, gboolean *st
animation->setEndValue(1.0);
animation->start();
}
QProgressBar::show();
#else
Q_UNUSED(animate);
#endif
QProgressBar::show();
return &m_dlg;
}