codefactor.io cleaning

This commit is contained in:
d 2024-03-24 00:03:46 +01:00
parent 6f29a203ce
commit 0737c5e3e2
60 changed files with 53 additions and 710 deletions

View File

@ -174,15 +174,10 @@ AboutDialog::AboutDialog(const QString &tversion, QWidget *parent)
layout->addWidget(buttonBox, 1, 0, Qt::AlignRight);
setLayout(layout);
//qDebug() << "AboutDialog::AboutDialog - END";
}
AboutDialog::~AboutDialog()
{
}
AboutDialog::~AboutDialog(){}
bool AboutDialog::event(QEvent *event)
{

View File

@ -94,7 +94,6 @@ private:
QHash<QString, QString> ADIFHash; // Name, type
QStringList ARRL_sects, continents, sponsorsList;
};
#endif // ADIF_H

View File

@ -40,7 +40,6 @@ StatsCQZPerYearBarChartWidget::StatsCQZPerYearBarChartWidget(DataProxy_SQLite *d
void StatsCQZPerYearBarChartWidget::createUI()
{
chartView->setRenderHint(QPainter::Antialiasing);
QVBoxLayout *graphLayout = new QVBoxLayout;

View File

@ -92,7 +92,6 @@ void StatsDXCCOnSatsWidget::createUI()
connect(confirmedOnlyCheckBox, SIGNAL(clicked()), this, SLOT(slotConfirmedClicked() ) );
connect(onlyLEOSatCheckBox, SIGNAL(clicked()), this, SLOT(slotConfirmedClicked() ) );
}
StatsDXCCOnSatsWidget::~StatsDXCCOnSatsWidget()
@ -179,7 +178,6 @@ void StatsDXCCOnSatsWidget::prepareChart(const int _log)
tableWidget->setItem(tableWidget->rowCount()-1, 5, new QTableWidgetItem(satName));
tableWidget->setItem(tableWidget->rowCount()-1, 6, new QTableWidgetItem(qslStatus) );
}
}
numberLabel->setText(QString::number(number));
}

View File

@ -50,7 +50,6 @@ StatsEntitiesPerYearBarChartWidget::~StatsEntitiesPerYearBarChartWidget()
void StatsEntitiesPerYearBarChartWidget::createUI()
{
chartView->setRenderHint(QPainter::Antialiasing);
QVBoxLayout *graphLayout = new QVBoxLayout;
@ -109,7 +108,6 @@ void StatsEntitiesPerYearBarChartWidget::prepareChart(const int _log)
}
//qDebug() << "BarChartStats::prepareChart DXCCs: " << QString::number((categories.at(i)).toInt()) << "/" << QString::number(numberPerX);
}
series->append(set0);
set0->setLabel(categoriesElem);
chart->addSeries(series);

View File

