mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kinfocenter: implement exporting of information for currently selected device item from usbview module
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ead5eb7e5b
commit
11bb4bf6d3
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <QList>
|
||||
#include <QTreeWidget>
|
||||
#include <QHeaderView>
|
||||
#include <QDebug>
|
||||
|
||||
#include <kaboutdata.h>
|
||||
#include <kdialog.h>
|
||||
|
@ -33,6 +34,7 @@ USBViewer::USBViewer(QWidget *parent, const QVariantList &) :
|
|||
KCModule(USBFactory::componentData(), parent) {
|
||||
|
||||
setQuickHelp(i18n("This module allows you to see the devices attached to your USB bus(es)."));
|
||||
setButtons(KCModule::Help | KCModule::Export);
|
||||
|
||||
QHBoxLayout *mainLayout = new QHBoxLayout(this);
|
||||
mainLayout->setMargin(0);
|
||||
|
@ -158,6 +160,10 @@ void USBViewer::refresh() {
|
|||
if (_devices->selectedItems().isEmpty() == true) {
|
||||
selectionChanged(_devices->topLevelItem(0));
|
||||
}
|
||||
|
||||
// TODO: export all devices information
|
||||
setExportText(_details->toPlainText());
|
||||
// qDebug() << Q_FUNC_INFO << _details->toPlainText();
|
||||
}
|
||||
|
||||
void USBViewer::selectionChanged(QTreeWidgetItem *item) {
|
||||
|
|
Loading…
Add table
Reference in a new issue