Display path number
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user