Przeglądaj źródła

Small changes in Fb2Scintilla

Kandrashin Denis 13 lat temu
rodzic
commit
3868bd8be3
1 zmienionych plików z 10 dodań i 15 usunięć
  1. 10 15
      source/fb2code.cpp

+ 10 - 15
source/fb2code.cpp

@@ -17,17 +17,16 @@ Fb2Scintilla::Fb2Scintilla(QWidget *parent) :
     setUtf8(true);
     setCaretLineVisible(true);
     setCaretLineBackgroundColor(QColor("gainsboro"));
-//    setWrapMode(QsciScintilla::WrapWord);
-
-    setAutoIndent(true);
-    setIndentationGuides(true);
+    setWrapMode(QsciScintilla::WrapWord);
 
+    /*
     //setup autocompletion
     setAutoCompletionSource(QsciScintilla::AcsAll);
     setAutoCompletionCaseSensitivity(true);
     setAutoCompletionReplaceWord(true);
     setAutoCompletionShowSingle(true);
     setAutoCompletionThreshold(2);
+    */
 
     //setup margins
     setMarginsBackgroundColor(QColor("gainsboro"));
@@ -39,24 +38,20 @@ Fb2Scintilla::Fb2Scintilla(QWidget *parent) :
     setMatchedBraceBackgroundColor(Qt::yellow);
     setUnmatchedBraceForegroundColor(Qt::blue);
 
-//    this->setFolding(QsciScintilla::CircledTreeFoldStyle, 1);
-    this->setIndentation(true,4);
-    this->setAutoIndent(true);
-
     //setup end-of-line mode
     #if defined Q_WS_X11
-    this->setEolMode(QsciScintilla::EolUnix);
+    setEolMode(QsciScintilla::EolUnix);
     #elif defined Q_WS_WIN
-    this->setEolMode(QsciScintilla::EolWindows);
+    setEolMode(QsciScintilla::EolWindows);
     #elif defined Q_WS_MAC
-    this->setEolMode(QsciScintilla::EolMac);
+    setEolMode(QsciScintilla::EolMac);
     #endif
 
     //setup auto-indentation
-    this->setAutoIndent(true);
-    this->setIndentationGuides(true);
-    this->setIndentationsUseTabs(false);
-    this->setIndentationWidth(2);
+    setAutoIndent(true);
+    setIndentationGuides(true);
+    setIndentationsUseTabs(false);
+    setIndentationWidth(2);
 
     QsciLexerXML * lexer = new QsciLexerXML;
     lexer->setFoldPreprocessor(true);