formimage

This commit is contained in:
DESKTOP-450PEFP\mainc 2026-05-27 10:52:20 +08:00
parent 3fad0e233f
commit 660ae14c57
2 changed files with 19 additions and 8 deletions

View File

@ -66,6 +66,7 @@ SOURCES += \
fileedit.cpp \
formdraw.cpp \
formhead.cpp \
formimage.cpp \
forminfo.cpp \
formline.cpp \
formlogmud.cpp \
@ -138,6 +139,7 @@ HEADERS += \
fileedit.h \
formdraw.h \
formhead.h \
formimage.h \
forminfo.h \
formline.h \
formlogmud.h \
@ -172,6 +174,7 @@ FORMS += \
InDefTable.ui \
formdraw.ui \
formhead.ui \
formimage.ui \
forminfo.ui \
formline.ui \
formlogmud.ui \

View File

@ -5877,19 +5877,27 @@ void MainWindowCurve::slotDeleteSelectWell()
}
else
{
QString strWellName = ui->tableWidget_2->item(iCurrentRow, column)->text();
m_listWell.removeOne(strWellName);
m_mapFWell.remove(strWellName);
QTableWidgetItem* pItem = ui->tableWidget_2->item(iCurrentRow, column);
if (pItem)
{
QString strWellName = pItem->text();
m_listWell.removeOne(strWellName);
m_mapFWell.remove(strWellName);
}
//
ui->tableWidget_2->removeColumn(column+1);//空白列,注意先删除空白列,否则列号改变
ui->tableWidget_2->removeColumn(column);
}
}
else if(column>1)
{
QString strWellName = ui->tableWidget_2->item(iCurrentRow, column)->text();
m_listWell.removeOne(strWellName);
m_mapFWell.remove(strWellName);
else if (column > 1)
{
QTableWidgetItem* pItem = ui->tableWidget_2->item(iCurrentRow, column);
if (pItem)
{
QString strWellName = pItem->text();
m_listWell.removeOne(strWellName);
m_mapFWell.remove(strWellName);
}
//
ui->tableWidget_2->removeColumn(column);
ui->tableWidget_2->removeColumn(column-1);//空白列,注意先删除选中列,否则列号改变