Browse Source

Add DEBUG macro for less typing

pull/125/head
Duke 1 year ago
parent
commit
0b72d01f4a
  1. 6
      src/mainwindow.cpp
  2. 1
      src/sdl.h

6
src/mainwindow.cpp

@ -37,6 +37,7 @@
#include <QCoreApplication>
#include <QGuiApplication>
#include <QKeyEvent>
#include "sdl.h"
using json = nlohmann::json;
@ -158,7 +159,7 @@ MainWindow::MainWindow(QWidget *parent) :
// Rescan
QObject::connect(ui->actionRescan, &QAction::triggered, [=]() {
DEBUG("rescan action triggered");
Ui_Restore restoreSeed;
QDialog dialog(this);
restoreSeed.setupUi(&dialog);
@ -266,9 +267,8 @@ MainWindow::MainWindow(QWidget *parent) :
}
});
dialog.exec();
});
}); // actionReason
// Import Privkey
QObject::connect(ui->actionImport_Privatkey, &QAction::triggered, this, &MainWindow::importPrivKey);

1
src/sdl.h

@ -0,0 +1 @@
#define DEBUG(x) (qDebug() << QString(__func__) << ": " << x)
Loading…
Cancel
Save