I have updated qscintilla to the latest version. the problem was gone...

2010/9/27 Samuel Nascimento Pagliarini <[email protected]>:
> Hey,
>
> this is the code I am using to annotate into the editor: (novo is a QFile)
>
> QByteArray array = novo.readAll();
>        QString aux;
>
>        novo.close();
>
>        aux.prepend(array);
>
>        ui->editor->setText(aux);
>
>        QsciStyle ok(-1);
>        ok.setColor(QColor("green"));
>
>        QList<int>::iterator it;
>
>        it = my->branch_handler.lines.begin();
>
>        while (it != my->branch_handler.lines.end()) {
>                QsciStyledText helper(QString("this is not working :-("), ok);
>                ui->editor->annotate(*it, helper);
>                it++;
>        }
>
> for some reason it is not working. every line that I annotate is
> showing the text content doubled. The attached image shows that
> behavior on lines 64, 65, ...
>
> Any thoughts?
>
_______________________________________________
QScintilla mailing list
[email protected]
http://www.riverbankcomputing.com/mailman/listinfo/qscintilla

Reply via email to