Source Code (Use browser search to find items of interest.)
Class Index
ksysctrl'GeneralInfoBox (./kdeadmin/ksysctrl/ksysctrl/geninfobox.h:29)
class GeneralInfoBox : public QWidget
{
public:
GeneralInfoBox(Device *, QWidget *parent = 0L, const char *name = 0L);
~GeneralInfoBox() {}
};
ksysctrl'GeneralInfoBox::GeneralInfoBox() (./kdeadmin/ksysctrl/ksysctrl/geninfobox.cpp:30)
GeneralInfoBox::GeneralInfoBox(Device *device, QWidget *parent,
const char *name) : QWidget(parent, name)
{
QString typestr, vendorstr;
typestr = device->deviceBaseClassName();
vendorstr = device->vendorName();
QLabel *typelabel = new QLabel(i18n("Device type:"), this, "typelabel");
QLabel *typevalue = new QLabel(typestr, this, "typevalue");
QLabel *vendorlabel = new QLabel(i18n("Manufacturer:"), this, "vendorlabel");
QLabel *vendorvalue = new QLabel(vendorstr, this, "vendorvalue");
QHBoxLayout *toplayout = new QHBoxLayout(this, -1, -1, "toplayout");
QGridLayout *gridlayout = new QGridLayout(toplayout, 3, 3);
gridlayout->addColSpacing(1, 8);
gridlayout->addRowSpacing(1, 4);
gridlayout->addWidget(typelabel, 0, 0);
gridlayout->addWidget(typevalue, 0, 2);
gridlayout->addWidget(vendorlabel, 2, 0);
gridlayout->addWidget(vendorvalue, 2, 2);
toplayout->addStretch(1);
toplayout->activate();
}
ksysctrl'GeneralInfoBox::~GeneralInfoBox() (./kdeadmin/ksysctrl/ksysctrl/geninfobox.h:34)
~GeneralInfoBox() {}
};