[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Using KCategorizedView
From: Pierre Stirnweiss <pstirnweiss () googlemail ! com>
Date: 2012-10-09 6:36:29
Message-ID: CAOjaSmi8oq4Nja_yHeNckThWbn0BOO1ZKTvmfYy54Wcc95qSgQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Mon, Oct 8, 2012 at 11:57 PM, Ben Cooksley <bcooksley@kde.org> wrote:
> On Tue, Oct 9, 2012 at 8:27 AM, Pierre Stirnweiss
> <pstirnweiss@googlemail.com> wrote:
> > Hello everybody,
>
> Hi Pierre,
>
> >
> > As I am new to this list, first a little introduction:
> > My name is Pierre Stirnweiss. I am french and 37 years old and currently
> > live in Munich, Germany. I work on Calligra Words.
> >
> > Now to the stuff:
> >
> > I am having problems using the KCategorizedView.
> >
> > Here is the code: http://paste.kde.org/564680/
> >
> > The code is used in Calligra Words for the StylesManager dialog.
> >
> > What happens is:
> >
> > The items are properly displayed on opening the dialog. However, if I
> scroll
> > the viewport with the mouse wheel, nothing happens. If I scroll it using
> the
> > scrollbar's cursor, it starts by scrolling the items, then when the last
> one
> > is reached, I can continue scrolling, but again, only the first items are
> > displayed.
> > Also it seems that subSortLessThan is never called. lessThan neither
> > actually.
> >
> > If i use a normal QListView, or if I don't setCategorizedModel(true), the
> > viewport scrolls normally. Sorting does not happen either.
> >
> > I have already lost a lot of hair on this and hope somebody can help me.
>
> I notice you have not set a Category Drawer, which could be the cause of
> this.
> You may find the code in IconMode::initWidget() in
> kde-workspace/systemsettings/icons/IconMode.cpp to be helpful here.
>
> >
> > PierreSt
> > Calligra Words developer
>
> Regards,
> Ben Cooksley
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
Thanks for your answer. The KCategoryDrawer is created line 666 and set
line 670 (of the paste). Do I need to implement a special one? The category
title is actually properly drawn (AFAICS)
PierreSt
[Attachment #5 (text/html)]
On Mon, Oct 8, 2012 at 11:57 PM, Ben Cooksley <span dir="ltr"><<a \
href="mailto:bcooksley@kde.org" target="_blank">bcooksley@kde.org</a>></span> \
wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 \
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Oct 9, 2012 at 8:27 AM, Pierre Stirnweiss<br>
<<a href="mailto:pstirnweiss@googlemail.com">pstirnweiss@googlemail.com</a>> \
wrote:<br> > Hello everybody,<br>
<br>
Hi Pierre,<br>
<div><div class="h5"><br>
><br>
> As I am new to this list, first a little introduction:<br>
> My name is Pierre Stirnweiss. I am french and 37 years old and currently<br>
> live in Munich, Germany. I work on Calligra Words.<br>
><br>
> Now to the stuff:<br>
><br>
> I am having problems using the KCategorizedView.<br>
><br>
> Here is the code: <a href="http://paste.kde.org/564680/" \
target="_blank">http://paste.kde.org/564680/</a><br> ><br>
> The code is used in Calligra Words for the StylesManager dialog.<br>
><br>
> What happens is:<br>
><br>
> The items are properly displayed on opening the dialog. However, if I scroll<br>
> the viewport with the mouse wheel, nothing happens. If I scroll it using the<br>
> scrollbar's cursor, it starts by scrolling the items, then when the last \
one<br> > is reached, I can continue scrolling, but again, only the first items \
are<br> > displayed.<br>
> Also it seems that subSortLessThan is never called. lessThan neither<br>
> actually.<br>
><br>
> If i use a normal QListView, or if I don't setCategorizedModel(true), \
the<br> > viewport scrolls normally. Sorting does not happen either.<br>
><br>
> I have already lost a lot of hair on this and hope somebody can help me.<br>
<br>
</div></div>I notice you have not set a Category Drawer, which could be the cause of \
this.<br> You may find the code in IconMode::initWidget() in<br>
kde-workspace/systemsettings/icons/IconMode.cpp to be helpful here.<br>
<br>
><br>
> PierreSt<br>
> Calligra Words developer<br>
<br>
Regards,<br>
Ben Cooksley<br>
<br>
>> Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe <<<br> </blockquote></div><br>Thanks for your answer. The \
KCategoryDrawer is created line 666 and set line 670 (of the paste). Do I need to \
implement a special one? The category title is actually properly drawn \
(AFAICS)<br><br>
PierreSt<br>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic