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 0737c5e commit 72170df
Show file tree
Hide file tree
Showing 49 changed files with 15 additions and 154 deletions.
1 change: 0 additions & 1 deletion src/aboutdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class AboutDialog : public QDialog
private:
QTabWidget *tabw;
QWidget *tab1, *tab2, *tab3, *tab4;

};


Expand Down
1 change: 0 additions & 1 deletion src/awarddxmarathon.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class DXMarathon

private:
DataProxy_SQLite *dataProxy;

};

#endif // AWARDDXMARATHON_H
1 change: 0 additions & 1 deletion src/awards.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,5 @@ class Awards : public QObject {
signals:
void queryError(QString functionFailed, QString errorCodeS, QString nativeError, QString failedQuery); // To alert about any failed query execution
void awardDXCCUpdated();

};
#endif // AWARDS_H
5 changes: 0 additions & 5 deletions src/awardswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,12 @@ class AwardsWidget : public QWidget
void setYear(const int _year);
void fillOperatingYears();
void showAwards();

void clear();

private slots:
void slotRecalculateAwardsButtonClicked();
void slotOperatingYearComboBoxChanged();


signals:
//void actionQSODoubleClicked(const int _qsoid);
void debugLog (QString _func, QString _msg, DebugLogLevel _level);
Expand All @@ -64,7 +62,6 @@ private slots:
void requireCurrentLogSignal();
void requireCurrentYearSignal();


private:
void createUI();
void setToolTips();
Expand All @@ -89,8 +86,6 @@ private slots:
DebugLogLevel logLevel;

Awards *awards;


};

#endif // AWARDSWIDGET_H
1 change: 0 additions & 1 deletion src/charts/statsfieldperbandwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ void StatsFieldPerBandWidget::createUI()
setLayout(layout);

connect(modeComboBox, SIGNAL(currentTextChanged(QString)), this, SLOT(slotModeComboBoxChanged() ) ) ;

}

void StatsFieldPerBandWidget::prepareChart(const int _log)
Expand Down
1 change: 0 additions & 1 deletion src/charts/statsqsosperyearbarchartwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ StatsQSOsPerYearBarChartWidget::~StatsQSOsPerYearBarChartWidget()

void StatsQSOsPerYearBarChartWidget::createUI()
{

chartView->setRenderHint(QPainter::Antialiasing);

QVBoxLayout *graphLayout = new QVBoxLayout;
Expand Down
1 change: 1 addition & 0 deletions src/dataproxy_sqlite.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ enum
class DataProxy_SQLite : public QObject
{
Q_OBJECT

public:
DataProxy_SQLite(const QString &_parentFunction, const QString &_softVersion="0.0");
~DataProxy_SQLite();
Expand Down
2 changes: 0 additions & 2 deletions src/downloadcty.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,5 @@ private slots:
void actionShowProgres(qint64 received, qint64 total);
void actionError(const int _i);
void downloadStopped();


};
#endif // DOWNLOADCTY_H
3 changes: 0 additions & 3 deletions src/dxccstatuswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ private slots:
// void showMenuRightButtonFromLogCreateActions();
// void righButtonFromLogMenu(const int trow);


QTableWidget *dxccView;
Awards *awards;
World *world;
Expand All @@ -90,15 +89,13 @@ private slots:
QPushButton *refreshButton;
//QCheckBox *showAllLogsButton;


int numberOfColumns; // Columns will be number Of Bands + 2 (Id + Name)
QStringList bandNames, validBands;
int logNumber, tempLog; // log in use in the log / log to be used in the widget
QString loc; // The locator of the user.

QAction *showDXCCWikipediaAct;
int currentLog;

};

#endif // DXCCSTATUSWIDGET_H
26 changes: 0 additions & 26 deletions src/elogclublog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,24 +202,8 @@ void eLogClubLog::slotErrorManagement(QNetworkReply::NetworkError networkError)
{
//qDebug()<< "eLogClubLog::slotErrorManagement: " << QString::number(networkError);
result = networkError;

/*if (result == QNetworkReply::NoError)
{
}
else
if (result == QNetworkReply::HostNotFoundError)
{
//qDebug()<< "eLogClubLog::slotErrorManagement: Host not found";
}
else
{
//qDebug()<< "eLogClubLog::slotErrorManagement: ERROR!";
}
*/
//actionError(result);
}


