Remove unused code from the Release 2 scope modules
Trim mostly-deletion changes (~700 lines) across the modules the Release 2 build compiles: unused telegrams and receiver/handler code in TrainingAreaBase (telegrams, recv_from_dds_aes/fts, ism/main/pdm/position handlers), dead members in SqlBrowser and ProjectDataManagement, unused LtsPluginManager loader paths, LtsSession unit-test, WlsTetra and DdsView cleanups, plus the stale include_directories removal in Lts/CMakeLists.txt. Continues the Release 2 source prune (keep only what the build compiles). Excluded from this commit by design: the machine-specific .envrc (MIGRATE_PIPELINE_ROOT path fix stays uncommitted) and the untracked qt5-before/ reference tree.
This commit is contained in:
1 parent
e60a860283
commit
84f8cfb41f
45 files changed
+30
-724
No files matched your search
@@ -9,7 +9,6 @@
|
||||
|
||||
//#define WAIT_FOR_IDLE while (!m_idle) { QThread::msleep(50); } (void)m_idle
|
||||
|
||||
|
||||
DataModel::DataModel(QObject *parent) // [M]VC
|
||||
: QAbstractTableModel(parent)
|
||||
, m_idle(true)
|
||||
@@ -28,19 +27,16 @@ DataModel::DataModel(QObject *parent) // [M]VC
|
||||
// endResetModel();
|
||||
//}
|
||||
|
||||
|
||||
void DataModel::dataListReserve(const int size)
|
||||
{
|
||||
m_newDataList.reserve(size);
|
||||
}
|
||||
|
||||
|
||||
void DataModel::addLine(const Data& data)
|
||||
{
|
||||
m_newDataList.append(data);
|
||||
}
|
||||
|
||||
|
||||
void DataModel::addColumn(const QString& columnName, QMetaType::Type type)
|
||||
{
|
||||
// QPair<QString,QVariant::Type> pair;
|
||||
@@ -49,7 +45,6 @@ void DataModel::addColumn(const QString& columnName, QMetaType::Type type)
|
||||
m_newHeaderList.append(QPair<QString,QMetaType::Type>(columnName, type));
|
||||
}
|
||||
|
||||
|
||||
void DataModel::slotSwapLists() // for threading..
|
||||
{
|
||||
m_dataList = m_newDataList;
|
||||
@@ -62,32 +57,27 @@ void DataModel::slotSwapLists() // for threading..
|
||||
endResetModel();
|
||||
}
|
||||
|
||||
|
||||
void DataModel::setTableName(const QString &tableName)
|
||||
{
|
||||
m_tableName = tableName;
|
||||
setEditable(!m_tableName.isEmpty()); // editable items depend on wether it's a custom query, or a table list query
|
||||
}
|
||||
|
||||
|
||||
QString DataModel::getTableName() const
|
||||
{
|
||||
return m_tableName;
|
||||
}
|
||||
|
||||
|
||||
int DataModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
return parent.isValid() ? 0 : m_dataList.count();
|
||||
}
|
||||
|
||||
|
||||
int DataModel::columnCount(const QModelIndex &parent) const
|
||||
{
|
||||
return parent.isValid() ? 0 : m_headerList.count();
|
||||
}
|
||||
|
||||
|
||||
QVariant DataModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (index.row() >= m_dataList.count())
|
||||
@@ -127,7 +117,6 @@ QVariant DataModel::data(const QModelIndex &index, int role) const
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
|
||||
QVariant DataModel::headerData(int section, Qt::Orientation orientation, int role) const
|
||||
{
|
||||
if (orientation == Qt::Horizontal && section >= 0 && section < m_headerList.size())
|
||||
@@ -145,7 +134,6 @@ QVariant DataModel::headerData(int section, Qt::Orientation orientation, int rol
|
||||
return QAbstractTableModel::headerData(section, orientation, role);
|
||||
}
|
||||
|
||||
|
||||
void DataModel::setEditable(bool editable)
|
||||
{
|
||||
resetFlags();
|
||||
@@ -154,19 +142,16 @@ void DataModel::setEditable(bool editable)
|
||||
m_flags |= Qt::ItemIsEditable;
|
||||
}
|
||||
|
||||
|
||||
const HeaderList& DataModel::getHeaderList() const
|
||||
{
|
||||
return m_headerList;
|
||||
}
|
||||
|
||||
|
||||
void DataModel::resetFlags()
|
||||
{
|
||||
m_flags = Qt::ItemIsSelectable | Qt::ItemIsEnabled;
|
||||
}
|
||||
|
||||
|
||||
Qt::ItemFlags DataModel::flags(const QModelIndex &index) const
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
@@ -174,7 +159,6 @@ Qt::ItemFlags DataModel::flags(const QModelIndex &index) const
|
||||
return m_flags;
|
||||
}
|
||||
|
||||
|
||||
void DataModel::slotSetData(const QModelIndex &index, const QVariant &value)
|
||||
{
|
||||
Data row = m_dataList.at(index.row()); // get row from data list
|
||||
@@ -197,7 +181,6 @@ bool DataModel::setData(const QModelIndex &index, const QVariant &value, int rol
|
||||
return false; // ALWAYS! as we need to wait for a result (which is async)
|
||||
}
|
||||
|
||||
|
||||
void DataModel::deleteLines(const QList<QModelIndex> &affectedRowsList)
|
||||
{
|
||||
if (affectedRowsList.isEmpty())
|
||||
|
||||
Reference in new issue
Block a user