From kde-devel Thu Jul 08 15:52:56 2010 From: Andreas Pakulat Date: Thu, 08 Jul 2010 15:52:56 +0000 To: kde-devel Subject: Re: about the source code of kget Message-Id: <20100708155256.GH25951 () neo ! apaku ! dnsalias ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=127860443802749 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 <<