int eLogClubLog::sendQSO(QStringList _qso)
{
//qDebug() << "eLogClubLog::sendQSO: " << email << "/" << pass << "/" << api ;
Expand Down Expand Up @@ -325,13 +309,11 @@ int eLogClubLog::sendDataParams(const QString &_clublogCall, const QUrlQuery &_p
params.addQueryItem("api",api);
}


postData = params.query(QUrl::FullyEncoded).toUtf8();

QNetworkRequest request(serviceUrl);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");


//qDebug() << Q_FUNC_INFO << ": " << postData;
manager->post(request, postData);
//qDebug()<< Q_FUNC_INFO << ": - END";
Expand Down Expand Up @@ -470,7 +452,6 @@ NOTES
qso = qso + "<FREQ:" + QString::number((_q.at(9)).length()) + ">" + _q.at(9) + " ";
}


//qDebug()<< "eLogClubLog::getClubLogAdif: 90" ;
qso = qso + "<QSL_RCVD:" + QString::number((_q.at(10)).length()) + ">" + _q.at(10) + " ";
//qDebug()<< "eLogClubLog::getClubLogAdif: 100" ;
Expand All @@ -483,7 +464,6 @@ NOTES
qso = qso + "<DXCC:" + QString::number((_q.at(13)).length()) + ">" + _q.at(13) + " ";
}


//qDebug()<< "eLogClubLog::getClubLogAdif: 130'" ;
if ((_q.at(14)).toInt()> 0)
{
Expand All @@ -508,8 +488,6 @@ void eLogClubLog::setDefaultCallsign(const QString &_defaultStationCallsign)
stationCallsign = _defaultStationCallsign;
}



int eLogClubLog::deleteQSO(QStringList _qso)
{
//qDebug()<< "eLogClubLog::deleteQSO: length = " << QString::number(_qso.length());
Expand All @@ -535,7 +513,6 @@ int eLogClubLog::deleteQSO(QStringList _qso)
tempCall = stationCallsign;
}


dxcall = _qso.at(5);
QDateTime dateTime;
dateTime.setDate(QDate::fromString(_qso.at(1), "yyyyMMdd"));
Expand Down Expand Up @@ -570,9 +547,7 @@ int eLogClubLog::deleteQSO(QStringList _qso)
//params.addQueryItem("adif",qso);
uploadingFile = false;
return sendDataParams(tempCall, params, false);

//return sendData(qso);

}

QString eLogClubLog::prepareToTranslate(const QString &_m)
Expand Down Expand Up @@ -713,7 +688,6 @@ void eLogClubLog::sendLogFile(const QString &_file, QList<int> _qso, bool _overw
if (file->open(QIODevice::ReadOnly)) /* Flawfinder: ignore */
{
blob = file->readAll();

}
else
{
Expand Down
1 change: 0 additions & 1 deletion src/elogclublog.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ private slots:
void showMessage(const QString &_t);
void disableClubLogAction(const bool _b);
void signalFileUploaded(QNetworkReply::NetworkError, QList<int>);

};
#endif // DOWNLOADCTY_H
1 change: 0 additions & 1 deletion src/elogqrzlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,5 @@ private slots:

OnlineMessageWidget *onlineMessage;
//bool useQSOStationCallsign;

};
#endif // DOWNLOADCTY_H
1 change: 0 additions & 1 deletion src/eqslutilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ private slots:
void showMessage(const QString &_t);
void disableeQSLAction(const bool _b);
void signalFileUploaded(QNetworkReply::NetworkError, QList<int>);

};
#endif // EQSLUTILITIES_H
1 change: 0 additions & 1 deletion src/fileawardmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public slots:
DataProxy_SQLite *dataProxy;
Utilities *util;
World *world;

};

#endif // FILEAWARDMANAGER_H
2 changes: 0 additions & 2 deletions src/filemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ class FileManager : public QWidget

bool rstTXDefault, rstRXDefault; // If true and a log is not including RST, 59 is automatically added


//bool printQs(const QString &_q, const QStringList _line);
bool printQs(const QStringList &_line);
//int confirmed;
Expand Down Expand Up @@ -168,6 +167,5 @@ class FileManager : public QWidget
signals:
void addQSOToList(QStringList _qso);
void queryError(QString _functionFailed, QString errorCodeS, QString nativeError, QString failedQuery); // To alert about any failed query execution

};
#endif // FILEMANAGER_H
3 changes: 0 additions & 3 deletions src/hamlibclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ public slots:
bool readOnlyMode; // If true, KLog will not modify any parameter (freq/mode...) in the radio. KLog just will follow the radio.
bool justEmitted;
bool reading; // Just a semaphore to prevent several readings
//bool active;

