author | zecke <zecke> | 2002-10-02 12:25:01 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-02 12:25:01 (UTC) |
commit | 6d20f295c578281b043073a5c0dd668fe754581a (patch) (side-by-side diff) | |
tree | b34f24c6ad01589dca15eb4ef40640b5e9e57013 /noncore/apps/opie-console/mainwindow.cpp | |
parent | ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38 (diff) | |
download | opie-6d20f295c578281b043073a5c0dd668fe754581a.zip opie-6d20f295c578281b043073a5c0dd668fe754581a.tar.gz opie-6d20f295c578281b043073a5c0dd668fe754581a.tar.bz2 |
Commit my files so other people can play with them
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 3c1c8ea..88d5823 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -6,4 +6,5 @@ #include <qtoolbar.h> +#include "configdialog.h" #include "metafactory.h" #include "profilemanager.h" @@ -15,4 +16,5 @@ MainWindow::MainWindow() { m_curSession = 0; m_manager = new ProfileManager(m_factory); + m_manager->load(); initUI(); @@ -105,5 +107,5 @@ ProfileManager* MainWindow::manager() { } void MainWindow::populateProfiles() { - manager()->load(); + m_sessionsPop->clear(); Profile::ValueList list = manager()->all(); for (Profile::ValueList::Iterator it = list.begin(); it != list.end(); @@ -148,4 +150,13 @@ void MainWindow::slotTerminate() { void MainWindow::slotConfigure() { qWarning("configure"); + ConfigDialog conf( manager()->all() ); + conf.showMaximized(); + + int ret = conf.exec(); + + if ( QDialog::Accepted == ret ) { + manager()->setProfiles( conf.list() ); + populateProfiles(); + } } void MainWindow::slotClose() { |