#include <QLineEdit>
#include <QMouseEvent>
#include <QSplitter>
+#include <QSettings>
+
+const QString splitter_key = "HYDROGUI_ProfileDlg::splitter";
HYDROGUI_ProfileDlg::HYDROGUI_ProfileDlg( HYDROGUI_Module* theModule, const QString& theTitle )
: HYDROGUI_ViewerDlg( theModule, theTitle, true ),
sizes.append( 200 );
sizes.append( 25 );
splitter()->setSizes( sizes );
+
+ QSettings settings;
+ splitter()->restoreState( settings.value( splitter_key ).toByteArray() );
}
HYDROGUI_ProfileDlg::~HYDROGUI_ProfileDlg()
{
+ QSettings settings;
+ settings.setValue( splitter_key, splitter()->saveState() );
}
void HYDROGUI_ProfileDlg::reset()