[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: about the source code of kget
From: Matthias Fuchs <mat69 () gmx ! net>
Date: 2010-08-18 8:51:52
Message-ID: 201008181052.03858.mat69 () gmx ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Am Donnerstag 08 Juli 2010, 17:39:19 schrieb jialrs@126.com:
> i just reading the source of the kget , but i found some confusing codes ,
> show as fellow:
>
> file : kget/ui/viewscontainer.cpp
>
> ViewsContainer::ViewsContainer(QWidget * parent)
>
> : QWidget(parent)
>
> {
> ....
>
> m_downloadsBt = new ButtonBase(); // <------ mark 1
> m_downloadsBt->setText(i18n("Downloads"));
> m_downloadsBt->setIcon(SmallIcon("kget"));
> m_downloadsBt->setChecked(true);
>
> // m_finishedBt = new ButtonBase();
> // m_finishedBt->setText(i18n("Old Mainview"));
> // m_finishedBt->setIcon(SmallIcon("dialog-ok"));
>
> m_transfersBt = new TransfersButton();
>
> m_HLayout->addWidget(m_downloadsBt);
> // m_HLayout->addWidget(m_finishedBt);
> m_HLayout->addStretch(1);
> m_HLayout->addWidget(new QLabel(i18n("Transfer details:"), this)); //
> <----- mark 2 m_HLayout->addWidget(m_transfersBt);
>
> ....
> }
>
> i can't understand the source code where i marked , because i can't tell
> what function the will do , i just don't find the button with text of
> "Downloads" and the label with "Transfer details:" on the mainWindow , so
> what the source code do ?
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
The code you quoted is outdated and not used, neither in 4.5 branch, nor in
trunk --> it is even removed in both branches.
In any case if you want to get more info on KGet code, there is a irc channel
on freenode #kget and also a ml. :)
Cheers!
mattias
["signature.asc" (application/pgp-signature)]
>> 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