m_populated = false;
m_checkcurwidget = true;
m_closeable = false;
+ readSettings();
}
FileSet::~FileSet()
{
+ writeSettings();
}
/*
}
}
/* Resize the columns */
- for(int cnter=1; cnter<headerlist.size(); cnter++) {
+ for (int cnter=1; cnter<headerlist.size(); cnter++) {
mp_treeWidget->resizeColumnToContents(cnter);
}
if(!m_populated) {
populateTree();
/* add context sensitive menu items specific to this classto the page
- * selector tree. m_m_contextActions is QList of QActions, so this is
+ * selector tree. m_contextActions is QList of QActions, so this is
* only done once with the first population. */
m_contextActions.append(actionRefreshFileSet);
/* Create the context menu for the fileset tree */
m_populated=true;
}
}
+
+/*
+ * Save user settings associated with this page
+ */
+void FileSet::writeSettings()
+{
+ QSettings settings(m_console->m_dir->name(), "bat");
+ settings.beginGroup("FileSet");
+ settings.setValue("geometry", saveGeometry());
+ settings.endGroup();
+}
+
+/*
+ * Read and restore user settings associated with this page
+ */
+void FileSet::readSettings()
+{
+ QSettings settings(m_console->m_dir->name(), "bat");
+ settings.beginGroup("FileSet");
+ restoreGeometry(settings.value("geometry").toByteArray());
+ settings.endGroup();
+}