[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: =?utf-8?q?about_the_source_code_of_kget?=
From: <jialrs () 126 ! com>
Date: 2010-07-08 15:39:19
Message-ID: 4C35F15C.000AA9.32076 () m15-114 ! 126 ! com
[Download RAW message or body]
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 <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic