Display path number
This commit is contained in:
parent
ce6614e29d
commit
4f508adbb9
@ -100,6 +100,11 @@ void MainWindow::loadPath()
|
|||||||
if(!steps.isEmpty()) {
|
if(!steps.isEmpty()) {
|
||||||
ui->stepTitle->setText(p->getStep().first().getTitle());
|
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()
|
void MainWindow::addNewPath()
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Shadow::Raised</enum>
|
<enum>QFrame::Shadow::Raised</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QSpinBox" name="spinBox">
|
<widget class="QSpinBox" name="pathNumber">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user