Changeset - 15966e8d47c8
[Not reviewed]
portlist
0 2 1
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-09-13 09:34:46
hy@ozderya.net
added bluetooth icon for rfcomm ports
3 files changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
misc/bluetooth_icon.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
misc/icons.qrc
Show inline comments
 
<RCC>
 
    <qresource prefix="/">
 
        <file>usb_icon.png</file>
 
        <file>bluetooth_icon.png</file>
 
    </qresource>
 
</RCC>
portlist.cpp
Show inline comments
 
@@ -56,6 +56,10 @@ void PortListItem::construct(QString nam
 
        text += QString("%1]").arg(pid, 4, 16, QChar('0'));
 
        setIcon(QIcon(":/usb_icon.png"));
 
    }
 
    else if (name.contains("rfcomm"))
 
    {
 
        setIcon(QIcon(":/bluetooth_icon.png"));
 
    }
 
    setText(text);
 
    setData(name, PortNameRole);
 
}
0 comments (0 inline, 0 general)