[prev in list] [next in list] [prev in thread] [next in thread]
List: ktexteditor-devel
Subject: Re: code completion
From: Hamish Rodda <rodda () kde ! org>
Date: 2007-02-05 5:01:55
Message-ID: 200702051601.59480.rodda () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sunday 04 February 2007 08:44, Anders Lund wrote:
> 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.
So you get a popup with no items? Have you called setRowCount(), or overriden
rowCount(), so the model knows how many items you have?
(Is the code viewable?)
Cheers,
Hamish.
[Attachment #5 (application/pgp-signature)]
_______________________________________________
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