mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-09 17:45:15 -04:00
Changed settings to local variable, no more as pointer on all classes.
RshareSettings settings; settings.value(...); It should lower memory usage and removes memory leaks. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2f8d21ab76
commit
0c46da0dd2
52 changed files with 310 additions and 428 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include "util/Widget.h"
|
||||
#include "settings/rsharesettings.h"
|
||||
|
||||
/* Define the format used for displaying the date and time */
|
||||
#define DATETIME_FMT "MMM dd hh:mm:ss"
|
||||
|
@ -40,17 +41,15 @@ StartDialog::StartDialog(QWidget *parent, Qt::WFlags flags)
|
|||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
RshareSettings config;
|
||||
config.loadWidgetInformation(this);
|
||||
/* Create Bandwidth Graph related QObjects */
|
||||
RshareSettings settings;
|
||||
settings.loadWidgetInformation(this);
|
||||
|
||||
_rsLogoBar = NULL;
|
||||
|
||||
//LogoBar
|
||||
_rsLogoBar = new LogoBar(ui.callBarFrame);
|
||||
Widget::createLayout(ui.callBarFrame)->addWidget(_rsLogoBar);
|
||||
|
||||
/* Create Bandwidth Graph related QObjects */
|
||||
_settings = new RshareSettings();
|
||||
|
||||
ui.loadButton->setFocus();
|
||||
|
||||
|
@ -110,8 +109,8 @@ void StartDialog::show()
|
|||
|
||||
void StartDialog::closeEvent (QCloseEvent * event)
|
||||
{
|
||||
RshareSettings config;
|
||||
config.saveWidgetInformation(this);
|
||||
RshareSettings settings;
|
||||
settings.saveWidgetInformation(this);
|
||||
|
||||
QWidget::closeEvent(event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue