[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ktexteditor-devel
Subject:    code completion
From:       Anders Lund <anders () alweb ! dk>
Date:       2007-02-03 21:44:53
Message-ID: 200702032244.55776.anders () alweb ! dk
[Download RAW message or body]

Hi Hamish (& others)

I try to get the word completion to work with the new interface, but so far i 
havent been able to convince the completion popup to display anything at all.

I guess that the data() method in my completion model should behave 
differently, but how?

For DisplayRole, I return the string itself.
For CompletionRole I return (int)FirstProperty|LastProperty (after trying a 
number of NONWORKING combinations)
For MatchType I return true
For HighlightingMethod I return QVariant::Invalid
For ScopeIndex I return -1
For InheritanceDepth I return 0

Remember that in this simple form of completion ALL items should just be 
available.

-anders

-- 
www: http://www.alweb.dk
jabber: anderslund@jabber.dk
_______________________________________________
KTextEditor-Devel mailing list
KTextEditor-Devel@kde.org
https://mail.kde.org/mailman/listinfo/ktexteditor-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic