changeset 700:f6a5c8c3cf36

Instead of showing a message box, make a debug log entry before trying to load the QScintilla widget. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@969 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Wed, 03 Jun 2009 13:56:56 +0000
parents 90002ae3ddc9
children 4f83900d6d12
files src/MainWindow.cpp
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/MainWindow.cpp	Tue Jun 02 14:35:35 2009 +0000
+++ b/src/MainWindow.cpp	Wed Jun 03 13:56:56 2009 +0000
@@ -200,11 +200,9 @@
     \brief Create and initialize the text editor component. It uses the QScintilla widget.
  */
 void MainWindow::initTextEditor() {
-    QMessageBox infoQScintillaLoad(NULL);
-    infoQScintillaLoad.setWindowTitle("Loading QScintilla...");
-    infoQScintillaLoad.setText("Trying to load QScintilla library.\nIf anything fails during loading, it might be possible that the debug and release version of QScintilla are mixed.");
-    infoQScintillaLoad.show();
     // Create the QScintilla widget and add it to the layout.
+    qDebug() << "Trying to load QScintilla library. If anything fails during loading, it might be possible that"
+             << " the debug and release version of QScintilla are mixed or the library cannot be found at all.";
     // Try and catch doesn't seem to catch the runtime error when starting UiGUI release with QScintilla debug lib and the other way around.
     try {
         qSciSourceCodeEditor = new QsciScintilla(this);
@@ -214,8 +212,6 @@
             "During trying to create the text editor component, that is based on QScintilla, an error occurred. Please make sure that you have installed QScintilla and not mixed release and debug versions." );
         exit(1);
     }
-    infoQScintillaLoad.hide();
-
     hboxLayout1->addWidget(qSciSourceCodeEditor);
 
     // Make some settings for the QScintilla widget.