diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-07-05 23:43:05 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-07-05 23:43:05 (GMT) |
commit | 517abac2ee9a16f7262c121a2df29309ee8c3ecb (patch) | |
tree | ed8475963e02249b8a77c3bee4576905ef37b3ec /src | |
parent | 06f11240b4a56f8a6306165bf98907f062a27adf (diff) |
move functions to more logical location
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwin.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 4aaa408..5adff8b 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -337,8 +337,6 @@ MainWindow::MainWindow(const QString &filename) connect(this->helpActionHomepage, SIGNAL(triggered()), this, SLOT(helpHomepage())); connect(this->helpActionManual, SIGNAL(triggered()), this, SLOT(helpManual())); - loadDesignSettings(); - console->setReadOnly(true); setCurrentOutput(); @@ -386,6 +384,7 @@ MainWindow::MainWindow(const QString &filename) viewModeThrownTogether(); #endif loadViewSettings(); + loadDesignSettings(); setAcceptDrops(true); clearCurrentOutput(); @@ -421,6 +420,14 @@ MainWindow::loadViewSettings(){ } } +void +MainWindow::loadDesignSettings() +{ + QSettings settings; + if (settings.value("design/autoReload").toBool()) + designActionAutoReload->setChecked(true); +} + MainWindow::~MainWindow() { if (root_module) @@ -501,14 +508,6 @@ MainWindow::openFile(const QString &new_filename) } void -MainWindow::loadDesignSettings() -{ - QSettings settings; - if (settings.value("design/autoReload").toBool()) - designActionAutoReload->setChecked(true); -} - -void MainWindow::setFileName(const QString &filename) { if (filename.isEmpty()) { |