src/documentloader.cpp

changeset 1145
02264bf0108d
parent 1123
15e46ea3151f
child 1147
a26568aa3cce
equal deleted inserted replaced
1144:4f226fd97826 1145:02264bf0108d
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #include "documentloader.h" 19 #include "documentloader.h"
20 #include "ldDocument.h" 20 #include "lddocument.h"
21 #include "ldObject.h" 21 #include "ldObject.h"
22 #include "mainwindow.h" 22 #include "mainwindow.h"
23 #include "dialogs/openprogressdialog.h" 23 #include "dialogs/openprogressdialog.h"
24 24
25 DocumentLoader::DocumentLoader (Model* model, bool onForeground, QObject *parent) : 25 DocumentLoader::DocumentLoader (Model* model, bool onForeground, QObject *parent) :
75 m_progress = 0; 75 m_progress = 0;
76 m_hasAborted = false; 76 m_hasAborted = false;
77 77
78 if (isOnForeground()) 78 if (isOnForeground())
79 { 79 {
80 // Show a progress dialog if we're loading the main ldDocument.here so we can show progress updates and keep the 80 // Show a progress dialog if we're loading the main lddocument.here so we can show progress updates and keep the
81 // WM posted that we're still here. 81 // WM posted that we're still here.
82 m_progressDialog = new OpenProgressDialog(qobject_cast<QWidget*>(parent())); 82 m_progressDialog = new OpenProgressDialog(qobject_cast<QWidget*>(parent()));
83 m_progressDialog->setNumLines (countof(m_lines)); 83 m_progressDialog->setNumLines (countof(m_lines));
84 m_progressDialog->setModal (true); 84 m_progressDialog->setModal (true);
85 m_progressDialog->show(); 85 m_progressDialog->show();

mercurial