Changeset - 73e87165649b
[Not reviewed]
portlist
0 1 0
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-09-04 18:13:00
hy@ozderya.net
get port name from data role
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
portcontrol.cpp
Show inline comments
 
@@ -226,13 +226,13 @@ void PortControl::togglePort()
 
        {
 
            portList.appendRow(new PortListItem(portName));
 
            ui->cbPortList->setCurrentIndex(portList.rowCount()-1);
 
            tbPortList.setCurrentIndex(portList.rowCount()-1);
 
        }
 

	
 
        serialPort->setPortName(portName);
 
        serialPort->setPortName(ui->cbPortList->currentData(PortNameRole).toString());
 

	
 
        // open port
 
        if (serialPort->open(QIODevice::ReadWrite))
 
        {
 
            // set port settings
 
            selectBaudRate(ui->cbBaudRate->currentText());
0 comments (0 inline, 0 general)