From 14337b471d02710f0b3cf05f1fa6b9645e0a1a87 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 6 Feb 2014 22:16:25 +0200 Subject: [PATCH] Fixed line dialog. --HG-- branch : develop --- share/translations/valentina_uk.ts | 4 ++-- src/dialogs/dialogline.h | 2 +- src/mainwindow.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/translations/valentina_uk.ts b/share/translations/valentina_uk.ts index 1d78da937..00ee982ea 100644 --- a/share/translations/valentina_uk.ts +++ b/share/translations/valentina_uk.ts @@ -2395,14 +2395,14 @@ Select first point - Виберість першу точку + Виберіть першу точку Select first point of line - Виберість першу точку лінії + Виберіть першу точку лінії diff --git a/src/dialogs/dialogline.h b/src/dialogs/dialogline.h index 8f15b232b..8f14e2c18 100644 --- a/src/dialogs/dialogline.h +++ b/src/dialogs/dialogline.h @@ -76,7 +76,7 @@ public slots: * @param id id of point or detail * @param type type of object */ - void ChoosedObject(qint64 id, const Scene::Scenes &type); + virtual void ChoosedObject(qint64 id, const Scene::Scenes &type); /** * @brief DialogAccepted save data and emit signal about closed dialog. */ diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f7db503b1..db7d69494 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -329,7 +329,7 @@ void MainWindow::ClosedDialogEndLine(int result) void MainWindow::ToolLine(bool checked) { - SetToolButton(checked, Tool::LineTool, ":/cursor/line_cursor.png", tr("Select first point"), + SetToolButton(checked, Tool::LineTool, ":/cursor/line_cursor.png", tr("Select first point"), &MainWindow::ClosedDialogLine); }