mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Added a init() method in PreferencesDialog
Fixed virtual method declarations in PreferencesDialogROS git-svn-id: http://rtabmap.googlecode.com/svn/branches/0.3/rtabmap@88 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -203,11 +203,6 @@ PreferencesDialog::PreferencesDialog(QWidget * parent) :
|
||||
connect(_ui->treeView, SIGNAL(clicked(QModelIndex)), this, SLOT(clicked(QModelIndex)));
|
||||
_ui->treeView->expandToDepth(1);
|
||||
|
||||
this->readSettings();
|
||||
this->writeSettings();// This will create the ini file if not exist
|
||||
|
||||
this->loadWindowGeometry("PreferencesDialog", this);
|
||||
|
||||
_obsoletePanels = kPanelAll;
|
||||
_initialized = true;
|
||||
}
|
||||
@@ -217,6 +212,17 @@ PreferencesDialog::~PreferencesDialog() {
|
||||
delete _ui;
|
||||
}
|
||||
|
||||
void PreferencesDialog::init()
|
||||
{
|
||||
this->readSettings();
|
||||
this->writeSettings();// This will create the ini file if not exist
|
||||
|
||||
this->loadWindowGeometry("PreferencesDialog", this);
|
||||
|
||||
_obsoletePanels = kPanelAll;
|
||||
_initialized = true;
|
||||
}
|
||||
|
||||
void PreferencesDialog::setupTreeView()
|
||||
{
|
||||
QFile modelFile(":/resources/PreferencesModel.txt");
|
||||
|
||||
Reference in New Issue
Block a user