diff options
| author | 2008-04-08 02:31:28 +0000 | |
|---|---|---|
| committer | 2008-04-08 02:31:28 +0000 | |
| commit | c743b41e834fbb58ce2276cd8cdeeb874c5c3555 (patch) | |
| tree | d45d46a84934dc715714b2950e31e507f22e36b9 /src/modules/editor/scripteditor.cpp | |
| parent | preliminary translation generation support for cmake (diff) | |
| download | KVIrc-c743b41e834fbb58ce2276cd8cdeeb874c5c3555.tar.gz KVIrc-c743b41e834fbb58ce2276cd8cdeeb874c5c3555.tar.bz2 KVIrc-c743b41e834fbb58ce2276cd8cdeeb874c5c3555.zip | |
ported actioneditor module, code clean
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1425 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/editor/scripteditor.cpp')
| -rw-r--r-- | src/modules/editor/scripteditor.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index c2ef699fa..44703c79b 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -313,7 +313,7 @@ void KviScriptEditorWidget::keyPressEvent(QKeyEvent * e) } } switch(e->key()) - { + { case Qt::Key_Period: case Qt::Key_Left: case Qt::Key_Right: @@ -386,7 +386,7 @@ void KviScriptEditorWidget::contentsMousePressEvent(QMouseEvent *e) QString tmp=buffer; KviPointerList<QString> l; if (tmp.left(1) == "$") - { + { tmp.remove(0,1); KviKvsKernel::instance()->completeFunction(tmp,&l); if (l.count() != 1) buffer=""; @@ -554,7 +554,6 @@ KviScriptSyntaxHighlighter::~KviScriptSyntaxHighlighter() #define IN_STRING 4 int KviScriptSyntaxHighlighter::highlightParagraph(const QString &text,int endStateOfLastPara) - { const QChar * pBuf = (const QChar *)text.ucs2(); const QChar * c = pBuf; @@ -568,7 +567,6 @@ int KviScriptSyntaxHighlighter::highlightParagraph(const QString &text,int endSt const QChar * pBegin; - while(c->unicode()) { if(bInComment) @@ -608,7 +606,6 @@ int KviScriptSyntaxHighlighter::highlightParagraph(const QString &text,int endSt continue; } - if(bNewCommand) { bNewCommand = false; @@ -872,7 +869,6 @@ void KviScriptEditorImplementation::loadOptions() g_pEditorModulePointer->getDefaultConfigFileName(tmp); KviConfig cfg(tmp,KviConfig::Read); - g_clrBackground = cfg.readColorEntry("Background",QColor(0,0,0));; g_clrNormalText = cfg.readColorEntry("NormalText",QColor(100,255,0)); g_clrBracket = cfg.readColorEntry("Bracket",QColor(255,0,0)); @@ -882,7 +878,6 @@ void KviScriptEditorImplementation::loadOptions() g_clrVariable = cfg.readColorEntry("Variable",QColor(200,200,200)); g_clrPunctuation = cfg.readColorEntry("Punctuation",QColor(180,180,0)); g_clrFind = cfg.readColorEntry("Find",QColor(255,0,0)); - g_fntNormal = cfg.readFontEntry("Font",QFont("Fixed",12)); } @@ -918,7 +913,6 @@ void KviScriptEditorImplementation::saveOptions() g_pEditorModulePointer->getDefaultConfigFileName(tmp); KviConfig cfg(tmp,KviConfig::Write); - cfg.writeEntry("Background",g_clrBackground);; cfg.writeEntry("NormalText",g_clrNormalText); cfg.writeEntry("Bracket",g_clrBracket); |
