|
|
@ -657,6 +657,7 @@ void DeviceWizard::slotInsertDevice(const TQString& path)
|
|
|
|
|
|
|
|
|
|
|
|
//device was not setup it belongs to the new device list
|
|
|
|
//device was not setup it belongs to the new device list
|
|
|
|
TQString mimeType = DeviceMimeConverter::classToMimeType(devclass);
|
|
|
|
TQString mimeType = DeviceMimeConverter::classToMimeType(devclass);
|
|
|
|
|
|
|
|
TQListViewItem *ndevlist = new TQListViewItem(devicedlg_ext->newdevList, name, addr);
|
|
|
|
TQString type;
|
|
|
|
TQString type;
|
|
|
|
if (mimeType == "bluetooth/peripheral-device-class")
|
|
|
|
if (mimeType == "bluetooth/peripheral-device-class")
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -684,15 +685,14 @@ void DeviceWizard::slotInsertDevice(const TQString& path)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (mimeType == "bluetooth/computer-device-class")
|
|
|
|
else if (mimeType == "bluetooth/computer-device-class")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
type = i18n("computer");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
type = i18n("unknown");
|
|
|
|
type = i18n("unknown");
|
|
|
|
|
|
|
|
ndevlist->setSelectable(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQListViewItem *ndevlist = new TQListViewItem(devicedlg_ext->newdevList, name, addr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TQString iconName = DeviceMimeConverter::classToIconName(devclass);
|
|
|
|
TQString iconName = DeviceMimeConverter::classToIconName(devclass);
|
|
|
|
KPixmap pix2 = TDEGlobal::iconLoader()->loadIcon(iconName, TDEIcon::Small, 32);
|
|
|
|
KPixmap pix2 = TDEGlobal::iconLoader()->loadIcon(iconName, TDEIcon::Small, 32);
|
|
|
|
ndevlist->setPixmap(2, pix2);
|
|
|
|
ndevlist->setPixmap(2, pix2);
|
|
|
@ -776,6 +776,17 @@ void DeviceWizard::slotSetupNewDevice()
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!confSel->isSelectable())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TQMessageBox::information(this,
|
|
|
|
|
|
|
|
i18n("Setup device"),
|
|
|
|
|
|
|
|
i18n("This device is not configurable!"),
|
|
|
|
|
|
|
|
TQMessageBox::Ok | TQMessageBox::Default,
|
|
|
|
|
|
|
|
TQMessageBox::NoButton,
|
|
|
|
|
|
|
|
TQMessageBox::NoButton);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQString selAddr = confSel->text(1);
|
|
|
|
TQString selAddr = confSel->text(1);
|
|
|
|
DeviceImpl *newdev;
|
|
|
|
DeviceImpl *newdev;
|
|
|
|
|
|
|
|
|
|
|
|