From fc0a3889bf3e2f1e732317abcb1cc33980070c30 Mon Sep 17 00:00:00 2001 From: Kjell Morgenstern Date: Tue, 5 Dec 2023 13:03:20 +0100 Subject: [PATCH] Removed obsolete function parameter. --- src/mainwindow/mainwindow.cpp | 2 +- src/sketch/pcbsketchwidget.cpp | 5 +++-- src/sketch/pcbsketchwidget.h | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index 2f5c84298..0a0dc075d 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -3227,7 +3227,7 @@ void MainWindow::orderFabHoverEnter() { if ((m_rolloverQuoteDialog != nullptr) && m_rolloverQuoteDialog->isVisible()) return; QuoteDialog::setQuoteSucceeded(false); QObject::connect(m_pcbGraphicsView, &PCBSketchWidget::fabQuoteFinishedSignal, this, &MainWindow::fireQuote); - m_pcbGraphicsView->requestQuote(true); + m_pcbGraphicsView->requestQuote(); } void MainWindow::fireQuote() { diff --git a/src/sketch/pcbsketchwidget.cpp b/src/sketch/pcbsketchwidget.cpp index 678161473..80efd8e9c 100644 --- a/src/sketch/pcbsketchwidget.cpp +++ b/src/sketch/pcbsketchwidget.cpp @@ -2797,7 +2797,7 @@ void PCBSketchWidget::fabQuote() { QEventLoop waitLoop; QObject::connect(this, &PCBSketchWidget::fabQuoteFinishedSignal, &waitLoop, &QEventLoop::quit); QTimer::singleShot(1000, &waitLoop, &QEventLoop::quit); - requestQuote(true); + requestQuote(); waitLoop.exec(); if (!QuoteDialog::quoteSucceeded()) { @@ -2845,7 +2845,7 @@ void PCBSketchWidget::gotFabQuote(QNetworkReply * networkReply) { networkReply->deleteLater(); } -void PCBSketchWidget::requestQuote(bool byUser) { +void PCBSketchWidget::requestQuote() { int boardCount; double width, height; calcBoardDimensions(boardCount, width, height); @@ -2870,6 +2870,7 @@ void PCBSketchWidget::requestQuote(bool byUser) { QString countArgs = QuoteDialog::countArgs(); manager->setProperty("count", countArgs); QString filename = QUrl::toPercentEncoding(filenameIf()); + bool byUser = true; connect(manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(gotFabQuote(QNetworkReply *))); QString string = QString("%8://fab.fritzing.org/fritzing-fab/quote%1&area=%2&width=%3&height=%4&count=%5&filename=%6&byuser=%7") .arg(paramString) diff --git a/src/sketch/pcbsketchwidget.h b/src/sketch/pcbsketchwidget.h index 35903cee6..62a082e6b 100644 --- a/src/sketch/pcbsketchwidget.h +++ b/src/sketch/pcbsketchwidget.h @@ -122,7 +122,7 @@ class PCBSketchWidget : public SketchWidget ViewLayer::ViewLayerPlacement defaultViewLayerPlacement(ModelPart *); void setPartLabelFont(QString fontFamily); QString getPartLabelFont(); - void requestQuote(bool byUser); + void requestQuote(); public Q_SLOTS: void resizeBoard(double w, double h, bool doEmit);