优化到删除后的整体宽度不协调问题
This commit is contained in:
parent
78331ea3bd
commit
2c9e8b7883
|
|
@ -1034,6 +1034,7 @@ void FormWell::slotDeleteSelectTrack()
|
|||
if(iCurrentRow == 0)
|
||||
{
|
||||
ui->tableWidget->removeColumn(iCurrentCol);
|
||||
ui->tableWidget->update();
|
||||
|
||||
resizeWindow();
|
||||
|
||||
|
|
@ -1067,11 +1068,11 @@ void FormWell::resizeWindow()
|
|||
}
|
||||
|
||||
//调整大小
|
||||
if(rect.width()>tempWidth)
|
||||
{
|
||||
ui->tableWidget->setGeometry((rect.width()-tempWidth)/2, 2, tempWidth, tempHight);
|
||||
}
|
||||
else
|
||||
// if(rect.width()>tempWidth)
|
||||
// {
|
||||
// ui->tableWidget->setGeometry((rect.width()-tempWidth)/2, 2, tempWidth, tempHight);
|
||||
// }
|
||||
// else
|
||||
{
|
||||
ui->tableWidget->setGeometry(0, 2, tempWidth, tempHight);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5733,12 +5733,12 @@ void MainWindowCurve::resizeItem(QString strWellName, double colWidth, double ro
|
|||
continue;
|
||||
}
|
||||
//
|
||||
QStringList sret = this->getSelectWell_New();
|
||||
if (sret.length() <= 0)
|
||||
return;
|
||||
QString strWellName = sret.at(0);
|
||||
//直接从选中的井获取,data记录slf路径
|
||||
QString strSlfName = sret.at(1);
|
||||
// QStringList sret = this->getSelectWell_New();
|
||||
// if (sret.length() <= 0)
|
||||
// return;
|
||||
// QString strWellName = sret.at(0);
|
||||
// //直接从选中的井获取,data记录slf路径
|
||||
// QString strSlfName = sret.at(1);
|
||||
|
||||
QString strWellNameTemp = "";
|
||||
WellHeader* pWheader = qobject_cast<WellHeader*>(ui->tableWidget_2->cellWidget(0, i));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user