Display path number

This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2025-06-19 23:22:19 +02:00
1 parent ce6614e29d
commit 4f508adbb9
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -100,6 +100,11 @@ void MainWindow::loadPath()
if(!steps.isEmpty()) {
ui->stepTitle->setText(p->getStep().first().getTitle());
}
int pathCount = path.length();
ui->pathNumber->setMaximum(pathCount);
ui->pathNumber->setSuffix("/" + QString::number(pathCount));
ui->pathNumber->setValue(path.indexOf(currentPath)+1);
}
void MainWindow::addNewPath()
+1 -1
View File
@@ -57,7 +57,7 @@
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<widget class="QSpinBox" name="spinBox">
<widget class="QSpinBox" name="pathNumber">
<property name="geometry">
<rect>
<x>10</x>