From: stv Date: Tue, 21 Feb 2006 14:41:58 +0000 (+0000) Subject: Updated SALOME GUI sources for building under Ms Visual .NET on Windows platform. X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~104 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74e0dc90b485373fbbb91b5059b2ec4dce3c35a4;p=modules%2Fgui.git Updated SALOME GUI sources for building under Ms Visual .NET on Windows platform. --- diff --git a/src/PythonConsole/PythonConsole_PyEditor.cxx b/src/PythonConsole/PythonConsole_PyEditor.cxx index 5bb4aed68..76c77478d 100755 --- a/src/PythonConsole/PythonConsole_PyEditor.cxx +++ b/src/PythonConsole/PythonConsole_PyEditor.cxx @@ -51,7 +51,8 @@ enum { IdCopy, IdPaste, IdClear, IdSelectAll }; static QString READY_PROMPT = ">>> "; static QString DOTS_PROMPT = "... "; -#define PROMPT_SIZE _currentPrompt.length() + +#define PROMPT_SIZE (int)_currentPrompt.length() class ExecCommand : public PyInterp_LockRequest { @@ -598,9 +599,9 @@ void PythonConsole_PyEditor::keyPressEvent( QKeyEvent* e ) if ( ctrlPressed && !hasSelectedText() ) { QString txt = text( curLine ); int ind = curCol; - while ( ind < txt.length()-1 && txt[ ind ] == ' ' ) ind++; + while ( ind < (int)( txt.length() - 1 ) && txt[ind] == ' ' ) ind++; ind = txt.find( ' ', ind ); - while ( ind < txt.length()-1 && txt[ ind ] == ' ' ) ind++; + while ( ind < (int)( txt.length() - 1 ) && txt[ ind ] == ' ' ) ind++; if ( ind > PROMPT_SIZE-1 ) { setSelection( curLine, curCol, curLine, ind ); removeSelectedText(); @@ -708,7 +709,7 @@ QPopupMenu* PythonConsole_PyEditor::createPopupMenu( const QPoint& pos ) QPopupMenu* popup = QTextEdit::createPopupMenu( pos ); QValueList ids; - for ( int i = 0; popup && i < popup->count(); i++ ) + for ( int i = 0; popup && i < (int)popup->count(); i++ ) { if ( !popup->isItemEnabled( popup->idAt( i ) ) ) ids.append( popup->idAt( i ) );