From 517abac2ee9a16f7262c121a2df29309ee8c3ecb Mon Sep 17 00:00:00 2001 From: Don Bright Date: Tue, 5 Jul 2011 18:43:05 -0500 Subject: move functions to more logical location 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()) { -- cgit v0.10.1