Results 1 to 11 of 11

Thread: qPEditor - the editor for the programmer.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qPEditor - the editor for the programmer.

    Version qPEditor is updated to 1.1.0
    The added panel bookmark and marketed separation fresh bracket.

  2. #2
    Join Date
    Jan 2006
    Posts
    371
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qPEditor - the editor for the programmer.

    Version 1.1.0 does not compile here (Mandriva 2008.1, Qt4.4.0)

    Qt Code:
    1. g++ -c -pipe -g -D_REENTRANT -Wall -W -fPIC -DEDITORPLUGIN -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I../../../../qt-44/mkspecs/linux-g++ -I. -I../../../../qt-44/include/QtDesigner -I../../../../qt-44/include/QtCore -I../../../../qt-44/include/QtCore -I../../../../qt-44/include/QtGui -I../../../../qt-44/include/QtGui -I../../../../qt-44/include/QtXml -I../../../../qt-44/include/QtXml -I../../../../qt-44/include/QtScript -I../../../../qt-44/include/QtScript -I../../../../qt-44/include -I../src -I../src/StyleDialog -Irelease -Irelease -o release/textedit.o ../src/textedit.cpp
    2. In file included from ../src/textedit.h:28,
    3. from ../src/textedit.cpp:22:
    4. ../src/userblockdata.h: In constructor ‘QBlockData::QBlockData()’:
    5. ../src/userblockdata.h:58: warning: ‘QBlockData::collapsedBlock’ will be initialized after
    6. ../src/userblockdata.h:55: warning: ‘bool QBlockData::marked’
    7. ../src/userblockdata.h:43: warning: when initialized here
    8. ../src/textedit.cpp: In member function ‘virtual void TextEdit::paintEvent(QPaintEvent*)’:
    9. ../src/textedit.cpp:83: error: no matching function for call to ‘TextEdit::paintBracketForward(QTextCursor&, int&, QChar, QChar)’
    10. ../src/textedit.h:75: note: candidates are: void TextEdit::paintBracketForward(QTextCursor&, int, QChar&, QChar&)
    11. ../src/textedit.cpp:87: error: no matching function for call to ‘TextEdit::paintBracketBack(QTextCursor&, int&, QChar, QChar)’
    12. ../src/textedit.h:76: note: candidates are: void TextEdit::paintBracketBack(QTextCursor&, int, QChar&, QChar&)
    13. ../src/textedit.cpp:91: error: no matching function for call to ‘TextEdit::paintBracketForward(QTextCursor&, int&, QChar, QChar)’
    14. ../src/textedit.h:75: note: candidates are: void TextEdit::paintBracketForward(QTextCursor&, int, QChar&, QChar&)
    15. ../src/textedit.cpp:95: error: no matching function for call to ‘TextEdit::paintBracketBack(QTextCursor&, int&, QChar, QChar)’
    16. ../src/textedit.h:76: note: candidates are: void TextEdit::paintBracketBack(QTextCursor&, int, QChar&, QChar&)
    17. ../src/textedit.cpp:99: error: no matching function for call to ‘TextEdit::paintBracketForward(QTextCursor&, int&, QChar, QChar)’
    18. ../src/textedit.h:75: note: candidates are: void TextEdit::paintBracketForward(QTextCursor&, int, QChar&, QChar&)
    19. ../src/textedit.cpp:103: error: no matching function for call to ‘TextEdit::paintBracketBack(QTextCursor&, int&, QChar, QChar)’
    20. ../src/textedit.h:76: note: candidates are: void TextEdit::paintBracketBack(QTextCursor&, int, QChar&, QChar&)
    21. ../src/textedit.cpp: At global scope:
    22. ../src/textedit.cpp:109: warning: unused parameter ‘end’
    23. make[1]: *** [release/textedit.o] Error 1
    24. make[1]: Leaving directory `/home/elcuco/src/qeditor/qPEditor/qPEditorPlugin'
    25. make: *** [sub-qPEditorPlugin-make_default] Error 2
    26. [elcuco@localhost qPEditor]$
    To copy to clipboard, switch view to plain text mode 

    Edit:

    You are passing a QChar() to a function which needs a reference. The workaround is simple:
    Qt Code:
    1. if ( CurrentLineVisible && CurrentLineColor.isValid() )
    2. {
    3. QChar c1 = '{';
    4. QChar c2 = '}';
    5. ...
    6. switch ( cc )
    7. {
    8. case '{':
    9. if ( !exists( pos )) break;
    10. paintBracketForward( cur, pos , c1=QChar( '{' ), c2=QChar( '}' ) );
    11. break;
    To copy to clipboard, switch view to plain text mode 

    Note what that I just added, c1=QChar() statements in all the cases. Now it compiles and works.
    Last edited by elcuco; 8th July 2008 at 21:12. Reason: found the bug

  3. #3
    Join Date
    Jan 2007
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: qPEditor - the editor for the programmer.

    Quote Originally Posted by elcuco View Post
    Version 1.1.0 does not compile here (Mandriva 2008.1, Qt4.4.0)

    Qt Code:
    1. g++ -c -pipe -g -D_REENTRANT -Wall -W -fPIC -DEDITORPLUGIN -DQT_PLUGIN -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I../../../../qt-44/mkspecs/linux-g++ -I. -I../../../../qt-44/include/QtDesigner -I../../../../qt-44/include/QtCore -I../../../../qt-44/include/QtCore -I../../../../qt-44/include/QtGui -I../../../../qt-44/include/QtGui -I../../../../qt-44/include/QtXml -I../../../../qt-44/include/QtXml -I../../../../qt-44/include/QtScript -I../../../../qt-44/include/QtScript -I../../../../qt-44/include -I../src -I../src/StyleDialog -Irelease -Irelease -o release/textedit.o ../src/textedit.cpp
    2. In file included from ../src/textedit.h:28,
    3. from ../src/textedit.cpp:22:
    4. ../src/userblockdata.h: In constructor ‘QBlockData::QBlockData()’:
    5. ../src/userblockdata.h:58: warning: ‘QBlockData::collapsedBlock’ will be initialized after
    6. ../src/userblockdata.h:55: warning: ‘bool QBlockData::marked’
    7. ../src/userblockdata.h:43: warning: when initialized here
    8. ../src/textedit.cpp: In member function ‘virtual void TextEdit::paintEvent(QPaintEvent*)’:
    9. ../src/textedit.cpp:83: error: no matching function for call to ‘TextEdit::paintBracketForward(QTextCursor&, int&, QChar, QChar)’
    10. ../src/textedit.h:75: note: candidates are: void TextEdit::paintBracketForward(QTextCursor&, int, QChar&, QChar&)
    11. ../src/textedit.cpp:87: error: no matching function for call to ‘TextEdit::paintBracketBack(QTextCursor&, int&, QChar, QChar)’
    12. ../src/textedit.h:76: note: candidates are: void TextEdit::paintBracketBack(QTextCursor&, int, QChar&, QChar&)
    13. ../src/textedit.cpp:91: error: no matching function for call to ‘TextEdit::paintBracketForward(QTextCursor&, int&, QChar, QChar)’
    14. ../src/textedit.h:75: note: candidates are: void TextEdit::paintBracketForward(QTextCursor&, int, QChar&, QChar&)
    15. ../src/textedit.cpp:95: error: no matching function for call to ‘TextEdit::paintBracketBack(QTextCursor&, int&, QChar, QChar)’
    16. ../src/textedit.h:76: note: candidates are: void TextEdit::paintBracketBack(QTextCursor&, int, QChar&, QChar&)
    17. ../src/textedit.cpp:99: error: no matching function for call to ‘TextEdit::paintBracketForward(QTextCursor&, int&, QChar, QChar)’
    18. ../src/textedit.h:75: note: candidates are: void TextEdit::paintBracketForward(QTextCursor&, int, QChar&, QChar&)
    19. ../src/textedit.cpp:103: error: no matching function for call to ‘TextEdit::paintBracketBack(QTextCursor&, int&, QChar, QChar)’
    20. ../src/textedit.h:76: note: candidates are: void TextEdit::paintBracketBack(QTextCursor&, int, QChar&, QChar&)
    21. ../src/textedit.cpp: At global scope:
    22. ../src/textedit.cpp:109: warning: unused parameter ‘end’
    23. make[1]: *** [release/textedit.o] Error 1
    24. make[1]: Leaving directory `/home/elcuco/src/qeditor/qPEditor/qPEditorPlugin'
    25. make: *** [sub-qPEditorPlugin-make_default] Error 2
    26. [elcuco@localhost qPEditor]$
    To copy to clipboard, switch view to plain text mode 

    Edit:

    You are passing a QChar() to a function which needs a reference. The workaround is simple:
    Qt Code:
    1. if ( CurrentLineVisible && CurrentLineColor.isValid() )
    2. {
    3. QChar c1 = '{';
    4. QChar c2 = '}';
    5. ...
    6. switch ( cc )
    7. {
    8. case '{':
    9. if ( !exists( pos )) break;
    10. paintBracketForward( cur, pos , c1=QChar( '{' ), c2=QChar( '}' ) );
    11. break;
    To copy to clipboard, switch view to plain text mode 

    Note what that I just added, c1=QChar() statements in all the cases. Now it compiles and works.
    Version qPEditor is updated to 1.1.1
    Removal mistake.

    elcuco

    We ask to check the amendable version and report the result.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.