Skip to content

Commit 2c97749

Browse files
author
timemarkovqtum
committed
Fix qt wallet build
1 parent b308854 commit 2c97749

11 files changed

+395
-27
lines changed

src/Makefile.qt.include

Lines changed: 377 additions & 6 deletions
Large diffs are not rendered by default.

src/qt/bitcoin.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ void BitcoinApplication::restartWallet()
576576
path += restoreName.toStdString();
577577
}
578578
path /= "wallet.dat";
579-
QString pathWallet = QString::fromStdString(path.u8string());
579+
QString pathWallet = QString::fromStdString(path.utf8string());
580580
bool ret = QFile::exists(restorePath) && QFile::exists(pathWallet);
581581
if(ret && QFileInfo(restorePath) != QFileInfo(pathWallet))
582582
{
@@ -695,9 +695,6 @@ int GuiMain(int argc, char* argv[])
695695
}
696696
}
697697

698-
// Now that the QApplication is setup and we have parsed our parameters, we can set the platform style
699-
app.setupPlatformStyle();
700-
701698
/// 3. Application identification
702699
// must be set before OptionsModel is initialized or translations are loaded,
703700
// as it is used to locate QSettings

src/qt/clientmodel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ClientModel::ClientModel(interfaces::Node& node, OptionsModel *_optionsModel, QO
6060
});
6161
connect(m_thread, &QThread::finished, timer, &QObject::deleteLater);
6262
connect(m_thread, &QThread::started, [timer] { timer->start(); });
63-
connect(this, &ClientModel::tipChanged, this, &ClientModel::updateTip)
63+
connect(this, &ClientModel::tipChanged, this, &ClientModel::updateTip);
6464
// move timer to thread so that polling doesn't disturb main event loop
6565
timer->moveToThread(m_thread);
6666
m_thread->start();
@@ -318,4 +318,4 @@ void ClientModel::updateTip()
318318
uint64_t nGasPrice = 0;
319319
m_node.getGasInfo(blockGasLimit, minGasPrice, nGasPrice);
320320
Q_EMIT gasInfoChanged(blockGasLimit, minGasPrice, nGasPrice);
321-
}
321+
}

src/qt/clientmodel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ClientModel : public QObject
9494

9595
Mutex m_cached_tip_mutex;
9696
uint256 m_cached_tip_blocks GUARDED_BY(m_cached_tip_mutex){};
97-
bool fBatchProcessingMode{true};
97+
bool fBatchProcessingMode{true};
9898

9999
private:
100100
interfaces::Node& m_node;
@@ -118,8 +118,8 @@ bool fBatchProcessingMode{true};
118118
void networkActiveChanged(bool networkActive);
119119
void alertsChanged(const QString &warnings);
120120
void bytesChanged(quint64 totalBytesIn, quint64 totalBytesOut);
121-
void tipChanged();
122-
void gasInfoChanged(quint64 blockGasLimit, quint64 minGasPrice, quint64 nGasPrice);
121+
void tipChanged();
122+
void gasInfoChanged(quint64 blockGasLimit, quint64 minGasPrice, quint64 nGasPrice);
123123

124124
//! Fired when a message should be reported to the user
125125
void message(const QString &title, const QString &message, unsigned int style);

src/qt/macnotificationhandler.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ @implementation NSBundle(returnCorrectIdentifier)
1313
- (NSString *)__bundleIdentifier
1414
{
1515
if (self == [NSBundle mainBundle]) {
16-
return @"org.bitcoinfoundation.Bitcoin-Qt";
16+
return @"org.qtum.Qtum-Qt";
1717
} else {
1818
return [self __bundleIdentifier];
1919
}

src/qt/macos_appnap.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void disableAppNap()
3030
id processInfo = [NSProcessInfo processInfo];
3131
if ([processInfo respondsToSelector:@selector(beginActivityWithOptions:reason:)])
3232
{
33-
activityId = [processInfo beginActivityWithOptions: activityOptions reason:@"Temporarily disable App Nap for bitcoin-qt."];
33+
activityId = [processInfo beginActivityWithOptions: activityOptions reason:@"Temporarily disable App Nap for qtum-qt."];
3434
[activityId retain];
3535
}
3636
}

