diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2018-08-17 18:42:11 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2018-08-19 20:49:12 +0300 |
commit | 45a35edf6d26cadaeb6e48bf1cec9b3253503b25 (patch) | |
tree | 46e0d1a254a85be02002cf516a9556c33b8a0857 /qt | |
parent | 515abeed2a658d13864d15c80463f53845738912 (diff) |
Refactoring of DebugRectRenderer.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/mainwindow.cpp b/qt/mainwindow.cpp index d16da48bc5..911d73f005 100644 --- a/qt/mainwindow.cpp +++ b/qt/mainwindow.cpp @@ -387,7 +387,7 @@ void MainWindow::CreateNavigationBar() m_pDrawDebugRectAction->setCheckable(true); m_pDrawDebugRectAction->setChecked(false); m_pDrawDebugRectAction->setToolTip(tr("Debug style")); - df::DebugRectRenderer::Instance()->SetEnabled(false); + m_pDrawWidget->GetFramework().EnableDebugRectRendering(false); // Add "Get statistics" button m_pGetStatisticsAction = pToolBar->addAction(QIcon(":/navig64/chart.png"), @@ -691,7 +691,7 @@ void MainWindow::OnRecalculateGeomIndex() void MainWindow::OnDebugStyle() { bool const checked = m_pDrawDebugRectAction->isChecked(); - df::DebugRectRenderer::Instance()->SetEnabled(checked); + m_pDrawWidget->GetFramework().EnableDebugRectRendering(checked); m_pDrawWidget->RefreshDrawingRules(); } |