Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
ea4k committed Jul 31, 2024
1 parent ef6249e commit 1c1251a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
25 changes: 4 additions & 21 deletions src/inputwidgets/mainwindowinputothers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void MainWindowInputOthers::setEntity(const int _ent)
//qDebug() << "MainWindow::selectCorrectEntity: " << pref << "/" << QString::number(indexC);
entityNameComboBox->setCurrentIndex(indexC);
setIOTAContinentFromEntity(_ent);
updatePrimarySubDivisions(_ent, QString());
//updatePrimarySubDivisions(_ent, QString());
logEvent (Q_FUNC_INFO, "END", Debug);
}

Expand Down Expand Up @@ -712,37 +712,20 @@ void MainWindowInputOthers::updatePrimarySubdivisionsComboBox(QList<PrimarySubdi
//qDebug() << Q_FUNC_INFO << " - END";
}

/*
void MainWindowInputOthers::updatePrimarySubDivisions(const int _n)
{
qDebug() << Q_FUNC_INFO << " - Start";
if (_n<1)
return;
QList<PrimarySubdivision> subdivisions;
subdivisions.clear();
subdivisions.append(dataProxy->getPrimarySubDivisions(_n, QString()));
qDebug() << Q_FUNC_INFO << " - count: " << QString::number(subdivisions.count());
if (subdivisions.count()<1)
return;
updatePrimarySubdivisionsComboBox(subdivisions);
qDebug() << Q_FUNC_INFO << " - END";
}
*/

void MainWindowInputOthers::updatePrimarySubDivisions(const int _n, const QString &_pref)
{
qDebug() << Q_FUNC_INFO << " - Start: " << QString::number(_n) << "/" << _pref;
if (_n<1)
return;

setEntity(_n);
if (_pref.isEmpty())
return;
QList<PrimarySubdivision> subdivisions;
subdivisions.clear();
subdivisions.append(dataProxy->getPrimarySubDivisions(_n, _pref));
if (subdivisions.isEmpty())
subdivisions.append(dataProxy->getPrimarySubDivisions(_n, QString()));


qDebug() << Q_FUNC_INFO << " - count: " << QString::number(subdivisions.count());
if (subdivisions.count()<1)
return;
Expand Down
3 changes: 3 additions & 0 deletions src/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ class Utilities : public QObject {
bool isAKnownPrefix(const QString &_c);
bool isAKnownCall(const QString &_c);
bool isValidSimpleCall(const QString &_c);
//QStringList getPrefixRunningTheCall(const QString &_c, bool withAreaNumber = false);
//Goes char by char identifying the prefix and area Number

//QPair<QString, QString> getCallParts(const QString &_c);

void setARRLSect();
Expand Down

0 comments on commit 1c1251a

Please sign in to comment.