Browse Source

Merge pull request #2526 from Diapolo/Qt_misc

Bitcoin-Qt: misc small changes
miguelfreitas
Wladimir J. van der Laan 12 years ago
parent
commit
af10e3f6ac
  1. 2
      src/qt/aboutdialog.cpp
  2. 9
      src/qt/bitcoin.cpp
  3. 2
      src/qt/bitcoingui.cpp
  4. 5
      src/qt/overviewpage.cpp

2
src/qt/aboutdialog.cpp

@ -11,7 +11,7 @@ AboutDialog::AboutDialog(QWidget *parent) : @@ -11,7 +11,7 @@ AboutDialog::AboutDialog(QWidget *parent) :
ui->setupUi(this);
// Set current copyright year
ui->copyrightLabel->setText(tr("Copyright") + QString(" © ") + tr("2009-%1 The Bitcoin developers").arg(COPYRIGHT_YEAR));
ui->copyrightLabel->setText(tr("Copyright") + QString(" © 2009-%1 ").arg(COPYRIGHT_YEAR) + tr("The Bitcoin developers"));
}
void AboutDialog::setModel(ClientModel *model)

9
src/qt/bitcoin.cpp

@ -146,12 +146,12 @@ int main(int argc, char *argv[]) @@ -146,12 +146,12 @@ int main(int argc, char *argv[])
// Application identification (must be set before OptionsModel is initialized,
// as it is used to locate QSettings)
app.setOrganizationName("Bitcoin");
app.setOrganizationDomain("bitcoin.org");
QApplication::setOrganizationName("Bitcoin");
QApplication::setOrganizationDomain("bitcoin.org");
if(GetBoolArg("-testnet")) // Separate UI settings for testnet
app.setApplicationName("Bitcoin-Qt-testnet");
QApplication::setApplicationName("Bitcoin-Qt-testnet");
else
app.setApplicationName("Bitcoin-Qt");
QApplication::setApplicationName("Bitcoin-Qt");
// ... then GUI settings:
OptionsModel optionsModel;
@ -207,7 +207,6 @@ int main(int argc, char *argv[]) @@ -207,7 +207,6 @@ int main(int argc, char *argv[])
}
app.processEvents();
app.setQuitOnLastWindowClosed(false);
try

2
src/qt/bitcoingui.cpp

@ -42,8 +42,6 @@ @@ -42,8 +42,6 @@
#include <QStackedWidget>
#include <QDateTime>
#include <QMovie>
#include <QFileDialog>
#include <QDesktopServices>
#include <QTimer>
#include <QDragEnterEvent>
#include <QUrl>

5
src/qt/overviewpage.cpp

@ -46,9 +46,10 @@ public: @@ -46,9 +46,10 @@ public:
bool confirmed = index.data(TransactionTableModel::ConfirmedRole).toBool();
QVariant value = index.data(Qt::ForegroundRole);
QColor foreground = option.palette.color(QPalette::Text);
if(qVariantCanConvert<QColor>(value))
if(value.canConvert<QBrush>())
{
foreground = qvariant_cast<QColor>(value);
QBrush brush = qvariant_cast<QBrush>(value);
foreground = brush.color();
}
painter->setPen(foreground);

Loading…
Cancel
Save