Merge pull request #2526 from Diapolo/Qt_misc
Bitcoin-Qt: misc small changes
This commit is contained in:
commit
af10e3f6ac
4 changed files with 8 additions and 10 deletions
|
@ -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)
|
||||
|
|
|
@ -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[])
|
|||
}
|
||||
|
||||
app.processEvents();
|
||||
|
||||
app.setQuitOnLastWindowClosed(false);
|
||||
|
||||
try
|
||||
|
|
|
@ -42,8 +42,6 @@
|
|||
#include <QStackedWidget>
|
||||
#include <QDateTime>
|
||||
#include <QMovie>
|
||||
#include <QFileDialog>
|
||||
#include <QDesktopServices>
|
||||
#include <QTimer>
|
||||
#include <QDragEnterEvent>
|
||||
#include <QUrl>
|
||||
|
|
|
@ -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…
Reference in a new issue