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

List:       kde-panel-devel
Subject:    kcmodule under kf5
From:       Heena Mahour <heena393 () gmail ! com>
Date:       2013-08-27 19:56:16
Message-ID: CAFCfA1--s_wDrsLkt1Swxbkdw4wFT1nW4_Kgo+JVwkzoh6RQew () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,
I am getting an error while porting kioslave/trash under kf5 that
‘componentData’
is not a member of ‘KCMTrashConfigFactory’
Also ,so I looked at the kcmodule.h and used KAboutData instead like this

TrashConfigModule::TrashConfigModule( QWidget* parent, const QVariantList& )
    : KCModule( parent ), trashInitialize( false )
{
    KAboutData *about = new KAboutData(
        "kcmtrash", 0, ki18n( "trash" ),
        KDE_VERSION_STRING, KLocalizedString(), KAboutData::License_GPL,
        ki18n( "Copyright 2013 Heena Mahour " ) );
        about->addAuthor( ki18n("Heena Mahour") ,KLocalizedString(), "
heena393@gmail.com" );
        setAboutData( about );
}

but that is also giving following errors :
http://pastebin.com/raw.php?i=C5qePwbt

-- 
-Heena
Season of kde'12 participant
Google Summer of Code 2013
Delhi College of Engineering(COE),India
http://about.me/heena.mahour
http://heenamahour.blogspot.in

[Attachment #5 (text/html)]

<div dir="ltr">Hi,<div>I am getting an error while porting kioslave/trash under kf5 \
that <span style="color:rgb(0,0,0);font-family:Consolas,&#39;Lucida \
Console&#39;,monospace;font-size:13px;background-color:rgb(240,247,255)">‘componentData’ \
is not a member of ‘KCMTrashConfigFactory’</span></div> <div><div style><font \
color="#000000" face="Consolas, Lucida Console, monospace">Also ,so I looked at the \
kcmodule.h and used KAboutData instead like this </font></div><div style><font \
color="#000000" face="Consolas, Lucida Console, monospace"><br> </font></div><div \
style><font color="#000000" face="Consolas, Lucida Console, \
monospace"><div>TrashConfigModule::TrashConfigModule( QWidget* parent, const \
QVariantList&amp; )</div><div>    : KCModule( parent ), trashInitialize( false \
)</div> <div>{</div><div>    KAboutData *about = new KAboutData(</div><div>        \
&quot;kcmtrash&quot;, 0, ki18n( &quot;trash&quot; ),</div><div>        \
KDE_VERSION_STRING, KLocalizedString(), KAboutData::License_GPL,</div><div>  ki18n( \
&quot;Copyright 2013 Heena Mahour &quot; ) );</div><div>        about-&gt;addAuthor( \
ki18n(&quot;Heena Mahour&quot;) ,KLocalizedString(), &quot;<a \
href="mailto:heena393@gmail.com">heena393@gmail.com</a>&quot; );</div> <div>        \
setAboutData( about );</div><div>}</div><div><br></div><div>but that is also giving \
following errors :</div><div><a \
href="http://pastebin.com/raw.php?i=C5qePwbt">http://pastebin.com/raw.php?i=C5qePwbt</a><br>
 </div></font></div><div><br></div>-- <br><div dir="ltr"><div \
style="text-align:left"><div \
style="font-family:arial,helvetica,clean,sans-serif;font-size:13px;line-height:15px"><span \
style="background-color:rgb(255,255,255)"><span style="font-family:&#39;lucida \
console&#39;,sans-serif">-Heena</span></span></div> <div \
style="font-family:arial,helvetica,clean,sans-serif;font-size:13px;line-height:15px"><span \
style="background-color:rgb(255,255,255);font-family:&#39;lucida \
console&#39;,sans-serif;font-size:small">Season of kde&#39;12 participant<br> \
</span></div><div style="font-family:arial,helvetica,clean,sans-serif;font-size:13px;line-height:15px"><span \
style="background-color:rgb(255,255,255);font-family:&#39;lucida \
console&#39;,sans-serif;font-size:small">Google Summer of Code 2013</span></div> <div \
style="font-family:arial,helvetica,clean,sans-serif;font-size:13px;line-height:15px"><span \
style="background-color:rgb(255,255,255);font-family:&#39;lucida \
console&#39;,sans-serif;font-size:small">Delhi College of Engineering(COE),India<br> \
</span></div><div><span \
style="background-color:rgb(255,255,255);line-height:15px"><font face="lucida \
console, sans-serif"><a href="http://about.me/heena.mahour" \
target="_blank">http://about.me/heena.mahour</a></font></span></div> <div \
style="font-family:arial,helvetica,clean,sans-serif;font-size:13px;line-height:15px"><span \
style="background-color:rgb(255,255,255)"><span style="font-family:&#39;lucida \
console&#39;,sans-serif;font-size:small"><a href="http://heenamahour.blogspot.in/" \
style="color:blue!important" target="_blank">http://heenamahour.blogspot.in</a><br> \
</span></span></div><div \
style="font-family:arial,helvetica,clean,sans-serif;font-size:13px;line-height:15px"><span \
style="background-color:rgb(255,255,255)"><br></span></div></div></div> </div></div>



_______________________________________________
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