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

List:       kde-panel-devel
Subject:    Re: Plasma QML scrollbar
From:       Daker Fernandes Pinheiro <dakerfp () gmail ! com>
Date:       2011-08-10 10:03:49
Message-ID: CAHhpqgaQHHgeMy_mBbK+XAk-cDunYNBGLEcxUEH+DyYFVZZ9vQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


2011/8/10 Nuno Pinheiro <nuno.pinheiro@kdab.com>

> **
>
> A Quarta, 10 de Agosto de 2011 06:08:56 Shaun Reich voc=C3=AA escreveu:
>
> > How can I get a scrollbar, preferably one that fades away when not
>
> > needed and such, to be displayed in qml?
>
> >
>
> > Does the QML components gsoc touch on that?
>

The ScrollBar component has exactly this behaviour.
I'm still working on a separated branch (plasma/declarative) in kde-runtime=
.
But I will do a merge and a documentation release until next week's end.
Until there you can get the component from my branch and use it in your
project.
Shouldn't be hard to change it later, because it will only require you to
add a proper import.
In the same branch at plasma/declarativeimports/tests/gallery you will find
examples of usage of the current components.


>  >
>
> > I ask because I had an urge to port the {konq, konsole, kate} session
>
> > applets to QML.
>
> >
>
> > So I did that tonight, so far the konsole one works quite well -- but
>
> > I'm in need of a scrollbar for the listview.
>
> >
>
> > (since obviously when you have a large number of items, you can't just
>
> > flick everywhere.)
>
>
> if you have the size of what ever you are scroling and can control the
> actula position of it, making a scroolbar should be rather trivial.
>
>
>
>
> --
>
> Nuno Pinheiro | nuno.pinheiro@kdab.com | UI Designer
>
> Klar=C3=A4lvdalens Datakonsult AB, a KDAB Group company
>
> KDAB - Qt Experts - Platform-independent software solutions
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
> Happy hacking,

Daker Fernandes Pinheiro

[Attachment #5 (text/html)]

<div class="gmail_quote">2011/8/10 Nuno Pinheiro <span dir="ltr">&lt;<a \
href="mailto:nuno.pinheiro@kdab.com">nuno.pinheiro@kdab.com</a>&gt;</span><br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">

<u></u>
<div style="font-family:&#39;Monospace&#39;;font-size:9pt;font-weight:400;font-style:normal">
 <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">A \
Quarta, 10 de Agosto de 2011 06:08:56 Shaun Reich vocĂȘ escreveu:</p><div class="im"> \
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
How can I get a scrollbar, preferably one that fades away when not</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
needed and such, to be displayed in qml?</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
</p> <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
Does the QML components gsoc touch on that?</p></div></div></blockquote><div><br>The \
ScrollBar component has exactly this behaviour.<br>

I&#39;m still working on a separated branch (plasma/declarative) in \
kde-runtime.<br>But I will do a merge and a documentation release until next \
week&#39;s end.<br>Until there you can get the component from my branch and use it in \
your project.<br>

Shouldn&#39;t be hard to change it later, because it will only require you to add a \
proper import.<br>In the same branch at plasma/declarativeimports/tests/gallery you \
will find examples of usage of the current components.<br>

  <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; \
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div \
style="font-family: &#39;Monospace&#39;; font-size: 9pt; font-weight: 400; \
font-style: normal;">

<div class="im">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
</p> <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
I ask because I had an urge to port the {konq, konsole, kate} session</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
applets to QML.</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
</p> <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
So I did that tonight, so far the konsole one works quite well -- but</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
I&#39;m in need of a scrollbar for the listview.</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
</p> <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
(since obviously when you have a large number of items, you can&#39;t just</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">&gt; \
flick everywhere.)</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
 </div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">if \
you have the size of what ever you are scroling and can control the actula position \
of it, making a scroolbar should be rather trivial. </p>


<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p><font \
color="#888888"> <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
 <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
 <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">-- \
</p> <p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Nuno \
Pinheiro | <a href="mailto:nuno.pinheiro@kdab.com" \
target="_blank">nuno.pinheiro@kdab.com</a> | UI Designer </p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">KlarÀlvdalens \
Datakonsult AB, a KDAB Group company</p> <p \
style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">KDAB \
- Qt Experts - Platform-independent software \
solutions</p></font></div><br>_______________________________________________<br>


Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote><div>Happy hacking,<br>  <br></div></div>Daker Fernandes Pinheiro



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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