removed milliseconds from saved file name, fixed reset all settings of childrend of a groupbox which is also a prameter

This commit is contained in:
Mathieu Labbe
2015-01-07 17:51:15 -05:00
parent 7f7d05e243
commit db382d6149
2 changed files with 5 additions and 1 deletions

View File

@@ -1588,7 +1588,7 @@ void MainWindow::processRtabmapEventInit(int status, const QString & info)
!_emptyNewDatabase)
{
// Temp database used, automatically backup with unique name (timestamp)
QString newName = QDateTime::currentDateTime().toString("yyMMdd-hhmmsszzz");
QString newName = QDateTime::currentDateTime().toString("yyMMdd-hhmmss");
bool ok = false;
newName = QInputDialog::getText(this, tr("Saving database..."), tr("Database name:"), QLineEdit::Normal, newName, &ok);
while(ok)

View File

@@ -925,6 +925,10 @@ void PreferencesDialog::resetSettings(QGroupBox * groupBox)
if(uContains(defaults, key))
{
this->setParameter(key, defaults.at(key));
if(qobject_cast<const QGroupBox*>(children.at(i)))
{
this->resetSettings((QGroupBox*)children.at(i));
}
}
else if(qobject_cast<const QGroupBox*>(children.at(i)))
{