https://bugs.kde.org/show_bug.cgi?id=383390
            Bug ID: 383390
           Summary: Please move TextBlockUserData from
                    syntaxhighlighter.cpp to the syntaxhighlighter.h
           Product: frameworks-syntax-highlighting
           Version: unspecified
          Platform: MS Windows
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: framework
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: szyk...@o2.pl
  Target Milestone: ---

Hi
In connection to https://bugs.kde.org/show_bug.cgi?id=383350 problem.
I study KTextEditor sources and I found complex code for bookmark handling. I
found easy way to avoid this in my code. How ever now my editor require
KSyntaxhighlighter in order to compile. So maybe my solution is not acceptable
for KTextEditor.
My solution is:
1. move TextBlockUserData from syntaxhighlighter.cpp to the syntaxhighlighter.h
2. inherit TextBlockUserData by LineInfo class used by my Editor class in order
to add bookmark info (enabled and position in line).

Now it works as expected. But modularity hurts. But I think it is acceptable in
simple editors like mine.

thanks and best regards
Szyk Cech

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to