[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: about the source code of kget
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2010-07-08 15:52:56
Message-ID: 20100708155256.GH25951 () neo ! apaku ! dnsalias ! org
[Download RAW message or body]
On 08.07.10 23:39:19, jialrs@126.com wrote:
> 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 ?
Well, look up what happens to m_HLayout. Maybe its never used?
Andreas
--
Give thought to your reputation. Consider changing name and moving to
a new town.
>> 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