refactor: 改用qmake(.pro)构建,兼容Qt 5.9
- 移除CMakeLists.txt,改用AiAnalysis.pro - 修复Qt 5.9兼容性:QWheelEvent::posF()、QString::SkipEmptyParts、static_cast信号连接 - 更新README为qmake构建说明 - 删除CMake build目录
This commit is contained in:
@@ -394,7 +394,7 @@ void PlotWidget::drawLegend(QPainter &painter)
|
||||
void PlotWidget::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
QRectF area = plotArea();
|
||||
if (!area.contains(event->position())) return;
|
||||
if (!area.contains(event->posF())) return;
|
||||
|
||||
double zoomFactor = 1.15;
|
||||
if (event->angleDelta().y() < 0) {
|
||||
|
||||
Reference in New Issue
Block a user