#BOOST_LIB_PATH=C:/deps/boost_1_55_0/stage/lib
#BDB_INCLUDE_PATH=C:/deps/db-6.0.20/build_unix
#BDB_LIB_PATH=C:/deps/db-6.0.20/build_unix
-#OPENSSL_INCLUDE_PATH=C:/deps/openssl-1.0.2g/include
+#OPENSSL_INCLUDE_PATH=C:/d1eps/openssl-1.0.2g/include
#OPENSSL_LIB_PATH=C:/deps/openssl-1.0.2g
#QRENCODE_INCLUDE_PATH=C:/deps/qrencode-3.4.4
#QRENCODE_LIB_PATH=C:/deps/qrencode-3.4.4/.libs
win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat
win32:QMAKE_LFLAGS += -static-libgcc -static-libstdc++
+# use: qmake "USE_QRCODE=1"
+# libqrencode (http://fukuchi.org/works/qrencode/index.en.html) must be installed for support
+contains(USE_QRCODE, 1) {
+ message(Building with QRCode support)
+ DEFINES += USE_QRCODE
+ LIBS += -lqrencode
+}
+
# use: qmake "USE_DBUS=1"
contains(USE_DBUS, 1) {
message(Building with DBUS (Freedesktop notifications) support)
src/qt/multisiginputentry.h \
src/qt/multisigdialog.h \
src/qt/secondauthdialog.h \
- src/qt/qrcodedialog.h \
src/ies.h \
src/ipcollector.h
src/qt/multisiginputentry.cpp \
src/qt/multisigdialog.cpp \
src/qt/secondauthdialog.cpp \
- src/qt/qrcodedialog.cpp \
src/base58.cpp \
src/cryptogram.cpp \
src/ecies.cpp \
src/qt/forms/multisigaddressentry.ui \
src/qt/forms/multisiginputentry.ui \
src/qt/forms/multisigdialog.ui \
- src/qt/forms/secondauthdialog.ui \
- src/qt/forms/qrcodedialog.ui
+ src/qt/forms/secondauthdialog.ui
+
+contains(USE_QRCODE, 1) {
+ HEADERS += src/qt/qrcodedialog.h
+ SOURCES += src/qt/qrcodedialog.cpp
+ FORMS += src/qt/forms/qrcodedialog.ui
+}
CODECFORTR = UTF-8
#include "editaddressdialog.h"
#include "csvmodelwriter.h"
#include "guiutil.h"
+
+#ifdef USE_QRCODE
#include "qrcodedialog.h"
+#endif
#include <QSortFilterProxyModel>
#include <QClipboard>
ui->deleteButton->setIcon(QIcon());
#endif
- ui->showQRCode->setVisible(false);
-
switch(mode)
{
case ForSending:
ui->labelExplanation->setVisible(false);
ui->deleteButton->setVisible(true);
ui->signMessage->setVisible(false);
+ ui->verifyMessage->setVisible(true);
break;
case ReceivingTab:
ui->deleteButton->setVisible(false);
ui->signMessage->setVisible(true);
+ ui->verifyMessage->setVisible(false);
break;
}
QAction *copyLabelAction = new QAction(tr("Copy &Label"), this);
QAction *copyAddressAction = new QAction(ui->copyToClipboard->text(), this);
QAction *editAction = new QAction(tr("&Edit"), this);
- QAction *showQRCodeAction = new QAction(ui->showQRCode->text(), this);
+#ifdef USE_QRCODE
+ QAction *showQRCodeAction = new QAction(tr("Show &QR Code"), this);
+#endif
QAction *signMessageAction = new QAction(ui->signMessage->text(), this);
QAction *verifyMessageAction = new QAction(ui->verifyMessage->text(), this);
deleteAction = new QAction(ui->deleteButton->text(), this);
if(tab == SendingTab)
contextMenu->addAction(deleteAction);
contextMenu->addSeparator();
- contextMenu->addAction(showQRCodeAction);
+ #ifdef USE_QRCODE
+ contextMenu->addAction(showQRCodeAction);
+ #endif
if(tab == ReceivingTab)
contextMenu->addAction(signMessageAction);
else if(tab == SendingTab)
connect(copyLabelAction, SIGNAL(triggered()), this, SLOT(onCopyLabelAction()));
connect(editAction, SIGNAL(triggered()), this, SLOT(onEditAction()));
connect(deleteAction, SIGNAL(triggered()), this, SLOT(on_deleteButton_clicked()));
- connect(showQRCodeAction, SIGNAL(triggered()), this, SLOT(on_showQRCode_clicked()));
+ #ifdef USE_QRCODE
+ connect(showQRCodeAction, SIGNAL(triggered()), this, SLOT(on_showQRCode_clicked()));
+ #endif
connect(signMessageAction, SIGNAL(triggered()), this, SLOT(on_signMessage_clicked()));
connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(on_verifyMessage_clicked()));
-
connect(ui->tableView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextualMenu(QPoint)));
// Pass through accept action from button box
break;
}
ui->copyToClipboard->setEnabled(true);
- ui->showQRCode->setEnabled(true);
}
else
{
ui->deleteButton->setEnabled(false);
- ui->showQRCode->setEnabled(false);
ui->copyToClipboard->setEnabled(false);
ui->signMessage->setEnabled(false);
ui->verifyMessage->setEnabled(false);
void AddressBookPage::on_showQRCode_clicked()
{
+ #ifdef USE_QRCODE
QTableView *table = ui->tableView;
QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address);
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show();
}
+#endif
}
void AddressBookPage::contextualMenu(const QPoint &point)