//QSerialPort *m_serial;
};

#endif // HAMLIBCLASS_H
1 change: 0 additions & 1 deletion src/infowidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class InfoWidget : public QWidget
int currentLog;
bool imperialSystem;
QString dxLocator, localLocator;

};

#endif // INFOWIDGET_H
7 changes: 1 addition & 6 deletions src/klogdefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ struct Coordinate {
#define QT_SKIP QString::SkipEmptyParts
#define QT_ENDL endl
#define QT_RETURNBYVALUE
#endif


//#if QT_VERSION>=0x041502
//#else
//#endif
#endif

#endif // KLOGDEFINITIONS_H
4 changes: 0 additions & 4 deletions src/locator.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include <QRegularExpression>
#include "klogdefinitions.h"



const double PI = 3.141592654; //http://en.wikipedia.org/wiki/Pi
const bool LATITUDE = false;
const bool LONGITUDE = true;
Expand Down Expand Up @@ -75,8 +73,6 @@ class Locator{
//QChar theChar;
//double my_lon, my_lat, other_lon, other_lat, beam, testNumb;
//int ideg, imin, isec;


};

#endif
1 change: 0 additions & 1 deletion src/logmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class LogModel : public QSqlRelationalTableModel

signals:
void queryError(QString functionFailed, QString errorCodeS, QString nativeError, QString failedQuery); // To alert about any failed query execution

};

#endif // LOGMODEL_H
Expand Down
1 change: 0 additions & 1 deletion src/logwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ private slots:

Utilities *util;
QStringList columns;

//LogViewSortFilterProxyModel *proxyModel;
//bool sortingThroughProxyModel;
};
Expand Down
1 change: 0 additions & 1 deletion src/lotwutilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ int LoTWUtilities::download()
startRequest(url);
//qDebug() << "LoTWUtilities::download - END";
return 1;

}

int LoTWUtilities::fullDownload()
Expand Down
1 change: 0 additions & 1 deletion src/lotwutilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ private slots:

signals:
void actionProcessLoTWDownloadedFile(QString _fn);

};

#endif // LOTWUTILITIES_H
1 change: 0 additions & 1 deletion src/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,6 @@ private slots:
signals:
void queryError(QString functionFailed, QString errorCodeS, QString nativeError, QString failedQuery); // To alert about any failed query execution


protected:
void keyPressEvent(QKeyEvent *event) override;
void closeEvent(QCloseEvent *event) override;
Expand Down
1 change: 0 additions & 1 deletion src/searchmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class SearchModel : public QSqlRelationalTableModel
int dxcc, bandid, modeid, logn;
signals:
void queryError(QString functionFailed, QString errorCodeS, QString nativeError, QString failedQuery); // To alert about any failed query execution

};

#endif // SEARCHMODEL_H
Expand Down
3 changes: 0 additions & 3 deletions src/searchwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ private slots:
QAction *qslRecRequestedAct;

QTimer *delayInputTimer;



};

#endif // SEARCHWIDGET_H
1 change: 0 additions & 1 deletion src/searchwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ private slots:

Utilities *util;
bool showStationCallsignInHeader;

};

#endif // SEARCHWINDOW_H
1 change: 0 additions & 1 deletion src/setuppages/setuppagecolors.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ private slots:
4 - Confirmed: Worked in this band.
5 - Confirmed: Confirmed in this band.
*/

};

#endif // SETUPPAGECOLORS_H
3 changes: 1 addition & 2 deletions src/setuppages/setuppageelog.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private slots:
protected:
//void closeEvent(QCloseEvent *event);
void showEvent(QShowEvent *event);

private:
void setDefaults();
//QString defaultFileName;
Expand Down Expand Up @@ -110,8 +111,6 @@ private slots:
Utilities *util;

QPalette palRed, palBlack;


};

#endif // SETUPPAGEELOG_H
1 change: 0 additions & 1 deletion src/setuppages/setuppagelogview.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public slots:
QListWidget *fieldsListWidget;

DataProxy_SQLite *dataProxy;

};

#endif // SETUPPAGELOGVIEW_H
Loading

0 comments on commit 72170df

Please sign in to comment.