837 void MainWindow::circleToolSegmentsChanged() |
837 void MainWindow::circleToolSegmentsChanged() |
838 { |
838 { |
839 int numerator = this->ringToolSegments(); |
839 int numerator = this->ringToolSegments(); |
840 int denominator = this->ringToolDivisions(); |
840 int denominator = this->ringToolDivisions(); |
841 simplify (numerator, denominator); |
841 simplify (numerator, denominator); |
842 ui.ringToolSegmentsLabel->setText (format ("%1 / %2", numerator, denominator)); |
842 ui.ringToolSegmentsLabel->setText(fractionRep(numerator, denominator)); |
843 } |
843 } |
844 |
844 |
845 // --------------------------------------------------------------------------------------------------------------------- |
845 // --------------------------------------------------------------------------------------------------------------------- |
846 // |
846 // |
847 void MainWindow::createBlankDocument() |
847 void MainWindow::createBlankDocument() |