git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30407 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2009-04-25 18:55:15 +00:00
parent ed6b05a525
commit 78f567c478
+10 -11
View File
@@ -19,20 +19,20 @@
namespace Bluetooth { namespace Bluetooth {
DeviceListItem::DeviceListItem(BluetoothDevice* bDevice) DeviceListItem::DeviceListItem(BluetoothDevice* bDevice)
: BListItem() : BListItem(),
, fDevice(bDevice) fDevice(bDevice)
{ {
SetDevice(fDevice); SetDevice(fDevice);
} }
DeviceListItem::DeviceListItem(bdaddr_t bdaddr, DeviceClass dClass, int32 rssi) DeviceListItem::DeviceListItem(bdaddr_t bdaddr, DeviceClass dClass, int32 rssi)
: BListItem() : BListItem(),
, fDevice(NULL) fDevice(NULL),
, fAddress(bdaddr) fAddress(bdaddr),
, fClass(dClass) fClass(dClass),
, fName("unknown") fName("unknown"),
, fRSSI(rssi) fRSSI(rssi)
{ {
} }
@@ -138,9 +138,8 @@ DeviceListItem::Update(BView *owner, const BFont *font)
font_height height; font_height height;
font->GetHeight(&height); font->GetHeight(&height);
SetHeight(MAX((height.ascent + height.descent + height.leading) * TEXT_ROWS + (TEXT_ROWS+1)*INSETS, SetHeight(MAX((height.ascent + height.descent + height.leading) * TEXT_ROWS +
DeviceClass::PixelsForIcon + 2 * INSETS)); (TEXT_ROWS+1)*INSETS, DeviceClass::PixelsForIcon + 2 * INSETS));
} }