mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-24 00:31:32 -04:00
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:
parent
fbf0939cea
commit
c0523dabbd
4 changed files with 13 additions and 50 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue