Compare commits
4 Commits
55326eb33d
...
b753a9285e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b753a9285e | ||
|
|
42e6fc32d6 | ||
|
|
5fb19e756c | ||
|
|
4a0e0f6ce1 |
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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); // 文本缩小
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user