@ -119,7 +119,6 @@ void StatsGridsOnSatsWidget::prepareChart(const int _log)
grids.clear();
if (_qsos.length()>0)
{
for (int i = 0; i<_qsos.length(); i++)
{
bool confirmed = false;

View File

@ -44,7 +44,6 @@ StatsQSOsPerBandBarChartWidget::~StatsQSOsPerBandBarChartWidget()
void StatsQSOsPerBandBarChartWidget::createUI()
{
chartView->setRenderHint(QPainter::Antialiasing);
QVBoxLayout *graphLayout = new QVBoxLayout;

View File

@ -58,7 +58,6 @@ void StatsQSOsPerDXCCBarChartWidget::createUI()
void StatsQSOsPerDXCCBarChartWidget::prepareChart(const int _log)
{
QChart *chart = new QChart();
chart->setAnimationOptions(QChart::SeriesAnimations);
chart->legend()->setVisible(true);

View File

@ -51,7 +51,6 @@ StatsQSOsPerModeBarChartWidget::~StatsQSOsPerModeBarChartWidget()
void StatsQSOsPerModeBarChartWidget::createUI()
{
chartView->setRenderHint(QPainter::Antialiasing);
QVBoxLayout *graphLayout = new QVBoxLayout;

View File

@ -87,5 +87,4 @@ void StatsSentConfirmedPieChartWidget::prepareChart(const int _log)
chartView->setRenderHint(QPainter::Antialiasing);
chartView->setChart (chart);
}

View File

@ -48,7 +48,6 @@ StatsWorkedConfirmedPieChartWidget::~StatsWorkedConfirmedPieChartWidget()
void StatsWorkedConfirmedPieChartWidget::createUI()
{
chartView->setRenderHint(QPainter::Antialiasing);
QVBoxLayout *graphLayout = new QVBoxLayout;
@ -92,5 +91,4 @@ void StatsWorkedConfirmedPieChartWidget::prepareChart(const int _log)
chartView->setRenderHint(QPainter::Antialiasing);
chartView->setChart (chart);
}

View File

@ -88,5 +88,4 @@ void StatsWorkedSentPieChartWidget::prepareChart(const int _log)
chartView->setRenderHint(QPainter::Antialiasing);
chartView->setChart (chart);
}

View File

@ -265,8 +265,6 @@ private:
signals:
//void queryError(QString functionFailed, QString errorCodeS, QString nativeError, QString failedQuery); // To alert about any failed query execution
void debugLog (QString _func, QString _msg, DebugLogLevel _level);
};
#endif // DATABASE_H

View File

@ -80,8 +80,8 @@ DownLoadCTY::~DownLoadCTY()
QString aux;
aux.clear();
if (reply->error()) {
if (reply->error())
{
//fprintf(stderr, "Download of %s failed: %s\n",
// url.toEncoded().constData(),
// qPrintable(reply->errorString()));
@ -114,9 +114,7 @@ DownLoadCTY::~DownLoadCTY()
}
reply->deleteLater();
emit done(true);
}
int DownLoadCTY::download()
@ -170,8 +168,8 @@ QString DownLoadCTY::saveFileName(const QUrl &url)
if (basename.isEmpty())
basename = "download";
if (QFile::exists(basename)) {
if (QFile::exists(basename))
{
msgBox.setIcon(QMessageBox::Warning);
aux = tr("There is already a cty.csv file in the folder but it will be replaced with the new one.");
msgBox.setText(aux);
@ -185,7 +183,6 @@ QString DownLoadCTY::saveFileName(const QUrl &url)
//basename += '.';
//while (QFile::exists(basename + QString::number(i)))
// ++i;
//basename += QString::number(i);
}
@ -200,7 +197,6 @@ bool DownLoadCTY::saveToDisk(const QString &filename, QIODevice *data)
QString aux;
aux.clear();
if (!file.open(QIODevice::WriteOnly)) { /* Flawfinder: ignore */
msgBox.setIcon(QMessageBox::Warning);
aux = tr("Could not open %1 for writing").arg(filename);
//aux = tr("Could not open ") + filename + tr(" for writing.");

View File

@ -652,7 +652,6 @@ void DXCCStatusWidget::refresh()
if ((column == 0) || (column == 1))
{
//tip = tr("Pref: ") + (dxccView->item(row, 1))->text() + " - ";
tip = tr("Pref: ") + dataProxy->getEntityMainPrefix(entiID) + " - ";
tip = tip + tr("CQ: ") + QString::number(dataProxy->getCQzFromEntity(entiID)) + " - ";
@ -774,7 +773,6 @@ void DXCCStatusWidget::slotItemDoubleClicked(QTableWidgetItem * item )
{
qsos.append(qsoId);
}
}
//qDebug() << "DXCCStatusWidget::slotItemDoubleClicked: - END of for" ;
if (qsos.length()>0)
@ -796,7 +794,6 @@ void DXCCStatusWidget::setMyLocator(const QString &_loc)
{
loc = l.toUpper();
}
}
/*
void DXCCStatusWidget::slotRightButton(const QPoint& pos)

View File

@ -83,7 +83,6 @@ signals:
//void dxspot(const QString &_spot); // The text string to be saved
private:
//void TESTADDSPOT(); // Just a test spot
void createActions();
@ -125,20 +124,16 @@ private:
bool saveSpots; // write/save the spots to a file
QAction *checkQRZCOMFromLogAct;
};
class dxClusterSpotItem : public QListWidgetItem {
class dxClusterSpotItem : public QListWidgetItem
{
public:
dxClusterSpotItem( QListWidget* parent, const QString& spot, const QColor& color );
~dxClusterSpotItem();
protected:
QColor spotColor;
};
#endif // DXCLUSTER_H

View File

@ -75,10 +75,8 @@ eLogClubLog::~eLogClubLog()
currentQSO = -1;
}
if (result == QNetworkReply::NoError)
{
text = "ClubLog: " + prepareToTranslate(sdata);
//qDebug()<< sdata;
//qDebug()<< Q_FUNC_INFO << " - NO ERROR";
@ -89,8 +87,6 @@ eLogClubLog::~eLogClubLog()
qsos.clear();
return;
}
}
else if (result == QNetworkReply::HostNotFoundError)
{
@ -155,7 +151,6 @@ eLogClubLog::~eLogClubLog()
//emit done();
//emit signalFileUploaded(result, qsos);
emit showMessage(text);
}
void eLogClubLog::slotFileUploadFinished(QNetworkReply *data)
@ -169,10 +164,8 @@ void eLogClubLog::slotFileUploadFinished(QNetworkReply *data)
QString text;
if (result == QNetworkReply::NoError)
{
text = "ClubLog: " + prepareToTranslate(sdata);
//qDebug()<< "eLogClubLog::slotFileUploadFinished - Result = NoError = " << QString::number(result) ;
//qDebug()<< sdata;
@ -265,7 +258,6 @@ int eLogClubLog::sendQSO(QStringList _qso)
uploadingFile = false;
return sendDataParams(tempCall, params, true);
//return sendData(tempCall, qso);
}
/*
int eLogClubLog::deleteQSOid(const int _qsoId)
@ -433,8 +425,8 @@ NOTES
qso.clear();
aux1 = _q.at(0);
//qDebug()<< "eLogClubLog::getClubLogAdif: Date: " << _q.at(0) ;
if (QDate::fromString(aux1, "yyyyMMdd").isValid()){
if (QDate::fromString(aux1, "yyyyMMdd").isValid())
{
qso = "<QSO_DATE:" + QString::number(aux1.length()) + ">" + aux1 + " ";
}
else

View File

@ -93,7 +93,6 @@ void eLogQrzLog::setLogBookKey(const QString &_key)
void eLogQrzLog::parseNetworkError(QNetworkReply::NetworkError _error)
{
showDebugLog (Q_FUNC_INFO, "Start: " + QString::number(_error));
QString text;
switch (_error) {
@ -501,7 +500,6 @@ void eLogQrzLog::slotManagerFinished(QNetworkReply *data)
emit showMessage(text);
showDebugLog (Q_FUNC_INFO, "Text: " + text);
showDebugLog (Q_FUNC_INFO, "END");
}
void eLogQrzLog::downloadProgress(qint64 received, qint64 total) {
@ -737,7 +735,6 @@ void eLogQrzLog::login()
//}
//qDebug()<< "eLogQrzLog::login - END" ;
showDebugLog (Q_FUNC_INFO, "END");
}
int eLogQrzLog::sendDataParams(const QUrlQuery &_params)
@ -774,7 +771,6 @@ void eLogQrzLog::setUser(const QString &_user)
void eLogQrzLog::setPassword(const QString &_pass)
{
showDebugLog (Q_FUNC_INFO, "Start: " + _pass);
pass = _pass;
showDebugLog (Q_FUNC_INFO, "END");

View File

@ -85,7 +85,6 @@ void eQSLUtilities::slotQsoUploadFinished(QNetworkReply *data)
if (result == QNetworkReply::NoError)
{
parsedAnswer << prepareToTranslate(sdata);
if (parsedAnswer.at(0).contains("Error"))
{
@ -132,7 +131,6 @@ void eQSLUtilities::slotQsoUploadFinished(QNetworkReply *data)
//emit done();
emit signalFileUploaded(result, qsos);
emit showMessage(text);
}
void eQSLUtilities::downloadProgress(qint64 received, qint64 total) {
@ -197,8 +195,6 @@ QStringList eQSLUtilities::prepareToTranslate(const QString &_m)
result << "Unknown" << "Unknown";
}
//qDebug()<< "eQSLUtilities:: = prepareToTranslate returning... " ;
return result;
}
@ -272,7 +268,6 @@ void eQSLUtilities::sendLogFile(const QString &_file, QList<int> _qso)
//qDebug()<< Q_FUNC_INFO << " After sending";
//multiPart->setParent(reply);
//qDebug()<< "eQSLUtilities::sendLogFile - END";
}

View File

@ -145,12 +145,10 @@ bool FileAwardManager::importNewAwardFile()
{
//regionalAward->addRegionalAwardName(adifField.at(1));
}
else
{
//qDebug() << "FileAwardManager::importNewAwardFile: Invalid AWA field found HEADER" << adifField.at(0);
}
}
aux.clear();
}
@ -224,10 +222,10 @@ bool FileAwardManager::importNewAwardFile()
{
//qDebug() << "FileAwardManager::importNewAwardFile: Invalid AWA field found in BODY" << adifField.at(0);
}
}}
}
}
}
}
return false;
}

View File

@ -92,7 +92,6 @@ public:
void setCallValidation (const bool _b);
private:
bool adifLogExportToFile(const QString& _fileName, const int _logN, bool justMarked, bool _qslRequested, bool _lotw);
//bool cabrilloLogExportToFile(const QString& _fileName, const int logNconst);
//bool cabrilloLogExportCQWWToFile(const QString& _fileName, const int logNconst);

View File

@ -300,7 +300,6 @@ void InfoWidget::createUI()
#endif
setLayout(mainLayout);
}
void InfoWidget::clearBandLabels()
@ -472,7 +471,6 @@ void InfoWidget::showEntityInfo(const int _enti, int _cq, int _itu)
ituzLabel->setText("0");
}
}
}
@ -484,7 +482,6 @@ void InfoWidget::showDistanceAndBearing(const QString &_locLocal, const QString
if ( locator->isValidLocator(lloc) )
{
if ( locator->isValidLocator(ldx) )
{
dxLocator = ldx;

View File

@ -518,7 +518,6 @@ QString MainWindowMyDataTab::getUserADIFTypeComboBox()
int value = (((myUserADIFComboBox->currentText ()).split('-')).at(0)).toInt ();
switch (value)
{
case 1:
return "MY_RIG";
case 2:

View File

@ -27,12 +27,9 @@
#include "locator.h"
#include <QtDebug>
Locator::Locator(){
Locator::Locator(){}
}
Locator::~Locator(){
}
Locator::~Locator(){}
bool Locator::isValidLocator(const QString& tlocator){
/* -------------- Subroutine -----------------------

View File

@ -83,7 +83,6 @@ void LoTWUtilities::slotCalendarDateSelected(const QDate _d)
//qDebug() << "LoTWUtilities::slotCalendarDateSelected: " << _d.toString("yyyyMMdd") ;
firstDate = _d;
startThefullDownload();
}
void LoTWUtilities::setFileName(const QString &_fn)
@ -359,7 +358,6 @@ int LoTWUtilities::fullDownload()
int LoTWUtilities::startThefullDownload()
{
//qDebug() << "LoTWUtilities::startThefulldownload - Start";
if (calendar->isVisible())
{
@ -586,7 +584,6 @@ bool LoTWUtilities::getIsReady()
//qDebug() << "LoTWUtilities::getIsReady: false";
return false;
}
}
void LoTWUtilities::parseDownloadedFile(const QString &_fn)
@ -658,7 +655,6 @@ void LoTWUtilities::parseDownloadedFile(const QString &_fn)
// WE HAVE JUST FINISHED TO READ THE HEADER OR THE FILE, IF IT IS NOT AN ADIF
if (!hasHeader || (numQSO<1))
{
//qDebug() << "LoTWUtilities::parseDownloadedFile Header not found" << _fileName;
QString aux;
if (userPasswordError)
@ -706,7 +702,6 @@ void LoTWUtilities::parseDownloadedFile(const QString &_fn)
}
//file.seek(startOfFile);
emit actionProcessLoTWDownloadedFile(_fileName);
}

View File

@ -136,7 +136,6 @@ int main(int argc, char *argv[])
}
else if (((QLocale::system().name()).left(2)) == "en") /* Flawfinder: ignore */
{ // If language is English, it will execute without showing message
}
else
{
@ -161,7 +160,6 @@ int main(int argc, char *argv[])
else if (((QLocale::system().name()).left(2)) == "en") /* Flawfinder: ignore */
{ // If language is English, it will execute without showing message
}
else
{
@ -193,7 +191,6 @@ int main(int argc, char *argv[])
msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setDefaultButton(QMessageBox::Ok);
msgBox.exec();
}
//qDebug() << Q_FUNC_INFO << " - 1" << (QTime::currentTime()).toString("HH:mm:ss") ;

View File

@ -105,9 +105,8 @@ This should be coherent with the treeview
setFilter(stringQuery);
//setColumnsToDX();
select();
}
void SearchModel::setStationCallsignInHeader(const bool _s)
{
stationCallsignInHeader = _s;
@ -173,13 +172,13 @@ void SearchModel::setStationCallsignInHeader(const bool _s)
setSort(nameCol, Qt::AscendingOrder);
}
*/
void SearchModel::setFilterString(const QString &_st)
{
//qDebug() << "SearchModel::setFilterString: " << _st;
setFilter(_st);
select();
//qDebug() << "SearchModel::setFilterString: SelectStatement: " << selectStatement ();
}
void SearchModel::update()

View File

@ -138,7 +138,6 @@ void SearchWidget::showQSOs(QList<int> qsoIdList)
//qDebug() << "SearchWidget::showQSOs filter: " << filter;
searchWindow->setFilterString(filter);
}
@ -252,7 +251,6 @@ void SearchWidget::slotQsoDeleteFromSearch(const int _qsoId)
QString _qrz = dataProxy->getCallFromId(QSOid);
if (_qrz.length()>=3)
{
QString message = QString(tr("You have requested to delete the QSO with: %1").arg(_qrz));
QMessageBox msgBox;
@ -283,7 +281,6 @@ void SearchWidget::slotQsoDeleteFromSearch(const int _qsoId)
//dxccStatusWidget->refresh();
//awards->recalculateAwards();
emit updateAwards();
}
else
{
@ -298,7 +295,6 @@ void SearchWidget::slotQsoDeleteFromSearch(const int _qsoId)
// should never be reached
break;
}
}
else
{
@ -490,7 +486,6 @@ void SearchWidget::slotQSLSentViaDirectFromSearch()
}
//qslSentViaDirect(_qsoId);
}
/*
@ -594,11 +589,11 @@ void SearchWidget::slotDoubleClickSearch(QTreeWidgetItem * item, int)
}
*/
void SearchWidget::setNeedingQSL(bool const _q)
{
qslingNeeded = _q;
searchWindow->setNeedingQSL(qslingNeeded);
}
void SearchWidget::slotSearchBoxTextChanged()
@ -697,8 +692,6 @@ void SearchWidget::slotSearchBoxTextChanged()
}
searchBoxLineEdit->setCursorPosition(cursorP);
}
void SearchWidget::setModelFilter()
@ -706,7 +699,6 @@ void SearchWidget::setModelFilter()
//qDebug() << "SearchWidget::setModelFilter - callFilter = " << callFilter ;
//qDebug() << "SearchWidget::setModelFilter - stationCallFilter = " << stationCallsignFilter ;
//qDebug() << "SearchWidget::setModelFilter - currentLog = " << currentLogFilter;
QString filter;
filter = QString();
@ -768,7 +760,6 @@ void SearchWidget::slotSearchBoxSelectAllButtonClicked()
searchSelectAllClicked = false;
searchWindow->clearSelection();
searchBoxSelectAllButton->setText(tr("&Select All"));
}
else
{
@ -776,9 +767,7 @@ void SearchWidget::slotSearchBoxSelectAllButtonClicked()
searchSelectAllClicked = true;
searchWindow->selectAll();
searchBoxSelectAllButton->setText(tr("&Clear selection"));
}
}
void SearchWidget::slotSearchBoxReSearchButtonClicked()

View File

