From adc704563ca55244c65b58b3c17231ba6ee5882a Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 16 May 2012 18:50:29 +0200 Subject: [PATCH] Add missing Q_OBJECT in bitcoin.cpp Fixes translating HelpMessageBox strings. --- src/qt/bitcoin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp index ab0a37abff..9452f7e1e3 100644 --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -132,6 +132,7 @@ static void handleRunawayException(std::exception *e) /** Help message for Bitcoin-Qt, shown with --help. */ class HelpMessageBox: public QMessageBox { + Q_OBJECT public: HelpMessageBox(QWidget *parent = 0); @@ -141,8 +142,7 @@ private: QString coreOptions; QString uiOptions; }; -#include -#include + HelpMessageBox::HelpMessageBox(QWidget *parent): QMessageBox(parent) { @@ -163,6 +163,7 @@ HelpMessageBox::HelpMessageBox(QWidget *parent): setText(header + QString(em_space).repeated(40)); setDetailedText(coreOptions + "\n" + uiOptions); } +#include "bitcoin.moc" void HelpMessageBox::exec() {