debug function for scroll wheel

translations
Elliott Liggett 2023-09-23 14:06:28 -07:00
rodzic 0ad1acc795
commit f1dea9ec6e
3 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -61,6 +61,12 @@ spectrumScope::spectrumScope(QWidget *parent)
edgeButton->setVisible(false);
toFixedButton->setVisible(false);
dummySlider = new QSlider();
tickInterval = dummySlider->tickInterval();
pageStep = dummySlider->pageStep();
qInfo() << "------ EHL INFO: ------ tickInterval: " << tickInterval << ", pageStep: " << pageStep;
qInfo() << "singleStep: " << dummySlider->singleStep();
spectrum = new QCustomPlot();
waterfall = new QCustomPlot();

Wyświetl plik

@ -9,6 +9,7 @@
#include <QLabel>
#include <QCheckBox>
#include <QPushButton>
#include <QSlider>
#include <QSpacerItem>
#include <QElapsedTimer>
#include <qcustomplot.h>
@ -155,6 +156,9 @@ private:
QComboBox* filterCombo;
QComboBox* antennaCombo;
QPushButton* holdButton;
QSlider* dummySlider;
qreal tickInterval;
qreal pageStep;
QCheckBox* rxCheckBox;

Wyświetl plik

@ -5489,6 +5489,12 @@ void wfmain::debugBtn_clicked()
debug->setAttribute(Qt::WA_DeleteOnClose);
debug->show();
qInfo(logSystem()) << "Scroll wheel debug: ";
qInfo(logSystem()) << "tick interval: " << ui->afGainSlider->tickInterval();
qInfo(logSystem()) << "page step: " << ui->afGainSlider->pageStep();
qInfo(logSystem()) << "single step: " << ui->afGainSlider->singleStep();
qInfo(logSystem()) << "QApp wheel scroll lines: " << QApplication::wheelScrollLines();
qInfo(logSystem()) << "QStyleHint wheel scroll lines: " << QApplication::styleHints()->wheelScrollLines();
//showAndRaiseWidget(setupui);