@ -603,7 +603,6 @@ QList<int> SearchWindow::getSelectedQSOs()
void SearchWindow::slotQSLRecMarkAsRequested()
{
int _qsoId = ((searchModel->index((qslRecRequestedAct->data()).toInt(), 0)).data(0)).toInt();
dataProxy->qslRecAsRequested(_qsoId, QDate::currentDate());
if(qslingNeeded)
@ -729,7 +728,6 @@ void SearchWindow::slotQSLSentViaBureauMarkDXReqFromSearch()
dataProxy->qslSentViaBureau(_qsoId, QDate::currentDate());
dataProxy->qslRecAsRequested(_qsoId, QDate::currentDate());
if(qslingNeeded)
{
slotToolSearchQSL(0);
@ -741,7 +739,6 @@ void SearchWindow::slotQSLSentViaBureauMarkDXReqFromSearch()
searchModel->select();
//qDebug() << "slotQSLSentViaBureauMarkDXReqFromSearch: - END ";
// Mark Sent, Bureau, date, update log.
}
void SearchWindow::slotQSLRecViaBureauMarkReqFromSearch()

View File

@ -264,7 +264,6 @@ void HamLibSerialConfigWidget::setParity(const QString &_st)
//StopBits { OneStop, OneAndHalfStop, TwoStop, UnknownStopBits }
QString HamLibSerialConfigWidget::getStopBits()
{
int ret = stopBitsComboBox->currentIndex();
switch (ret)
{
@ -285,13 +284,10 @@ QString HamLibSerialConfigWidget::getStopBits()
return "UnknownStopBits";
break;
}
}
void HamLibSerialConfigWidget::setStopBits(const QString &_st)
{
if (_st == "OneStop")
{
stopBitsComboBox->setCurrentIndex(0);

View File

@ -31,9 +31,8 @@ This class calls all the othet "Setup..." to manage the configuration
*/
SetupEntityDialog::SetupEntityDialog(){
SetupEntityDialog::SetupEntityDialog()
{
//qDebug() << "SetupEntityDialog::SetupEntityDialog: ";
//QPalette::ColorRole QWidget::foregroundRole () const;
@ -49,7 +48,6 @@ SetupEntityDialog::SetupEntityDialog(){
palw.setColor(QPalette::Text, Qt::red);
//pal.setColor(QPalette::Text, Qt::black);
entityData.clear();
entityBool = false;
@ -223,7 +221,6 @@ void SetupEntityDialog::slotOkButtonClicked()
QStringList ql;
ql.clear();
if (entityBool && mainPrefixBool &&
cqBool &&
ituBool &&
@ -257,8 +254,8 @@ void SetupEntityDialog::slotOkButtonClicked()
reject();
}
reject();
}
QString SetupEntityDialog::checkContinent()
{
//qDebug() << "SetupEntityDialog::checkContinent";
@ -307,7 +304,6 @@ QString SetupEntityDialog::checkMainprefix()
QString SetupEntityDialog::checkCQz()
{
//qDebug() << "SetupEntityDialog::checkCQz";
if(cqBool)
{
return cqLineEdit->text();
@ -317,13 +313,13 @@ QString SetupEntityDialog::checkCQz()
return "";
}
return "";
}
QString SetupEntityDialog::checkITUz()
{
//qDebug() << "SetupEntityDialog::checkITUz";
if(ituBool)
{
return ituLineEdit->text();
@ -333,13 +329,11 @@ QString SetupEntityDialog::checkITUz()
return "";
}
return "";
}
QString SetupEntityDialog::checkLatitude()
{
//qDebug() << "SetupEntityDialog::checkLatitude";
if(latBool)
{
return latLineEdit->text();
@ -349,7 +343,6 @@ QString SetupEntityDialog::checkLatitude()
return "";
}
return "";
}
QString SetupEntityDialog::checkLongitude()
@ -365,13 +358,11 @@ QString SetupEntityDialog::checkLongitude()
return "";
}
return "";
}
QString SetupEntityDialog::checkUTC()
{
//qDebug() << "SetupEntityDialog::checkUTC";
if(utcBool)
{
return utcLineEdit->text();
@ -381,13 +372,11 @@ QString SetupEntityDialog::checkUTC()
return "";
}
return "";
}
QString SetupEntityDialog::checkARRLid()
{
//qDebug() << "SetupEntityDialog::checkARRLid";
if(arrlidBool)
{
return arrlidLineEdit->text();
@ -397,14 +386,11 @@ QString SetupEntityDialog::checkARRLid()
return "";
}
return "";
}
QString SetupEntityDialog::checkDeleted()
{
//qDebug() << "SetupEntityDialog::checkDeleted";
if(delBool)
{
return "Y";
@ -414,13 +400,11 @@ QString SetupEntityDialog::checkDeleted()
return "N";
}
return "";
}
QString SetupEntityDialog::checkDeletedDate()
{
//qDebug() << "SetupEntityDialog::checkDeletedDate";
if(delDateBool)
{
return "00/00/0000";
@ -435,7 +419,6 @@ QString SetupEntityDialog::checkDeletedDate()
QString SetupEntityDialog::checkPrefixes()
{
//qDebug() << "SetupEntityDialog::checkPrefixes";
if(prefBool)
{
return prefLineEdit->text();
@ -445,22 +428,18 @@ QString SetupEntityDialog::checkPrefixes()
return "";
}
return "";
}
void SetupEntityDialog::slotCancelButtonClicked()
{
//qDebug() << "SetupEntityDialog::slotCancelButtonClicked ";
reject();
}
void SetupEntityDialog::slotCheckEntity()
{
//qDebug() << "SetupEntityDialog::slotCheckEntity ";
QString aux;
aux = entityLineEdit->text();
if (aux.length()>2)
@ -473,13 +452,11 @@ void SetupEntityDialog::slotCheckEntity()
entityBool = false;
entityLineEdit->setPalette(palw);
}
}
void SetupEntityDialog::slotCheckMainprefix()
{
//qDebug() << "SetupEntityDialog::slotCheckMainprefix";
QString aux;
aux = mprefLineEdit->text();
if (aux.length()>0)
@ -492,13 +469,11 @@ void SetupEntityDialog::slotCheckMainprefix()
mainPrefixBool = false;
mprefLineEdit->setPalette(palw);
}
}
void SetupEntityDialog::slotCheckCQz()
{
//qDebug() << "SetupEntityDialog::slotCheckCQz";
QString aux;
aux = cqLineEdit->text();
if (aux.length()>0)
@ -511,14 +486,11 @@ void SetupEntityDialog::slotCheckCQz()
cqBool = false;
cqLineEdit->setPalette(palw);
}
}
void SetupEntityDialog::slotCheckITUz()
{
//qDebug() << "SetupEntityDialog::slotCheckITUz";
QString aux;
aux = ituLineEdit->text();
if (aux.length()>0)
@ -531,7 +503,6 @@ void SetupEntityDialog::slotCheckITUz()
ituBool = false;
ituLineEdit->setPalette(palw);
}
}
void SetupEntityDialog::slotCheckContinent()
@ -550,13 +521,11 @@ void SetupEntityDialog::slotCheckContinent()
contBool = false;
contLineEdit->setPalette(palw);
}
}
void SetupEntityDialog::slotCheckLatitude()
{
//qDebug() << "SetupEntityDialog::slotCheckLatitude";
QString aux;
aux = latLineEdit->text();
if (aux.length()>0)
@ -569,17 +538,11 @@ void SetupEntityDialog::slotCheckLatitude()
latBool = false;
latLineEdit->setPalette(palw);
}
}
void SetupEntityDialog::slotCheckLongitude()
{
//qDebug() << "SetupEntityDialog::slotCheckLongitude";
QString aux;
aux = lonLineEdit->text();
if (aux.length()>3)
@ -595,13 +558,11 @@ void SetupEntityDialog::slotCheckLongitude()
//lonLineEdit->setPalette(*paletteWrong);
lonBool = false;
}
}
void SetupEntityDialog::slotCheckUTC()
{
//qDebug() << "SetupEntityDialog::slotCheckUTC";
QString aux;
aux = utcLineEdit->text();
if (aux.length()>0)
@ -614,13 +575,11 @@ void SetupEntityDialog::slotCheckUTC()
utcBool = false;
utcLineEdit->setPalette(palw);
}
}
void SetupEntityDialog::slotCheckARRLid()
{
//qDebug() << "SetupEntityDialog::slotCheckARRLid";
QString aux;
aux = arrlidLineEdit->text();
@ -635,13 +594,11 @@ void SetupEntityDialog::slotCheckARRLid()
arrlidBool = false;
arrlidLineEdit->setPalette(palw);
}
}
void SetupEntityDialog::slotCheckDeleted()
{
//qDebug() << "SetupEntityDialog::slotCheckDeleted";
if (delRbutton->isChecked())
{
delBool = true;
@ -650,7 +607,6 @@ void SetupEntityDialog::slotCheckDeleted()
{
delBool = false;
}
}
void SetupEntityDialog::slotCheckDeletedDate()
@ -658,13 +614,11 @@ void SetupEntityDialog::slotCheckDeletedDate()
//qDebug() << "SetupEntityDialog::slotCheckDeletedDate";
delDateBool = false;
//arrlidLineEdit->setPalette(palw);
}
void SetupEntityDialog::slotCheckPrefixes()
{
//qDebug() << "SetupEntityDialog::slotCheckPrefixes";
QString aux;
aux = prefLineEdit->text();
aux = aux.simplified();

View File

@ -134,7 +134,6 @@ void SetupPageColors::slotNeededColorButtonClicked ()
style = style + (giveColor(neededColorButton->palette().color(QPalette::Button))).name();
style = style + "; }";
neededColorButton->setStyleSheet(style);
}
void SetupPageColors::slotWorkedColorButtonClicked ()
@ -144,7 +143,6 @@ void SetupPageColors::slotWorkedColorButtonClicked ()
style = style + (giveColor(workedColorButton->palette().color(QPalette::Button))).name();
style = style + "; }";
workedColorButton->setStyleSheet(style);
}
void SetupPageColors::slotConfirmedColorButtonClicked ()
@ -182,7 +180,6 @@ QColor SetupPageColors::giveColor (QColor c)
//qDebug() << "SetupPageColors::giveColor NOT valid color";
return colorb;
}
}
QString SetupPageColors::getNewOneColor()
@ -276,8 +273,8 @@ void SetupPageColors::slotSetDarkMode()
setDarkMode (!darkMode);
}
QString SetupPageColors::getDarkMode(){
QString SetupPageColors::getDarkMode()
{
//qDebug() << Q_FUNC_INFO;
return util->boolToQString(darkMode);
}

View File

@ -181,7 +181,6 @@ void SetupPageLogs::slotRemoveButtonClicked()
showError(tr("Log has not been removed. (#3)"));
//qDebug() << "SetupPageLogs::slotRemoveButtonClicked (AWARDDXCC NOT REMOVED: " << QString::number(selectedLog) << ")";
}
}
else
{
@ -339,7 +338,6 @@ QStringList SetupPageLogs::readLogs()
aux2 = aux2.append(")");
_logs.append(aux2);
}
return _logs;
}

