src/mainwindow.cpp

changeset 1350
eb2d3bc4fc73
parent 1349
45d8eec8bd52
child 1353
48374309f3d1
equal deleted inserted replaced
1349:45d8eec8bd52 1350:eb2d3bc4fc73
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()

mercurial