mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
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:
@@ -1588,7 +1588,7 @@ void MainWindow::processRtabmapEventInit(int status, const QString & info)
|
|||||||
!_emptyNewDatabase)
|
!_emptyNewDatabase)
|
||||||
{
|
{
|
||||||
// Temp database used, automatically backup with unique name (timestamp)
|
// 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;
|
bool ok = false;
|
||||||
newName = QInputDialog::getText(this, tr("Saving database..."), tr("Database name:"), QLineEdit::Normal, newName, &ok);
|
newName = QInputDialog::getText(this, tr("Saving database..."), tr("Database name:"), QLineEdit::Normal, newName, &ok);
|
||||||
while(ok)
|
while(ok)
|
||||||
|
|||||||
@@ -925,6 +925,10 @@ void PreferencesDialog::resetSettings(QGroupBox * groupBox)
|
|||||||
if(uContains(defaults, key))
|
if(uContains(defaults, key))
|
||||||
{
|
{
|
||||||
this->setParameter(key, defaults.at(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)))
|
else if(qobject_cast<const QGroupBox*>(children.at(i)))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user