Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qt
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2018-08-17 18:42:11 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2018-08-19 20:49:12 +0300
commit45a35edf6d26cadaeb6e48bf1cec9b3253503b25 (patch)
tree46e0d1a254a85be02002cf516a9556c33b8a0857 /qt
parent515abeed2a658d13864d15c80463f53845738912 (diff)
Refactoring of DebugRectRenderer.
Diffstat (limited to 'qt')
-rw-r--r--qt/mainwindow.cpp4
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();
}