Use same icon on cursor as it is on the tool button for the arc intersect axis tool
--HG-- branch : feature
This commit is contained in:
parent
6115b02b5b
commit
000bbd454e
|
@ -951,6 +951,17 @@ void MainWindow::ToolCurveIntersectAxis(bool checked)
|
|||
&MainWindow::ApplyDialog<VToolCurveIntersectAxis>);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void MainWindow::ToolArcIntersectAxis(bool checked)
|
||||
{
|
||||
// Reuse ToolCurveIntersectAxis but with different cursor and tool tip
|
||||
SetToolButtonWithApply<DialogCurveIntersectAxis>(checked, Tool::CurveIntersectAxis,
|
||||
":/cursor/arc_intersect_axis_cursor.png",
|
||||
tr("Select arc"),
|
||||
&MainWindow::ClosedDialogWithApply<VToolCurveIntersectAxis>,
|
||||
&MainWindow::ApplyDialog<VToolCurveIntersectAxis>);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void MainWindow::ToolPointOfIntersectionArcs(bool checked)
|
||||
{
|
||||
|
@ -1537,7 +1548,7 @@ void MainWindow::InitToolButtons()
|
|||
connect(ui->toolButtonArcCutPoint, &QToolButton::clicked, this, &MainWindow::ToolCutArc);
|
||||
connect(ui->toolButtonLineIntersectAxis, &QToolButton::clicked, this, &MainWindow::ToolLineIntersectAxis);
|
||||
connect(ui->toolButtonCurveIntersectAxis, &QToolButton::clicked, this, &MainWindow::ToolCurveIntersectAxis);
|
||||
connect(ui->toolButtonArcIntersectAxis, &QToolButton::clicked, this, &MainWindow::ToolCurveIntersectAxis);
|
||||
connect(ui->toolButtonArcIntersectAxis, &QToolButton::clicked, this, &MainWindow::ToolArcIntersectAxis);
|
||||
connect(ui->toolButtonLayoutSettings, &QToolButton::clicked, this, &MainWindow::ToolLayoutSettings);
|
||||
connect(ui->toolButtonPointOfIntersectionArcs, &QToolButton::clicked, this,
|
||||
&MainWindow::ToolPointOfIntersectionArcs);
|
||||
|
|
|
@ -122,6 +122,7 @@ public slots:
|
|||
void ToolCutArc(bool checked);
|
||||
void ToolLineIntersectAxis(bool checked);
|
||||
void ToolCurveIntersectAxis(bool checked);
|
||||
void ToolArcIntersectAxis(bool checked);
|
||||
void ToolPointOfIntersectionArcs(bool checked);
|
||||
void ToolPointOfIntersectionCircles(bool checked);
|
||||
void ToolPointFromCircleAndTangent(bool checked);
|
||||
|
|
Loading…
Reference in New Issue
Block a user