diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2012-04-03 09:42:34 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2012-04-03 09:42:34 +0200 |
commit | 853a4a81b33a5c636c296f136822016cc65ab698 (patch) | |
tree | 52099bfdc4ba398b1aab2c916eef91e3cb91ca66 | |
parent | ec9a4904f38c6c8b9a889e28bb7101dbc0eb5e97 (diff) |
clarified comment why we use an own progressbar style / included "~" in the tr() call
-rw-r--r-- | src/qt/bitcoingui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 6d710acea8..04cf7031ed 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -149,6 +149,7 @@ BitcoinGUI::BitcoinGUI(QWidget *parent): statusBar()->addPermanentWidget(frameBlocks); // define OS independent progress bar style (has to be placed after addWidget(), otherwise we crash) + // we did this, because with some OSes default style, text on the progress bar is unreadable progressBar->setStyleSheet("QProgressBar { background-color: transparent; border: 1px solid grey; border-radius: 2px; padding: 1px; text-align: center; } QProgressBar::chunk { background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #FF8000, stop: 1 orange); margin: 0px; }"); syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this); @@ -474,7 +475,7 @@ void BitcoinGUI::setNumBlocks(int count) { progressBarLabel->setText(tr("Synchronizing with network...")); progressBarLabel->setVisible(true); - progressBar->setFormat("~" + tr("%n block(s) remaining", "", nRemainingBlocks)); + progressBar->setFormat(tr("~%n block(s) remaining", "", nRemainingBlocks)); progressBar->setMaximum(nTotalBlocks); progressBar->setValue(count); progressBar->setVisible(true); |