src/qt/optionsdialog.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet)
153153
/* hide launch at startup option on macOS */
154154
ui->bitcoinAtStartup->setVisible(false);
155155
ui->tabMain->layout()->removeWidget(ui->bitcoinAtStartup);
156-
ui->verticalLayout_Main->removeItem(ui->horizontalSpacer_0_Main);
157156
#endif
158157

159158
/* remove Wallet tab and 3rd party-URL textbox in case of -disablewallet */
@@ -608,4 +607,4 @@ void OptionsDialog::updateLogEvents(bool)
608607
ui->logEvents->setChecked(checked);
609608
}
610609
ui->logEvents->setEnabled(!checked);
611-
}
610+
}

src/qt/optionsmodel.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class OptionsModel : public QAbstractListModel
7474
LogEvents, // bool
7575
SuperStaking, // bool
7676
SpendZeroConfChange, // bool
77-
ZeroBalanceAddressToken,// bool
77+
ZeroBalanceAddressToken,// bool
7878
Listen, // bool
7979
Server, // bool
8080
EnablePSBTControls, // bool
@@ -173,6 +173,7 @@ ZeroBalanceAddressToken,// bool
173173
void showTrayIconChanged(bool);
174174
void fontForMoneyChanged(const QFont&);
175175
void zeroBalanceAddressTokenChanged(bool);
176+
};
176177

177178
Q_DECLARE_METATYPE(OptionsModel::FontChoice)
178179

src/qt/res/bitcoin-qt-res.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ BEGIN
1919
BEGIN
2020
BLOCK "040904E4" // U.S. English - multilingual (hex)
2121
BEGIN
22-
VALUE "CompanyName", "Bitcoin"
23-
VALUE "FileDescription", PACKAGE_NAME " (GUI node for Bitcoin)"
22+
VALUE "CompanyName", "Qtum"
23+
VALUE "FileDescription", PACKAGE_NAME " (GUI node for Qtum)"
2424
VALUE "FileVersion", VER_FILEVERSION_STR
25-
VALUE "InternalName", "bitcoin-qt"
25+
VALUE "InternalName", "qtum-qt"
2626
VALUE "LegalCopyright", COPYRIGHT_STR
2727
VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php."
28-
VALUE "OriginalFilename", "bitcoin-qt.exe"
28+
VALUE "OriginalFilename", "qtum-qt.exe"
2929
VALUE "ProductName", PACKAGE_NAME
3030
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
3131
END

src/qt/rpcconsole.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
550550
if (platformStyle->getImagesOnButtons()) {
551551
ui->openDebugLogfileButton->setIcon(platformStyle->MultiStatesIcon(":/icons/export", PlatformStyle::PushButton));
552552
}
553-
ui->clearButton->setIcon(platformStyle->MultiStatesIcon(":/icons/remove", PlatformStyle::PushButtonIcon));
553+
ui->clearButton->setIcon(platformStyle->MultiStatesIcon(":/icons/remove", PlatformStyle::PushButtonIcon));
554554

555555
ui->fontBiggerButton->setIcon(platformStyle->MultiStatesIcon(":/icons/fontbigger", PlatformStyle::PushButtonIcon));
556556
//: Main shortcut to increase the RPC console font size.
@@ -1423,4 +1423,4 @@ void RPCConsole::updateWindowTitle()
14231423
const QString chainType = QString::fromStdString(Params().GetChainTypeString());
14241424
const QString title = tr("Node window - [%1]").arg(chainType);
14251425
this->setWindowTitle(title);
1426-
}
1426+
}

0 commit comments

Comments
 (0)