View File

@ -132,7 +132,6 @@ void SetupPageLogsNew::createWidget()
clear();
//qDebug() << "SetupPageLogsNew::createWidget - End";
}
void SetupPageLogsNew::slotOperatorsTextChanged()
@ -176,7 +175,6 @@ void SetupPageLogsNew::slotStationCallSignTextChanged()
return;
}
int cursorP = stationCallsignLineEdit->cursorPosition();
QString currentQrz = util->getClearSQLi (stationCallsignLineEdit->text());
@ -202,7 +200,6 @@ void SetupPageLogsNew::slotStationCallSignTextChanged()
void SetupPageLogsNew::slotOKButtonClicked()
{
//qDebug() << "SetupPageLogsNew::slotOkButtonClicked";
stationCallsign = stationCallsignLineEdit->text();
if (stationCallsign.length()<3)
@ -283,7 +280,6 @@ void SetupPageLogsNew::gatherAndSend()
//qDebug() << "SetupPageLogsNew::gatherAndSend: EMITED";
emit newLogData(logData);
}
void SetupPageLogsNew::slotCancelButtonClicked()
@ -335,7 +331,6 @@ void SetupPageLogsNew::setDateString(const QString &_st)
{
dateString = _st;
dateEdit->setDate(QDate::fromString(dateString, "yyyy-MM-dd"));
}
/*
@ -469,7 +464,6 @@ void SetupPageLogsNew::showOK()
//validCats->setText(tr("Data OK"));
//validCats->setStyleSheet("QLabel {color : black; }");
okButton->setEnabled(true);
}
void SetupPageLogsNew::showNOK()

View File

@ -154,7 +154,6 @@ void SetupPageLogView::saveSettings()
void SetupPageLogView::loadSettings()
{
//qDebug() << Q_FUNC_INFO << " - Start";
Utilities util(Q_FUNC_INFO);
QSettings settings(util.getCfgFile (), QSettings::IniFormat);

View File

@ -240,8 +240,8 @@ QString SetupPageMisc::getSendEQSLByDefault()
return util->boolToQString(sendEQSLByDefaultSearchCheckBox->isChecked());
}
void SetupPageMisc::setSetEQSLByDefault(const QString &_t){
void SetupPageMisc::setSetEQSLByDefault(const QString &_t)
{
sendEQSLByDefaultSearchCheckBox->setChecked(util->trueOrFalse(_t));
}

View File

@ -121,7 +121,6 @@ private:
QComboBox *debugLogLevelCombo;
//QWidget *bandsWidget;
};

View File

@ -100,12 +100,11 @@ SetupPageSats::SetupPageSats(DataProxy_SQLite *dp, QWidget *parent) : QWidget(pa
createActions();
updateSelectedSats();
//qDebug() << "SetupPageSats::SetupPageSats - END";
}
SetupPageSats::~SetupPageSats(){
SetupPageSats::~SetupPageSats()
{
//qDebug() << "SetupPageSats::~SetupPageSats";
delete(util);
delete(newSat);
@ -217,14 +216,12 @@ void SetupPageSats::slotRemoveButtonClicked()
QMessageBox::Yes | QMessageBox::No);
if (ret == QMessageBox::Yes)
{
QString stringQuery = QString("DELETE FROM satellites WHERE id='%1'").arg(selectedSat);
QSqlQuery query(stringQuery);
bool sqlOk = query.exec();
if (sqlOk)
{
satsModel->select();
updateSelectedSats();
stringQuery = QString("DELETE FROM log WHERE lognumber='%1'").arg(selectedSat);
@ -233,7 +230,6 @@ void SetupPageSats::slotRemoveButtonClicked()
//qDebug() << "SetupPageSats::slotRemoveButtonClicked: LastQuery: " << query.lastQuery() ;
if (sqlOk)
{
stringQuery = QString("DELETE FROM awarddxcc WHERE lognumber='%2'").arg(selectedSat);
query.exec(stringQuery);
sqlOk = query.exec();
@ -248,7 +244,6 @@ void SetupPageSats::slotRemoveButtonClicked()
showError(tr("Sat has not been removed. (#3)"));
//qDebug() << "SetupPageSats::slotRemoveButtonClicked (AWARDDXCC NOT REMOVED: " << QString::number(selectedSat) << ")";
}
}
else
{
@ -263,11 +258,8 @@ void SetupPageSats::slotRemoveButtonClicked()
//qDebug() << "SetupPageSats::slotRemoveButtonClicked (NOT REMOVED: " << QString::number(selectedSat) << ")";
}
}
//ASK FOR A CONFIRMATION
//DELETE ALL THE QSO IN THE REMOVED Sat
}
void SetupPageSats::createSatsPanel()
@ -301,7 +293,6 @@ void SetupPageSats::createSatsPanel()
satsView->setSelectionBehavior(QAbstractItemView::SelectRows);
satsView->resizeColumnsToContents();
satsView->horizontalHeader()->setStretchLastSection(true);
}
void SetupPageSats::createSatsModel()
@ -344,7 +335,6 @@ void SetupPageSats::slotSatselected(const QModelIndex & index)
//qDebug() << "SetupPageSats::slotSatselected" ;
int row = index.row();
setSelectedSat((satsModel->index(row, 0)).data(0).toInt());
}
void SetupPageSats::slotSatDoubleClicked(const QModelIndex & index)
@ -354,7 +344,6 @@ void SetupPageSats::slotSatDoubleClicked(const QModelIndex & index)
int row = index.row();
setSelectedSat((satsModel->index(row, 0)).data(0).toInt());
slotEditButtonClicked();
}
void SetupPageSats::slotAnalyzeNewSatData(const QStringList _qs)
{
@ -378,7 +367,6 @@ void SetupPageSats::createActions()
//loadAllPushButton->setToolTip(tr("Load all the Sats"));
//loadSelectedPushButton->setToolTip(tr("Load only the selected Sat"));
//clearPushButton->setToolTip(tr("Clear selection"));
}
/*
@ -451,7 +439,6 @@ void SetupPageSats::updateSelectedSats()
QStringList SetupPageSats::readSats()
{
//qDebug() << "SetupPageSats::readSats";
QString aux, aux2;
QStringList _sats;
QSqlQuery query;
@ -507,12 +494,6 @@ QStringList SetupPageSats::readSats()
emit queryError(Q_FUNC_INFO, query.lastError().databaseText(), query.lastError().nativeErrorCode(), query.lastQuery());
return _sats;
}
//_sats.clear();
//qDebug() << "SetupPageSats::readSats: " << QString::number(_sats.size())<< QT_ENDL;
//return _sats;
}
int SetupPageSats::getSelectedSat()
@ -553,11 +534,6 @@ void SetupPageSats::setSelectedSat(const int _i)
}
}
//void SetupPageSats::readSelectedSat(const int _i)
//{
//}
void SetupPageSats::showError(const QString &_errorC)
{
QString text = QString(tr("An error has occurred showing the following error code:") + "\n'%1'").arg(_errorC);
@ -566,13 +542,11 @@ void SetupPageSats::showError(const QString &_errorC)
QMessageBox::warning(this, tr("KLog - SetupPageSats"),
text,
QMessageBox::Ok);
}
void SetupPageSats::slotImportButtonClicked()
{
//qDebug() << "SetupPageSats::slotImportButtonClicked";
QString fileName = QFileDialog::getOpenFileName(this, tr("Open Satellites File"),
util->getHomeDir(),
"SATS (*.dat)");
@ -584,7 +558,6 @@ void SetupPageSats::slotImportButtonClicked()
UpdateSatsData *updateSat = new UpdateSatsData(dataProxy, this);
if (updateSat->satDataFileRead(fileName))
{
//qDebug() << "SetupPageSats::slotImportButtonClicked IMPORTED OK";
}
else
@ -609,11 +582,9 @@ void SetupPageSats::slotImportButtonClicked()
// should never be reached
break;
}
}
satsModel->select();
updateSelectedSats();
}
void SetupPageSats::slotExportButtonClicked()
@ -648,7 +619,6 @@ void SetupPageSats::slotExportButtonClicked()
{
return;
}
}
else
{
@ -663,7 +633,6 @@ void SetupPageSats::slotExportButtonClicked()
if (sqlOk)
{
QString fileName = QFileDialog::getSaveFileName(this, tr("Save Satellites File"),
util->getHomeDir(),
"SATS (*.dat)");
@ -704,12 +673,10 @@ void SetupPageSats::slotExportButtonClicked()
out << satText;
//satText.clear();
}
}
else
{
emit queryError(Q_FUNC_INFO, query.lastError().databaseText(), query.lastError().nativeErrorCode(), query.lastQuery());
}
//qDebug() << "SetupPageSats::slotExportButtonClicked END";
}

View File

@ -89,7 +89,6 @@ void SetupPageSatsNew::clear()
uplinkLineEdit->clear();
downlinkLineEdit->clear();
modesLineEdit->clear();
}
void SetupPageSatsNew::createUI()
@ -149,7 +148,6 @@ void SetupPageSatsNew::createUI()
setLayout(mainLayout);
clear();
}
void SetupPageSatsNew::slotShortNameTextChanged()
@ -180,7 +178,6 @@ void SetupPageSatsNew::slotNameTextChanged()
{
hasName = false;
}
nameLineEdit->setCursorPosition(cursorP);
}
@ -227,7 +224,6 @@ bool SetupPageSatsNew::isItAFreq(const QString &_st)
bool ok = false;
double freq = _st.toDouble(&ok);
return ((freq>=0.0) && (ok));
}
void SetupPageSatsNew::slotDownLinkTextChanged()
@ -263,7 +259,6 @@ void SetupPageSatsNew::slotDownLinkTextChanged()
}
}
}
}
void SetupPageSatsNew::slotModesTextChanged()
@ -314,7 +309,6 @@ void SetupPageSatsNew::slotModesTextChanged()
hasModes = false;
}
}
}
else
{
@ -363,7 +357,6 @@ void SetupPageSatsNew::setModes(const QString st)
void SetupPageSatsNew::slotOKButtonClicked()
{
//qDebug() << "SetupPageSatsNew::slotOkButtonClicked";
shortName = shortNameLineEdit->text();
name = nameLineEdit->text();
@ -373,7 +366,6 @@ void SetupPageSatsNew::slotOKButtonClicked()
if (hasShortName && hasName && (hasUplink || hasDownlink) && hasModes)
{
gatherAndSend();
editing = false;
close();
@ -457,6 +449,5 @@ void SetupPageSatsNew::setEditing(const bool b)
{
clear();
}
}

View File

@ -70,10 +70,7 @@ SetupPageSubdivisionNew::SetupPageSubdivisionNew(DataProxy_SQLite *dp, QWidget *
okButton = new QPushButton(tr("&Ok"), this);
cancelButton = new QPushButton(tr("&Cancel"), this);
createWidget();
okButton->setEnabled(false);
//qDebug() << "SetupPageSubdivisionNew::SetupPageSubdivisionNew - END" ;
}
@ -272,10 +269,8 @@ void SetupPageSubdivisionNew::createWidget()
clear();
//page->setLayout(callsLayout);
//qDebug() << "SetupPageSubdivisionNew::createWidget - End";
}
void SetupPageSubdivisionNew::slotOperatorsTextChanged()
{
//qDebug() << "SetupPageSubdivisionNew::slotOperatorsTextChanged - Start";
@ -548,7 +543,6 @@ void SetupPageSubdivisionNew::slotCatModeComboBoxChanged()
*/
void SetupPageSubdivisionNew::slotOKButtonClicked()
{
//qDebug() << "SetupPageSubdivisionNew::slotOkButtonClicked";
stationCallsign = stationCallsignLineEdit->text();
if (stationCallsign.length()<3)
@ -694,7 +688,6 @@ void SetupPageSubdivisionNew::slotOKButtonClicked()
}
*/
}
void SetupPageSubdivisionNew::gatherAndSend()
@ -738,13 +731,11 @@ void SetupPageSubdivisionNew::gatherAndSend()
logData << "0";
}
//logData << QString::number(typeContest)
// Update the SetupPageLogs::slotAnalyzeNewLogData if you add or remove any field (Today 12)
//qDebug() << "SetupPageSubdivisionNew::gatherAndSend: EMITED";
emit newLogData(logData);
}
void SetupPageSubdivisionNew::slotCancelButtonClicked()
@ -796,7 +787,6 @@ void SetupPageSubdivisionNew::setDateString(const QString &_st)
{
dateString = _st;
dateEdit->setDate(QDate::fromString(dateString, "yyyy-MM-dd"));
}
/*
@ -930,7 +920,6 @@ void SetupPageSubdivisionNew::showOK()
//validCats->setText(tr("Data OK"));
//validCats->setStyleSheet("QLabel {color : black; }");
okButton->setEnabled(true);
}
void SetupPageSubdivisionNew::showNOK()

View File

@ -158,7 +158,6 @@ void SetupPageSubdivisions::slotRemoveButtonClicked()
showError(tr("Log has not been removed. (#3)"));
//qDebug() << "SetupPageSubdivisions::slotRemoveButtonClicked (AWARDDXCC NOT REMOVED: " << QString::number(selectedLog) << ")";
}
}
else
{
@ -177,7 +176,6 @@ void SetupPageSubdivisions::slotRemoveButtonClicked()
//ASK FOR A CONFIRMATION
//DELETE ALL THE QSO IN THE REMOVED LOG
}
void SetupPageSubdivisions::createLogsPanel()
@ -202,7 +200,6 @@ void SetupPageSubdivisions::createLogsPanel()
logsView->setSelectionBehavior(QAbstractItemView::SelectRows);
logsView->resizeColumnsToContents();
logsView->horizontalHeader()->setStretchLastSection(true);
}
void SetupPageSubdivisions::createLogsModel()
@ -282,7 +279,7 @@ QStringList SetupPageSubdivisions::readLogs()
_logs.clear();
aux = "SELECT DISTINCT dxcc from primary_subdivisions";
int counter = 0;
/int counter = 0;
sqlOk = query.exec(aux);
if (sqlOk)
{
@ -290,7 +287,7 @@ QStringList SetupPageSubdivisions::readLogs()
while ( (query.next()) && (query.isValid()) )
{
counter ++;
//counter ++;
aux2.clear();
nameCol = rec.indexOf("dxcc");
@ -299,7 +296,6 @@ QStringList SetupPageSubdivisions::readLogs()
//aux2.append((query.value(nameCol)).toString());
_logs.append(aux2);
}
return _logs;
}
@ -308,8 +304,6 @@ QStringList SetupPageSubdivisions::readLogs()
emit queryError(Q_FUNC_INFO, query.lastError().databaseText(), query.lastError().nativeErrorCode(), query.lastQuery());
return _logs;
}
}
@ -358,8 +352,6 @@ void SetupPageSubdivisions::slotCurrentLogsComboBoxChanged()
//qDebug() << "SetupPageSubdivisions::slotCurrentLogsComboBoxChanged: a: " << a;
setSelectedLog(a.toInt());
}
void SetupPageSubdivisions::setSelectedLog(const int _i)
@ -389,7 +381,6 @@ void SetupPageSubdivisions::showError(const QString &_errorC)
QMessageBox::warning(this, tr("KLog - SetupPageSubdivisions"),
text,
QMessageBox::Ok);
}
void SetupPageSubdivisions::slotImportButtonClicked()
@ -404,6 +395,5 @@ void SetupPageSubdivisions::slotImportButtonClicked()
//qDebug() << "SetupPageSubdivisions::slotImportButtonClicked - NOK";
}
//QString fileName = QFileDialog::getOpenFileName(this, tr("Open Award file"), util->getHomeDir(), tr("Award files (*.awa)"));
//qDebug() << "SetupPageSubdivisions::slotImportButtonClicked - END";
}

View File

@ -52,14 +52,14 @@ SetupPageUDP::SetupPageUDP(QWidget *parent) : QWidget(parent)
//qDebug() << "SetupPageUDP::SetupPageUDP - END";
}
SetupPageUDP::~SetupPageUDP(){
SetupPageUDP::~SetupPageUDP()
{
delete(util);
//qDebug() << "SetupPageUDP::~SetupPageUDP";
}
void SetupPageUDP::createUI()
{
QString msgAuto = QString(tr("Automatically log QSOs from WSJT-X"));
logFromWSJTXCheckbox->setText(tr("Allow WSJT-X to send logged QSOs to KLog"));
logFromWSJTXCheckbox->setToolTip(tr("QSOs logged in WSJT-X will be sent to KLog and KLog will ask before logging into KLog unless \"%1\" is selected").arg(msgAuto));
@ -146,7 +146,6 @@ void SetupPageUDP::createActions()
//connect(logAutomaticallyWSJTXCheckbox, SIGNAL(clicked () ), this, SLOT(slotAutoLogFromWSJTCheckBoxClicked() ) );
//connect(realDataFromWSJTXCheckbox, SIGNAL(clicked () ), this, SLOT(slotRealFromWSJTCheckBoxClicked() ) );
connect(UDPServerCheckBox, SIGNAL(clicked()), this, SLOT(slotUDPServerCheckBoxClicked() ) );
}
void SetupPageUDP::slotUDPServerCheckBoxClicked()
@ -195,7 +194,6 @@ void SetupPageUDP::fillNetworkInterfaceComboBox()
}
interfacesNames.insert(0, loopBack.humanReadableName());
networkInterfacesComboBox->addItems(interfacesNames);
}
void SetupPageUDP::slotLogFromWSJTCheckBoxClicked()

View File

@ -552,7 +552,6 @@ QStringList SetupPageUserDataPage::getRigs()
a.clear();
a << rig1LineEdit->text() << rig2LineEdit->text() << rig3LineEdit->text();
return a;
}
QStringList SetupPageUserDataPage::getAntennas()

View File

@ -163,7 +163,6 @@ private:
bool mainCallOK;
bool slotQRZRunning;
Utilities *util;
};

View File

@ -137,7 +137,6 @@ SetupPageWorldEditor::~SetupPageWorldEditor()
void SetupPageWorldEditor::createWorldPanel()
{
worldView->setModel(worldModel);
QString stringQuery = QString("SELECT * FROM entity");
QSqlQuery query(stringQuery);
@ -179,7 +178,6 @@ void SetupPageWorldEditor::createWorldPanel()
worldView->setSelectionBehavior(QAbstractItemView::SelectRows);
worldView->resizeColumnsToContents();
worldView->horizontalHeader()->setStretchLastSection(true);
}
void SetupPageWorldEditor::createWorldModel()
@ -253,7 +251,6 @@ void SetupPageWorldEditor::createActions()
//SIGNAL received from the setupEntityDialog
// void entityAdded(const QStringList _qs); // entity
connect(setupEntityDialog, SIGNAL(entityAdded(QStringList)), this, SLOT(slotAnalyzeEntityAddedSignal(QStringList) ) );
}
void SetupPageWorldEditor::slotAnalyzeEntityAddedSignal(const QStringList _qs)
@ -335,7 +332,6 @@ void SetupPageWorldEditor::slotImportWorldButtonClicked()
if (world->recreate(worldFile) )
{
msgBox.setIcon(QMessageBox::Information);
msgBox.setText(tr("Entities information has been updated."));
worldModel->select();
@ -345,8 +341,6 @@ void SetupPageWorldEditor::slotImportWorldButtonClicked()
msgBox.setIcon(QMessageBox::Warning);
msgBox.setText(tr("Entities information has not been updated."));
}
msgBox.exec();
//qDebug() << "SetupPageWorldEditor::slotImportWorldButtonClicked - END";
}

View File

@ -68,7 +68,6 @@
setWindowTitle(tr("KLog - The free hamradio logging program"));
//qDebug() << "StartWizard::StartWizard: - END";
}
void StartWizard::setVersion(const QString &tversion)
@ -141,7 +140,6 @@
IntroPage::IntroPage(QWidget *parent)
: QWizardPage(parent)
{
setTitle(tr("Welcome to KLog!"));
topLabel = new QLabel(tr("Welcome to KLog! "
@ -171,7 +169,6 @@
layout->addWidget(welcomeBrowser);
setLayout(layout);
}
int IntroPage::nextId() const
@ -987,9 +984,6 @@ void CTYPage::slotIgnoreDownloadButtonClicked()
slotStopProgressBar();
hiddenCheckBox->setChecked(true);
progressBar->setEnabled(false);
//completed = true;
}
void CTYPage::slotDownloadFinished(const int ret)
@ -1012,8 +1006,6 @@ void CTYPage::slotDownloadFinished(const int ret)
{
//qDebug() << "CTYPage::slotDownloadFinished: (another result): " << QString::number(ret);
}
}
void CTYPage::slotDownloadError(const int ret)

View File

@ -184,7 +184,6 @@ void StatisticsWidget::updateChart()
//qDebug() << Q_FUNC_INFO << "90";
w9->prepareChart (log);
stackedWidget->setCurrentWidget (w9);
}
break;
case 10:
@ -199,7 +198,6 @@ void StatisticsWidget::updateChart()
//qDebug() << Q_FUNC_INFO << "110";
w11->prepareChart (log);
stackedWidget->setCurrentWidget (w11);
}
break;
case 12:
@ -221,7 +219,6 @@ void StatisticsWidget::updateChart()
//qDebug() << Q_FUNC_INFO << "140";
w14->prepareChart (log);
stackedWidget->setCurrentWidget (w14);
}
break;
case 15:
@ -247,8 +244,6 @@ void StatisticsWidget::updateChart()
void StatisticsWidget::createUI()
{
//qDebug() << Q_FUNC_INFO << "Start";
stackedWidget->addWidget(w1);
stackedWidget->addWidget(w2);
stackedWidget->addWidget(w3);

View File

@ -126,8 +126,8 @@ void TipsDialog::setLogLevel(const DebugLogLevel _sev)
void TipsDialog::setTip(const int _t)
{
logEvent(Q_FUNC_INFO, "Start", Debug);
switch (_t) {
switch (_t)
{
case 1:
//: Translator: Please make sure that the name of the link is coherent with the menu Tools->Fill in QSO data
description = tr("<b>Tip #1:</b><br>Do you know...<br>You can use <a href=\"#ToolsFillInQSO\">Tools->Fill in QSO data</a> to automatically read the full log to fill the DXCC, CQ, ITU zones and continent?");

View File

@ -112,7 +112,6 @@ bool UDPServer::startNow(quint16 _port, QHostAddress const& _multicast_group_add
{
port = _port;
joinMultiCastGroup();
}
else
{
@ -147,7 +146,6 @@ void UDPServer::joinMultiCastGroup()
{
//qDebug() << "UDPServer::joinMultiCastGroup socket valid";
}
}
bool joined {false};

View File

@ -81,7 +81,6 @@ bool UpdateSatsData::satDataFileRead(const QString& tfileName)
errorFound = false;
hasEOH = true;
pos = file.pos();
}
}

View File

@ -94,7 +94,6 @@ void AdifLoTWExportWidget::createUI()
endDate->setCalendarPopup (true);
startDate->clear();
startDate->setToolTip(tr("Select the start date to export the QSOs. The default date is the date of the first QSO with this station callsign."));
endDate->clear();
//endDate->setDate(QDate::currentDate());

View File

@ -128,10 +128,8 @@ void ShowAdifImportWidget::addQSO(const QStringList &_qso)
newItemID->setFlags(Qt::NoItemFlags);
tableWidget->setItem(tableWidget->rowCount()-1, i, newItemID);
}
//QTableWidgetItem *newItem = new QTableWidgetItem(tr("%1").arg(pow(row, column+1)));
//tableWidget->setItem(row, column, newItem);
}
//qDebug() << "ShowAdifImportWidget::addQSO: - END" ;

View File

@ -53,10 +53,7 @@ tst_Adif::tst_Adif()
adif = new Adif(Q_FUNC_INFO);
}
tst_Adif::~tst_Adif()
{
}
tst_Adif::~tst_Adif(){}
void tst_Adif::initTestCase()
{
@ -68,7 +65,6 @@ void tst_Adif::cleanupTestCase()
//qDebug("Called after last test.");
}
void tst_Adif::test_getADIFField()
{ //QString Utilities::getADIFField(const QString &_fieldName, const QString &_data)
QVERIFY2(adif->getADIFField("CALL", "EA4K")=="<CALL:4>EA4K ", "Call");

View File

@ -1,346 +0,0 @@
/***************************************************************************
tst_adifforfield.cpp - description
-------------------
begin : Oct 2021
copyright : (C) 2021 by Jaime Robles
email : jaime@robles.es
***************************************************************************/
/****************************************************************************
* This file is part of Testing suite of KLog. *
* *
* KLog is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* The testing suite of KLog is distributed in the hope that it will *
* be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with Testing suite of KLog. *
* If not, see <https://www.gnu.org/licenses/>. *
* *
*****************************************************************************/
#include <QtTest>
#include "../../src/utilities.h"
#include "../../src/locator.h"
#include "../../src/klogdefinitions.h"
#include "../../src/adifforfield.h"
class tst_ADIFForField : public QObject
{
Q_OBJECT
public:
tst_ADIFForField();
~tst_ADIFForField();
private slots:
void initTestCase();
void cleanupTestCase();
void test_Constructor();
void test_getADIFForQSODate();
void test_getADIFForCall();
void test_getADIFForRSTSent();
void test_getADIFForRSTRcvd();
void test_getADIFForBand();
void test_getADIFForMode();
void test_getADIFForSubMode();
void test_getADIFForCQz();
void test_getADIFForITUz();
void test_getADIFForDXCC();
void test_getADIFForAddress();
void test_getADIFForAge();
void test_getADIFForCNTY();
void test_getADIFForComment();
void test_getADIFForA_Index();
void test_getADIFForAnt_az();
void test_getADIFForAnt_el();
void test_getADIFForAnt_path();
void test_getADIFForARRL_sect();
void test_getADIFForGridSquare();
void test_getADIFForMyGridSquare();
void test_getADIFForQSODateOff();
void test_getADIFForFreq();
void test_getADIFForStationCallsign();
void test_getADIFForBandRX();
void test_getADIFForFreq_rx();
void test_getADIFForQSLRdate();
void test_getADIFForQSLSDate();
void test_getADIFForQSLRcvd();
void test_getADIFForQSLSent();
private:
ADIFForField *adifForField;
};
tst_ADIFForField::tst_ADIFForField()
{
//util = new Utilities;
adifForField = new ADIFForField();
}
tst_ADIFForField::~tst_ADIFForField()
{
}
void tst_ADIFForField::initTestCase()
{
}
void tst_ADIFForField::cleanupTestCase()
{
}
void tst_ADIFForField::test_Constructor()
{
//QVERIFY(util->getVersion() == "0.0");
}
void tst_ADIFForField::test_getADIFForQSODate()
{
//yyyy-MM-dd hh:mm:ss
//qDebug() << adifForField->getADIFForQSODate ("2021-10-17 12:52:12");
QVERIFY2(adifForField->getADIFForQSODate ("2021-10-17 12:52:12") == "<QSO_DATE:8>20211017 <TIME_ON:6>125212 ", "Date not properly exported");
QVERIFY2(adifForField->getADIFForQSODate ("2021-10-17 12:52:12", ModeEQSL) == "<QSO_DATE:8>20211017 <TIME_ON:4>1252 ", "Date not properly exported - EM");
QVERIFY2(adifForField->getADIFForQSODate ("BAD date") == QString(), "Bad Date not properly exported");
QVERIFY2(adifForField->getADIFForQSODate ("BAD date", ModeEQSL) == QString(), "Bad Date not properly exported - EM");
}
void tst_ADIFForField::test_getADIFForCall()
{
QVERIFY2(adifForField->getADIFForCall ("EA4K") == "<CALL:4>EA4K ", "Call not properly exported");
QVERIFY2(adifForField->getADIFForCall (QString()) == QString(), "Empty call not properly exported");
}
void tst_ADIFForField::test_getADIFForRSTSent()
{
QVERIFY2(adifForField->getADIFForRSTSent ("599") == "<RST_SENT:3>599 ", "RSTSent not properly exported");
QVERIFY2(adifForField->getADIFForRSTSent ("59") == "<RST_SENT:2>59 ", "RSTSent not properly exported");
QVERIFY2(adifForField->getADIFForRSTSent (QString()) == QString(), "Empty RSTSent not properly exported");
}
void tst_ADIFForField::test_getADIFForRSTRcvd()
{
QVERIFY2(adifForField->getADIFForRSTRcvd ("599") == "<RST_RCVD:3>599 ", "RSTRcvd not properly exported");
QVERIFY2(adifForField->getADIFForRSTRcvd ("59") == "<RST_RCVD:2>59 ", "RSTRcvd not properly exported");
QVERIFY2(adifForField->getADIFForRSTRcvd (QString()) == QString(), "Empty RSTSent not properly exported");
}
void tst_ADIFForField::test_getADIFForBand()
{
QVERIFY2(adifForField->getADIFForBand ("40M") == "<BAND:3>40M ", "Band not properly exported 40M");
QVERIFY2(adifForField->getADIFForBand ("2M") == "<BAND:2>2M ", "Band not properly exported 2M");
QVERIFY2(adifForField->getADIFForBand (QString()) == QString(), "Empty Band not properly exported");
}
void tst_ADIFForField::test_getADIFForBandRX()
{
QVERIFY2(adifForField->getADIFForBandRX ("40M") == "<BAND_RX:3>40M ", "Band_RX not properly exported 40M");
QVERIFY2(adifForField->getADIFForBandRX ("2M") == "<BAND_RX:2>2M ", "Band_RX not properly exported 2M");
QVERIFY2(adifForField->getADIFForBandRX (QString()) == QString(), "Empty Band_RX not properly exported");
}
void tst_ADIFForField::test_getADIFForMode()
{
QVERIFY2(adifForField->getADIFForMode ("SSB") == "<MODE:3>SSB ", "Band not properly exported SSB");
QVERIFY2(adifForField->getADIFForMode ("CW") == "<MODE:2>CW ", "Band not properly exported CW");
QVERIFY2(adifForField->getADIFForMode (QString()) == QString(), "Empty Band not properly exported");
}
void tst_ADIFForField::test_getADIFForSubMode()
{
QVERIFY2(adifForField->getADIFForSubMode ("USB") == "<SUBMODE:3>USB ", "Band not properly exported SSB");
QVERIFY2(adifForField->getADIFForSubMode ("OLIVIA 4/125") == "<SUBMODE:12>OLIVIA 4/125 ", "Band not properly exported CW");
QVERIFY2(adifForField->getADIFForSubMode (QString()) == QString(), "Empty Band not properly exported");
}
void tst_ADIFForField::test_getADIFForCQz()
{
QVERIFY2(adifForField->getADIFForCQz ("14") == "<CQZ:2>14 ", "CQz not properly exported 14");
QVERIFY2(adifForField->getADIFForCQz ("50") == QString(), "Bad CQz not properly exported 50");
QVERIFY2(adifForField->getADIFForCQz ("CW") == QString(), "Bad CQ not properly exported CW");
QVERIFY2(adifForField->getADIFForCQz (QString()) == QString(), "Empty CQ not properly exported");
}
void tst_ADIFForField::test_getADIFForITUz()
{
QVERIFY2(adifForField->getADIFForITUz ("37") == "<ITUZ:2>37 ", "ITUz not properly exported 37");
QVERIFY2(adifForField->getADIFForITUz ("97") == QString(), "Bad ITUz not properly exported 50");
QVERIFY2(adifForField->getADIFForITUz ("CW") == QString(), "Bad String ITUz not properly exported CW");
QVERIFY2(adifForField->getADIFForITUz (QString()) == QString(), "Empty ITUz not properly exported");
}
void tst_ADIFForField::test_getADIFForDXCC()
{
QVERIFY2(adifForField->getADIFForDXCC ("37") == "<DXCC:2>37 ", "DXCC not properly exported 37");
QVERIFY2(adifForField->getADIFForDXCC ("1234") == QString(), "Bad DXCC not properly exported 1234");
QVERIFY2(adifForField->getADIFForDXCC ("CW") == QString(), "Bad String DXCC not properly exported CW");
QVERIFY2(adifForField->getADIFForDXCC (QString()) == QString(), "Empty DXCC not properly exported");
}
void tst_ADIFForField::test_getADIFForAddress()
{
QVERIFY2(adifForField->getADIFForAddress ("My address") == "<ADDRESS:10>My address ", "DXCC not properly exported 37");
QVERIFY2(adifForField->getADIFForAddress (QString()) == QString(), "Empty ADDRESS not properly exported");
}
void tst_ADIFForField::test_getADIFForAge()
{
QVERIFY2(adifForField->getADIFForAge ("37") == "<AGE:2>37 ", "Age not properly exported 37");
QVERIFY2(adifForField->getADIFForAge ("500") == QString(), "Bad Age not properly exported 500");
QVERIFY2(adifForField->getADIFForAge ("CW") == QString(), "Bad String Age not properly exported CW");
QVERIFY2(adifForField->getADIFForAge (QString()) == QString(), "Empty Age not properly exported");
}
void tst_ADIFForField::test_getADIFForCNTY()
{
QVERIFY2(adifForField->getADIFForCNTY ("AK,Aleutians East") == "<CNTY:17>AK,Aleutians East ", "CNTY not properly exported 37");
QVERIFY2(adifForField->getADIFForCNTY (QString()) == QString(), "Empty CNTY not properly exported");
}
void tst_ADIFForField::test_getADIFForComment()
{
QVERIFY2(adifForField->getADIFForComment ("My comment") == "<COMMENT:10>My comment ", "COMMENT not properly exported");
QVERIFY2(adifForField->getADIFForComment (QString()) == QString(), "Empty COMMENT not properly exported");
}
void tst_ADIFForField::test_getADIFForA_Index()
{
QVERIFY2(adifForField->getADIFForA_Index ("37") == "<A_INDEX:2>37 ", "A_Index not properly exported 37");
QVERIFY2(adifForField->getADIFForA_Index ("500") == QString(), "Bad A_Index not properly exported 500");
//qDebug() << Q_FUNC_INFO << ": " << adifForField->getADIFForA_Index ("CW");
QVERIFY2(adifForField->getADIFForA_Index ("CW") == QString(), "Bad String A_Index not properly exported CW");
QVERIFY2(adifForField->getADIFForA_Index (QString()) == QString(), "Empty A_Index not properly exported");
}
void tst_ADIFForField::test_getADIFForAnt_az()
{
QVERIFY2(adifForField->getADIFForAnt_az ("37") == "<ANT_AZ:2>37 ", "Ant_az not properly exported 37");
//QVERIFY2(adifForField->getADIFForAnt_az ("500") == QString(), "Bad Ant_az not properly exported 500");
QVERIFY2(adifForField->getADIFForAnt_az ("CW") == QString(), "Bad String Ant_az not properly exported CW");
QVERIFY2(adifForField->getADIFForAnt_az (QString()) == QString(), "Empty Ant_az not properly exported");
}
void tst_ADIFForField::test_getADIFForAnt_el()
{
QVERIFY2(adifForField->getADIFForAnt_el ("37") == "<ANT_EL:2>37 ", "Ant_el not properly exported 37");
//QVERIFY2(adifForField->getADIFForAnt_el ("500") == QString(), "Bad Ant_el not properly exported 500");
QVERIFY2(adifForField->getADIFForAnt_el ("CW") == QString(), "Bad String Ant_el not properly exported CW");
QVERIFY2(adifForField->getADIFForAnt_el (QString()) == QString(), "Empty Ant_el not properly exported");
}
void tst_ADIFForField::test_getADIFForAnt_path()
{
QVERIFY2(adifForField->getADIFForAnt_path ("G") == "<ANT_PATH:1>G ", "Ant_Path not properly exported G");
QVERIFY2(adifForField->getADIFForAnt_path ("O") == "<ANT_PATH:1>O ", "Ant_Path not properly exported O");
QVERIFY2(adifForField->getADIFForAnt_path ("S") == "<ANT_PATH:1>S ", "Ant_Path not properly exported S");
QVERIFY2(adifForField->getADIFForAnt_path ("L") == "<ANT_PATH:1>L ", "Ant_Path not properly exported L");
QVERIFY2(adifForField->getADIFForAnt_path ("T") == QString(), "Bad Ant_Path not properly exported T");
QVERIFY2(adifForField->getADIFForAnt_path ("CW") == QString(), "Bad String Ant_Path not properly exported CW");
QVERIFY2(adifForField->getADIFForAnt_path (QString()) == QString(), "Empty Ant_Path not properly exported");
}
void tst_ADIFForField::test_getADIFForARRL_sect()
{
QVERIFY2(adifForField->getADIFForARRL_sect("AL") == "<ARRL_SECT:2>AL ", "ARRL_SECT not properly exported AL");
QVERIFY2(adifForField->getADIFForAnt_path (QString()) == QString(), "Empty ARRL_SECT not properly exported");
}
void tst_ADIFForField::test_getADIFForGridSquare()
{
//qDebug() << Q_FUNC_INFO << ": " << adifForField->getADIFForGridSquare ("IN80");
QVERIFY2(adifForField->getADIFForGridSquare ("IN80") == "<GRIDSQUARE:4>IN80 ", "GRIDSQUARE not properly exported IN80");
QVERIFY2(adifForField->getADIFForGridSquare ("IN80AA") == "<GRIDSQUARE:6>IN80AA ", "GRIDSQUARE not properly exported IN80AA");
QVERIFY2(adifForField->getADIFForGridSquare ("EEE") == QString(), "Bad GRIDSQUARE not properly exported IN80");
QVERIFY2(adifForField->getADIFForGridSquare (QString()) == QString(), "Empty GRIDSQUARE not properly exported");
}
void tst_ADIFForField::test_getADIFForMyGridSquare()
{
QVERIFY2(adifForField->getADIFForMyGridSquare ("IN80") == "<MY_GRIDSQUARE:4>IN80 ", "MY_GRIDSQUARE not properly exported IN80");
QVERIFY2(adifForField->getADIFForMyGridSquare ("IN80AA") == "<MY_GRIDSQUARE:6>IN80AA ", "MY_GRIDSQUARE not properly exported IN80AA");
QVERIFY2(adifForField->getADIFForMyGridSquare ("EEE") == QString(), "Bad MY_GRIDSQUARE not properly exported IN80");
QVERIFY2(adifForField->getADIFForMyGridSquare (QString()) == QString(), "Empty MY_GRIDSQUARE not properly exported");
}
void tst_ADIFForField::test_getADIFForQSODateOff()
{
//qDebug() << adifForField->getADIFForQSODateOff ("2021-10-17 12:52:12");
QVERIFY2(adifForField->getADIFForQSODateOff ("2021-10-17 12:52:12") == "<QSO_DATE_OFF:8>20211017 <TIME_OFF:6>125212 ", "Date not properly exported");
QVERIFY2(adifForField->getADIFForQSODateOff ("2021-10-17 12:52:12", ModeEQSL) == "<QSO_DATE_OFF:8>20211017 <TIME_OFF:4>1252 ", "Date not properly exported - EM");
QVERIFY2(adifForField->getADIFForQSODateOff ("BAD date") == QString(), "Bad Date_off not properly exported");
QVERIFY2(adifForField->getADIFForQSODateOff ("BAD date", ModeEQSL) == QString(), "Bad Date_off not properly exported - EM");
}
void tst_ADIFForField::test_getADIFForFreq()
{
QVERIFY2(adifForField->getADIFForFreq ("14") == "<FREQ:2>14 ", "FREQ not properly exported 14");
QVERIFY2(adifForField->getADIFForFreq ("14.195") == "<FREQ:6>14.195 ", "FREQ not properly exported 14.195");
QVERIFY2(adifForField->getADIFForFreq ("CW") == QString(), "Bad String FREQ not properly exported CW");
QVERIFY2(adifForField->getADIFForFreq (QString()) == QString(), "Empty FREQ not properly exported");
}
void tst_ADIFForField::test_getADIFForFreq_rx()
{
QVERIFY2(adifForField->getADIFForFreq_rx ("14") == "<FREQ_RX:2>14 ", "FREQ_RX not properly exported 14");
QVERIFY2(adifForField->getADIFForFreq_rx ("14.195") == "<FREQ_RX:6>14.195 ", "FREQ_RX not properly exported 14.195");
QVERIFY2(adifForField->getADIFForFreq_rx ("CW") == QString(), "Bad String FREQ_RX not properly exported CW");
QVERIFY2(adifForField->getADIFForFreq_rx (QString()) == QString(), "Empty FREQ_RX not properly exported");
}
void tst_ADIFForField::test_getADIFForStationCallsign()
{
QVERIFY2(adifForField->getADIFForStationCallsign ("EA4K") == "<STATION_CALLSIGN:4>EA4K ", "StationCallsign not properly exported");
QVERIFY2(adifForField->getADIFForStationCallsign(QString()) == QString(), "Empty StationCallsign not properly exported");
}
void tst_ADIFForField::test_getADIFForQSLRdate()
{
//qDebug() << Q_FUNC_INFO << ": " << adifForField->getADIFForQSLRDate ("2021-10-17");
QVERIFY2(adifForField->getADIFForQSLRDate ("2021-10-17") == "<QSLRDATE:8>20211017 ", "Date not properly exported");
QVERIFY2(adifForField->getADIFForQSLRDate ("BAD date") == QString(), "Bad QSLRDATE not properly exported");
QVERIFY2(adifForField->getADIFForQSLRDate(QString()) == QString(), "Empty QSLRDATE not properly exported");
}
void tst_ADIFForField::test_getADIFForQSLSDate()
{
QVERIFY2(adifForField->getADIFForQSLSDate ("2021-10-17") == "<QSLSDATE:8>20211017 ", "Date not properly exported");
QVERIFY2(adifForField->getADIFForQSLSDate ("BAD date") == QString(), "Bad QSLSDATE not properly exported");
QVERIFY2(adifForField->getADIFForQSLSDate(QString()) == QString(), "Empty QSLSDATE not properly exported");
}
void tst_ADIFForField::test_getADIFForQSLRcvd()
{
QVERIFY2(adifForField->getADIFForQSLRcvd ("Y") == "<QSL_RCVD:1>Y ", "QSL_RCVD not properly exported Y");
QVERIFY2(adifForField->getADIFForQSLRcvd ("N") == "<QSL_RCVD:1>N ", "QSL_RCVD not properly exported N");
QVERIFY2(adifForField->getADIFForQSLRcvd ("R") == "<QSL_RCVD:1>R ", "QSL_RCVD not properly exported R");
QVERIFY2(adifForField->getADIFForQSLRcvd ("I") == "<QSL_RCVD:1>I ", "QSL_RCVD not properly exported I");
QVERIFY2(adifForField->getADIFForQSLRcvd ("V") == QString(), "Bad QSL_RCVD not properly exported V");
QVERIFY2(adifForField->getADIFForQSLRcvd("H") == QString(), "Bad QSL_RCVD not properly exported H");
QVERIFY2(adifForField->getADIFForQSLRcvd ("CW") == QString(), "Bad String QSL_RCVD not properly exported CW");
QVERIFY2(adifForField->getADIFForQSLRcvd (QString()) == QString(), "Empty QSL_RCVD not properly exported");
}
void tst_ADIFForField::test_getADIFForQSLSent()
{
QVERIFY2(adifForField->getADIFForQSLSent("Y") == "<QSL_SENT:1>Y ", "QSL_SENT not properly exported Y");
QVERIFY2(adifForField->getADIFForQSLSent ("N") == "<QSL_SENT:1>N ", "QSL_SENT not properly exported N");
QVERIFY2(adifForField->getADIFForQSLSent ("R") == "<QSL_SENT:1>R ", "QSL_SENT not properly exported R");
QVERIFY2(adifForField->getADIFForQSLSent ("I") == "<QSL_SENT:1>I ", "QSL_SENT not properly exported I");
QVERIFY2(adifForField->getADIFForQSLSent ("Q") == "<QSL_SENT:1>Q ", "QSL_SENT not properly exported Q");
QVERIFY2(adifForField->getADIFForQSLSent("H") == QString(), "Bad QSL_SENT not properly exported H");
QVERIFY2(adifForField->getADIFForQSLSent ("CW") == QString(), "Bad String QSL_SENT not properly exported CW");
QVERIFY2(adifForField->getADIFForQSLSent (QString()) == QString(), "Empty QSL_SENT not properly exported");
}
QTEST_APPLESS_MAIN(tst_ADIFForField)
#include "tst_adifforfield.moc"

