non-static mainwindow

This commit is contained in:
tobtoht
2021-05-10 17:05:10 +02:00
parent b9995c44ec
commit cc01924858
14 changed files with 82 additions and 92 deletions
+2 -2
View File
@@ -8,12 +8,12 @@
#include "globals.h"
#include "utils/AppData.h"
SendWidget::SendWidget(QWidget *parent)
SendWidget::SendWidget(AppContext *ctx, QWidget *parent)
: QWidget(parent)
, ui(new Ui::SendWidget)
, m_ctx(ctx)
{
ui->setupUi(this);
m_ctx = MainWindow::getContext();
QString amount_rx = R"(^\d{0,8}[\.,]\d{0,12}|(all)$)";
QRegExp rx;