Changeset View
Changeset View
Standalone View
Standalone View
Modules/nics/nic.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 86 | KCMNic::KCMNic(QWidget *parent, const QVariantList &) : | |||
---|---|---|---|---|---|
90 | m_list=new QTreeWidget(this); | 90 | m_list=new QTreeWidget(this); | ||
91 | m_list->setRootIsDecorated(false); | 91 | m_list->setRootIsDecorated(false); | ||
92 | box->addWidget(m_list); | 92 | box->addWidget(m_list); | ||
93 | QStringList columns; | 93 | QStringList columns; | ||
94 | columns<<i18n("Name")<<i18n("IP Address")<<i18n("Network Mask")<<i18n("Type")<<i18n("State")<<i18n("HWAddr"); | 94 | columns<<i18n("Name")<<i18n("IP Address")<<i18n("Network Mask")<<i18n("Type")<<i18n("State")<<i18n("HWAddr"); | ||
95 | m_list->setHeaderLabels(columns); | 95 | m_list->setHeaderLabels(columns); | ||
96 | QHBoxLayout *hbox=new QHBoxLayout(); | 96 | QHBoxLayout *hbox=new QHBoxLayout(); | ||
97 | box->addItem(hbox); | 97 | box->addItem(hbox); | ||
98 | m_updateButton=new QPushButton(i18n("&Update"),this); | 98 | m_updateButton=new QPushButton(i18n("&Update"),this); | ||
ngraham: Unrelated whitespace change; please revert. | |||||
99 | hbox->addWidget(m_updateButton); | | |||
100 | hbox->addStretch(1); | 99 | hbox->addStretch(1); | ||
100 | hbox->addWidget(m_updateButton); | ||||
101 | QTimer* timer=new QTimer(this); | 101 | QTimer* timer=new QTimer(this); | ||
102 | timer->start(60000); | 102 | timer->start(60000); | ||
ngraham: Unrelated whitespace change; please revert. | |||||
103 | connect(m_updateButton, &QPushButton::clicked, this, &KCMNic::update); | 103 | connect(m_updateButton, &QPushButton::clicked, this, &KCMNic::update); | ||
104 | connect(timer, &QTimer::timeout, this, &KCMNic::update); | 104 | connect(timer, &QTimer::timeout, this, &KCMNic::update); | ||
105 | update(); | 105 | update(); | ||
106 | KAboutData *about = new KAboutData(i18n("kcminfo"), | 106 | KAboutData *about = new KAboutData(i18n("kcminfo"), | ||
107 | i18n("System Information Control Module"), | 107 | i18n("System Information Control Module"), | ||
108 | QString(), QString(), KAboutLicense::GPL, | 108 | QString(), QString(), KAboutLicense::GPL, | ||
109 | i18n("(c) 2001 - 2002 Alexander Neundorf")); | 109 | i18n("(c) 2001 - 2002 Alexander Neundorf")); | ||
110 | 110 | | |||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |
Unrelated whitespace change; please revert.