View File

@ -1,33 +0,0 @@
QT += testlib \
gui \
widgets
CONFIG += qt console warn_on depend_includepath testcase
CONFIG -= app_bundle
TEMPLATE = app
#QMAKE_CXXFLAGS += -Wall -Wextra -Werror
#QMAKE_CFLAGS += -Wall -Wextra -Werror
HEADERS += \
../../src/utilities.h \
../../src/klogdefinitions.h \
../../src/locator.h \
../../src/adifforfield.h
SOURCES += tst_adifforfield.cpp \
../../src/locator.cpp \
../../src/utilities.cpp \
../../src/adifforfield.cpp
isEmpty(QMAKE_LRELEASE) {
win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
unix {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt5 }
} else {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
}
}

View File

@ -55,20 +55,11 @@ tst_Locator::tst_Locator()
locator = new Locator;
}
tst_Locator::~tst_Locator()
{
tst_Locator::~tst_Locator(){}
}
void tst_Locator::initTestCase(){}
void tst_Locator::initTestCase()
{
}
void tst_Locator::cleanupTestCase()
{
}
void tst_Locator::cleanupTestCase(){}
void tst_Locator::test_Constructor()
{

View File

@ -61,7 +61,6 @@ private:
DataProxy_SQLite *dataProxy;
Utilities *util;
MainWindowInputQSO *mainWindowInputQSO;
};
tst_MainWindowInputQSO::tst_MainWindowInputQSO()
@ -72,10 +71,7 @@ tst_MainWindowInputQSO::tst_MainWindowInputQSO()
util = new Utilities(Q_FUNC_INFO);
}
tst_MainWindowInputQSO::~tst_MainWindowInputQSO()
{
}
tst_MainWindowInputQSO::~tst_MainWindowInputQSO(){}
void tst_MainWindowInputQSO::initTestCase()
{
@ -120,7 +116,6 @@ void tst_MainWindowInputQSO::test_WriteRead()
mainWindowInputQSO->setRXFreq (14.1);
QVERIFY2( util->isSameFreq (mainWindowInputQSO->getRXFreq (), 14.1), "Wrong RX Freq");
//qDebug() << Q_FUNC_INFO << " - END";
}
void tst_MainWindowInputQSO::test_RST2Modes ()
@ -167,11 +162,11 @@ qDebug() << Q_FUNC_INFO << " - Start";
mainWindowInputQSO->setRSTRX("57AAAA");
QVERIFY2(mainWindowInputQSO->getRSTRX ()== "57AA", "Wrong invalid RST RX - ELSE");
//qDebug() << Q_FUNC_INFO << ": ELSE Wrong RST: " << mainWindowInputQSO->getRSTRX () ;
}
void tst_MainWindowInputQSO::test_GridLineEdit()
{qDebug() << Q_FUNC_INFO << " - Start";
{
qDebug() << Q_FUNC_INFO << " - Start";
QPalette palRed = mainWindowInputQSO->palRed;
QPalette palBlack = mainWindowInputQSO->palBlack;
QPalette palWhite = mainWindowInputQSO->palWhite;
@ -214,7 +209,6 @@ void tst_MainWindowInputQSO::test_GridLineEdit()
mainWindowInputQSO->locatorLineEdit->setText ("IN,IN80,IN,IN,");
QVERIFY2(mainWindowInputQSO->locatorLineEdit->palette () == palRed, "Red Error in grids I,IN80,IN,IN,");
}
void tst_MainWindowInputQSO::test_Cleaners()

View File

@ -46,7 +46,6 @@ private slots:
void test_dataEntry();
void test_AdifCreation();
private:
QSO *qso;
};
@ -56,20 +55,11 @@ tst_QSO::tst_QSO()
qso = new QSO;
}
tst_QSO::~tst_QSO()
{
tst_QSO::~tst_QSO(){}
}
void tst_QSO::initTestCase(){}
void tst_QSO::initTestCase()
{
}
void tst_QSO::cleanupTestCase()
{
}
void tst_QSO::cleanupTestCase(){}
void tst_QSO::test_Constructor()
{

View File

@ -69,7 +69,6 @@ private slots:
private:
Utilities *util;
DataProxy_SQLite *dataProxy;
};
tst_Utilities::tst_Utilities()
@ -85,7 +84,6 @@ tst_Utilities::tst_Utilities()
tst_Utilities::~tst_Utilities()
{
}
void tst_Utilities::initTestCase()

View File

@ -106,20 +106,11 @@ tst_World::tst_World()
//qDebug() << Q_FUNC_INFO << "END";
}
tst_World::~tst_World()
{
tst_World::~tst_World(){}
}
void tst_World::initTestCase(){}
void tst_World::initTestCase()
{
}
void tst_World::cleanupTestCase()
{
}
void tst_World::cleanupTestCase(){}
void tst_World::test_Constructor()
{