@@ -189,7 +189,7 MainWindow::MainWindow(QWidget *parent) | |||||
189 | auto timeWidget = new TimeWidget{}; |
|
189 | auto timeWidget = new TimeWidget{}; | |
190 | mainToolBar->addWidget(timeWidget); |
|
190 | mainToolBar->addWidget(timeWidget); | |
191 |
|
191 | |||
192 |
auto actionPointerMode = new QAction{QIcon(":/icones/pointer.png"), " |
|
192 | auto actionPointerMode = new QAction{QIcon(":/icones/pointer.png"), "Move", this}; | |
193 | actionPointerMode->setCheckable(true); |
|
193 | actionPointerMode->setCheckable(true); | |
194 | actionPointerMode->setChecked(sqpApp->plotsInteractionMode() |
|
194 | actionPointerMode->setChecked(sqpApp->plotsInteractionMode() | |
195 | == SqpApplication::PlotsInteractionMode::None); |
|
195 | == SqpApplication::PlotsInteractionMode::None); |
@@ -197,7 +197,7 VisualizationGraphWidget::VisualizationGraphWidget(const QString &name, QWidget | |||||
197 | // Set qcpplot properties : |
|
197 | // Set qcpplot properties : | |
198 | // - zoom is enabled |
|
198 | // - zoom is enabled | |
199 | // - Mouse wheel on qcpplot is intercepted to determine the zoom orientation |
|
199 | // - Mouse wheel on qcpplot is intercepted to determine the zoom orientation | |
200 | ui->widget->setInteractions(QCP::iRangeZoom); |
|
200 | ui->widget->setInteractions(QCP::iRangeZoom | QCP::iSelectItems); | |
201 | ui->widget->axisRect()->setRangeDrag(Qt::Horizontal | Qt::Vertical); |
|
201 | ui->widget->axisRect()->setRangeDrag(Qt::Horizontal | Qt::Vertical); | |
202 |
|
202 | |||
203 | // The delegate must be initialized after the ui as it uses the plot |
|
203 | // The delegate must be initialized after the ui as it uses the plot |
General Comments 0
You need to be logged in to leave comments.
Login now