Compare commits

...

4 Commits

Author SHA1 Message Date
jiayulong
b753a9285e 优化滚轮缩放,支持还原 2026-06-29 09:58:53 +08:00
jiayulong
42e6fc32d6 Merge branch 'main' of http://git.hivekion.com:3000/jiayulong/logplus 2026-06-29 09:46:45 +08:00
jiayulong
5fb19e756c Merge branch 'main' of http://git.hivekion.com:3000/jiayulong/logplus 2026-06-26 17:59:06 +08:00
jiayulong
4a0e0f6ce1 1 2026-06-26 17:58:52 +08:00
2 changed files with 14 additions and 9 deletions

View File

@ -387,7 +387,8 @@ void CchooseShiftCurvesDlg::SetTableView(QString strWellName, QString fileFull)
item = new QStandardItem();
if(curvetype==CURVE_OBJECT) item->setText("曲线");
else if(curvetype==WAVE_OBJECT) item->setText("波列");
else if(curvetype==TABLEE_OBJECT) item->setText("表格");
else if(curvetype>CARD_OBJECT || 0 == curvetype) item->setText("表格");
//else if(curvetype==TABLEE_OBJECT) item->setText("表格");
else item->setText("");
m_pTableModel->setItem(iIndex,T_COLUMN_OUTNAME_,item);

View File

@ -579,11 +579,13 @@ void MainWindowCurve::s_mouseWheel(QWheelEvent *event)
{
if (event->delta() > 0) // 鼠标滚轮向上滚动
{
ZoomIn(1.1); // 文本放大
s_ZoomIn();
// ZoomIn(1.1); // 文本放大
}
else
{
ZoomIn(0.9); // 文本缩小
s_ZoomOut();
// ZoomIn(0.9); // 文本缩小
}
}
else
@ -4170,9 +4172,9 @@ void MainWindowCurve::s_ZoomIn()
{
//宽度放大
double dCurScale = (double)1.0 / (double)0.9;
ZoomIn(dCurScale);//1.1
//
m_dScale = m_dScale/dCurScale;
//
ZoomIn(dCurScale);//1.1
}
//缩小
@ -4180,9 +4182,9 @@ void MainWindowCurve::s_ZoomOut()
{
//宽度缩小
double dCurScale = 0.9;
ZoomIn(dCurScale);
//
m_dScale = m_dScale/dCurScale;
//
ZoomIn(dCurScale);
}
//还原
@ -8030,11 +8032,13 @@ void MainWindowCurve::wheelEvent(QWheelEvent *e)
{
if (e->delta() > 0) // 鼠标滚轮向上滚动
{
ZoomIn(1.1); // 文本放大
s_ZoomIn();
//ZoomIn(1.1); // 文本放大
}
else
{
ZoomIn(0.9); // 文本缩小
s_ZoomOut();
//ZoomIn(0.9); // 文本缩小
}
}