changes to speedup settings dialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1562 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
alexandrut 2009-08-21 17:58:55 +00:00
parent fbf0939cea
commit c0523dabbd
4 changed files with 13 additions and 50 deletions

View file

@ -47,14 +47,6 @@ RSettingsWin::RSettingsWin(QWidget * parent, Qt::WFlags flags)
connect(okButton, SIGNAL(clicked( bool )), this, SLOT( saveChanges()) );
}
void
RSettingsWin::showWindow(int page)
{
loadSettings();
setNewPage(page);
QDialog::show();
}
void
RSettingsWin::closeEvent (QCloseEvent * event)
{
@ -123,6 +115,7 @@ RSettingsWin::setNewPage(int page)
}
pageName->setText(text);
loadSettings(); /* load saved settings */
stackedWidget->setCurrentIndex(page);
listWidget->setCurrentRow(page);
}

View file

@ -37,8 +37,6 @@ class RSettingsWin: public QDialog, private Ui::Settings
RSettingsWin(QWidget * parent = 0, Qt::WFlags flags = 0);
~RSettingsWin() {}
void showWindow(int page);
public slots:
//! Go to a specific part of the control panel.
void setNewPage(int page);