Skip to content

Commit

Permalink
Codefactor.io cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
d authored and d committed Mar 23, 2024
1 parent 72170df commit d05c0aa
Show file tree
Hide file tree
Showing 30 changed files with 25 additions and 49 deletions.
3 changes: 0 additions & 3 deletions src/awards.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ class Awards : public QObject {
6 - Default: Not applicable
*/


private:

void setAwardDXCC(const int _qsoId);
//bool setAwardDXCC(const int _dxcc, const int _band, const int _mode, const QString &_workedOrConfirmed, const int _logNumber, const int _qsoId);
int setAwardDXCCst(const int _dxcc, const int _band, const int _mode, const bool _confirmed, const int _logNumber, const int _qsoId);
Expand Down Expand Up @@ -156,7 +154,6 @@ class Awards : public QObject {
DXMarathon *dxMarathon;
Utilities *util;


typedef QMultiHash<int, int> DXStatus;

DXStatus dxccWorked, dxccConfirmed, wazWorked, wazConfirmed;
Expand Down
2 changes: 1 addition & 1 deletion src/charts/statscqzperyearbarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsCQZPerYearBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsCQZPerYearBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsCQZPerYearBarChartWidget();
Expand All @@ -55,7 +56,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERYEARBARCHARTWIDGET_H
3 changes: 1 addition & 2 deletions src/charts/statsdxccsonsatswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
class StatsDXCCOnSatsWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsDXCCOnSatsWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsDXCCOnSatsWidget();
void prepareChart(const int _log=-1) override;


signals:

private slots:
Expand All @@ -58,6 +58,5 @@ private slots:
QCheckBox *confirmedOnlyCheckBox, *onlyLEOSatCheckBox;
QLabel *numberLabel;
int log;

};
#endif // STATSGRIDSONSATSWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsentitiesperyearbarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
class StatsEntitiesPerYearBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsEntitiesPerYearBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsEntitiesPerYearBarChartWidget();
Expand All @@ -53,7 +54,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERYEARBARCHARTWIDGET_H
1 change: 0 additions & 1 deletion src/charts/statsfieldperbandwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,5 @@ void StatsFieldPerBandWidget::slotModeComboBoxChanged()
{
modeInUse = modeComboBox->currentText ();
}

prepareChart (log);
}
3 changes: 1 addition & 2 deletions src/charts/statsfieldperbandwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
class StatsFieldPerBandWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsFieldPerBandWidget(DataProxy_SQLite *dp, ValidFieldsForStats _field, QWidget *parent = nullptr);
~StatsFieldPerBandWidget();
void prepareChart(const int _log=-1);


signals:

private slots:
Expand All @@ -64,6 +64,5 @@ private slots:
QComboBox *modeComboBox;
QString modeInUse;
int log;

};
#endif // STATSFIELDPERBANDWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsgeneralchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
class StatsGeneralChartWidget : public QWidget
{
Q_OBJECT

public:
StatsGeneralChartWidget();
StatsGeneralChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
virtual void prepareChart(const int _log=-1);

private:
virtual void createUI();

};

#endif // GENERALCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsgridsonsatswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsGridsOnSatsWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsGridsOnSatsWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsGridsOnSatsWidget();
Expand All @@ -58,6 +59,5 @@ private slots:
QCheckBox *confirmedOnlyCheckBox, *onlyLEOSatCheckBox;
QLabel *numberLabel;
int log;

};
#endif // STATSGRIDSONSATSWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsqsosperbandbarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsQSOsPerBandBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsQSOsPerBandBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsQSOsPerBandBarChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERBANDBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsqsospercontinentbarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsQSOsPerContinentBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsQSOsPerContinentBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsQSOsPerContinentBarChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERBANDBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsqsosperdxccbarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsQSOsPerDXCCBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsQSOsPerDXCCBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsQSOsPerDXCCBarChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERBANDBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsqsosperhourbarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsQSOsPerHourBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsQSOsPerHourBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsQSOsPerHourBarChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERBANDBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsqsospermodebarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsQSOsPerModeBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsQSOsPerModeBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsQSOsPerModeBarChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERMODEBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsqsospermonthbarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsQSOsPerMonthBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsQSOsPerMonthBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsQSOsPerMonthBarChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERMONTHBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsqsosperyearbarchartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsQSOsPerYearBarChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsQSOsPerYearBarChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsQSOsPerYearBarChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERYEARBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statssentconfirmedpiechartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsSentConfirmedPieChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsSentConfirmedPieChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsSentConfirmedPieChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERBANDBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsworkedconfirmedpiechartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsWorkedConfirmedPieChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsWorkedConfirmedPieChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsWorkedConfirmedPieChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERBANDBARCHARTWIDGET_H
2 changes: 1 addition & 1 deletion src/charts/statsworkedsentpiechartwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class StatsWorkedSentPieChartWidget : public StatsGeneralChartWidget
{
Q_OBJECT

public:
StatsWorkedSentPieChartWidget(DataProxy_SQLite *dp, QWidget *parent = nullptr);
~StatsWorkedSentPieChartWidget();
Expand All @@ -54,7 +55,6 @@ public slots:

//QChart *chart;
QChartView *chartView;

};

#endif // QSOSPERBANDBARCHARTWIDGET_H
1 change: 1 addition & 0 deletions src/elogclublog.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

class eLogClubLog : public QObject {
Q_OBJECT

public:
explicit eLogClubLog();
~eLogClubLog();
Expand Down
2 changes: 1 addition & 1 deletion src/elogqrzlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

class eLogQrzLog : public QObject {
Q_OBJECT

public:
explicit eLogQrzLog(DataProxy_SQLite *dp, const QString &_parentFunction, const QString &_klogVersion);
~eLogQrzLog();
Expand All @@ -70,7 +71,6 @@ private slots:
void downloadProgress(qint64 received, qint64 total);
void slotErrorManagement(QNetworkReply::NetworkError networkError);


signals:
void actionReturnDownload(const int _i, const int _qsoId);
void done();
Expand Down
2 changes: 1 addition & 1 deletion src/eqslutilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
// https://www.eqsl.cc/qslcard/Programming.cfm
class eQSLUtilities : public QObject {
Q_OBJECT

public:
explicit eQSLUtilities(const QString &_parentFunction);
~eQSLUtilities();
Expand All @@ -52,7 +53,6 @@ class eQSLUtilities : public QObject {

void sendLogFile(const QString &_file, QList<int> _qso);


private:
//QString geteQSLAdif(const QStringList _q);
//int sendData(const QString &_eQSLUser, const QString &_q); // Sends the data (http post) to eQSL
Expand Down
1 change: 0 additions & 1 deletion src/locator.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const double KM_IN_A_MILE = 1.609344;
class Locator{

public:

Locator();
~Locator();

Expand Down
4 changes: 1 addition & 3 deletions src/logmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ LogModel::LogModel(DataProxy_SQLite *dp, QObject *parent):QSqlRelationalTableMod
//qDebug() << Q_FUNC_INFO << " - END";
}


void LogModel::createlogModel(const int _i)
{
/*
Expand Down Expand Up @@ -78,7 +77,7 @@ This should be coherent with the logview
}

void LogModel::setColumns(const QStringList &_columns)
{
{
//qDebug() << Q_FUNC_INFO ;
//QString auxt;
//foreach(auxt, _columns)
Expand All @@ -99,7 +98,6 @@ This should be coherent with the logview
if (!sqlOK)
{
emit queryError(Q_FUNC_INFO, q.lastError().databaseText(), q.lastError().nativeErrorCode(), q.lastQuery());

}
q.next();
rec = q.record(); // Number of columns
Expand Down
1 change: 0 additions & 1 deletion src/searchwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ void SearchWidget::createUI()
connect(searchWindow, SIGNAL( actionDeleteQSO(int)), this, SLOT( slotQsoDeleteFromSearch(int) ));
connect(searchWindow, SIGNAL( updateSearchLineEdit()), this, SLOT( slotSearchBoxTextChanged() ));
connect(searchWindow, SIGNAL( requestFocus()), this, SLOT( slotRequestFocus() ));

}


Expand Down
2 changes: 1 addition & 1 deletion src/setuppages/hamlibserialconfigwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
class HamLibSerialConfigWidget : public QWidget
{
Q_OBJECT

public:
explicit HamLibSerialConfigWidget(QWidget *parent = nullptr);
void createUI();
Expand All @@ -31,7 +32,6 @@ private slots:
void slotScanPorts();

private:

QStringList getAvailableSerialPorts();
void fillSerialPortsComboBox();

Expand Down
1 change: 0 additions & 1 deletion src/setuppages/setuppagedxcluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ private slots:

Utilities *util;
//QStringList dxClusterServers;

};

#endif // SETUPPAGEDXCLUSTER_H
Expand Down
Loading

0 comments on commit d05c0aa

Please sign in to comment.