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

List:       kde-devel
Subject:    Re: Dragon Player- Junior Job
From:       Anmol Ahuja <anmolan () gmail ! com>
Date:       2013-02-11 2:33:37
Message-ID: CAJUe5NkFJ-NPPa8kA1+toe-f3rYf8CpSeB0Nua95DGy65JF6oQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Sorry for all the confusion, I finally found some documentation. Most of
the existing documentation links point to some trolltech website, which is
down and not in Google's cache. Does it have a mirror?
I'll work on it later today.
Thanks :)

---
Anmol
On Feb 11, 2013 3:14 AM, "Albert Astals Cid" <aacid@kde.org> wrote:

> El Dilluns, 11 de febrer de 2013, a les 01:50:05, Anmol Ahuja va escriure:
> > As my first contribution to KDE, I decided to work on the (only) dragon
> > player junior job, because it looked pretty simple.
> > I'm supposed to add a status-bar toggle to the settings menu:
> > https://bugs.kde.org/show_bug.cgi?id=288323
> >
> > I tried modifying the code, adding a statusbar toggle by modifying the
> > menubar toggle code (using KStandardAction)-
> > (PATCH<http://pastebin.com/9zj2E8Vj>
> > 1).
> > But it just wouldn't work.
>
> The name of your action and the name of the item in the .rc file have to
> match, otherwise no magic can happen.
>
> >
> > Then I tried adding it like a normal KAction, using an the Object name  I
> > declared in the .rc file (<Action name="options_show_statusbar"/>), but
> it
> > just wouldn't show up in the settings menu, until I tried using an
> existing
> > name, "unique", and then it magically appeared.
> >
> > And another strange thing, when I randomly tried ObjectName as
> > "show_status", (PATCH2 <http://pastebin.com/TnR4Sz4h>), it appeared in
> the
> > Toolbar. I don't quite understand how, though. Is it some standard KDE
> > thing?
> >
> > Could someone please help me through my first patch?
>
> Any reason you are not using KStandardAction::showStatusbar?
>
> Cheers,
>   Albert
>
> P.S: Dragon is evil by using noMerge="1" in its menubar but i guess you're
> not
> the one i should complain about that :D
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>

[Attachment #5 (text/html)]

<p dir="ltr">Sorry for all the confusion, I finally found some documentation. Most of \
the existing documentation links point to some trolltech website, which is down and \
not in Google&#39;s cache. Does it have a mirror?<br>

I&#39;ll work on it later today.<br>
Thanks :)</p>
<p dir="ltr">---<br>
Anmol</p>
<div class="gmail_quote">On Feb 11, 2013 3:14 AM, &quot;Albert Astals Cid&quot; \
&lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> El Dilluns, 11 de febrer de 2013, \
a les 01:50:05, Anmol Ahuja va escriure:<br> &gt; As my first contribution to KDE, I \
decided to work on the (only) dragon<br> &gt; player junior job, because it looked \
pretty simple.<br> &gt; I&#39;m supposed to add a status-bar toggle to the settings \
menu:<br> &gt; <a href="https://bugs.kde.org/show_bug.cgi?id=288323" \
target="_blank">https://bugs.kde.org/show_bug.cgi?id=288323</a><br> &gt;<br>
&gt; I tried modifying the code, adding a statusbar toggle by modifying the<br>
&gt; menubar toggle code (using KStandardAction)-<br>
&gt; (PATCH&lt;<a href="http://pastebin.com/9zj2E8Vj" \
target="_blank">http://pastebin.com/9zj2E8Vj</a>&gt;<br> &gt; 1).<br>
&gt; But it just wouldn&#39;t work.<br>
<br>
The name of your action and the name of the item in the .rc file have to<br>
match, otherwise no magic can happen.<br>
<br>
&gt;<br>
&gt; Then I tried adding it like a normal KAction, using an the Object name  I<br>
&gt; declared in the .rc file (&lt;Action \
name=&quot;options_show_statusbar&quot;/&gt;), but it<br> &gt; just wouldn&#39;t show \
up in the settings menu, until I tried using an existing<br> &gt; name, \
&quot;unique&quot;, and then it magically appeared.<br> &gt;<br>
&gt; And another strange thing, when I randomly tried ObjectName as<br>
&gt; &quot;show_status&quot;, (PATCH2 &lt;<a href="http://pastebin.com/TnR4Sz4h" \
target="_blank">http://pastebin.com/TnR4Sz4h</a>&gt;), it appeared in the<br> &gt; \
Toolbar. I don&#39;t quite understand how, though. Is it some standard KDE<br> &gt; \
thing?<br> &gt;<br>
&gt; Could someone please help me through my first patch?<br>
<br>
Any reason you are not using KStandardAction::showStatusbar?<br>
<br>
Cheers,<br>
  Albert<br>
<br>
P.S: Dragon is evil by using noMerge=&quot;1&quot; in its menubar but i guess \
you&#39;re not<br> the one i should complain about that :D<br>
<br>
&gt;&gt; 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 &lt;&lt;<br> </blockquote></div>



>> 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