From b61ecc383e398773d4cf5c9a1c5394e5d21409d6 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 13 Jul 2011 15:49:58 +1000 Subject: [PATCH] Checking windows serial port stuff --- Resources.qrc | 1 + icons/refresh.png | Bin 0 -> 815 bytes oximetry.cpp | 2 +- oximetry.ui | 12 +++++++++--- 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 icons/refresh.png diff --git a/Resources.qrc b/Resources.qrc index 37d133b3..40c604cf 100644 --- a/Resources.qrc +++ b/Resources.qrc @@ -11,5 +11,6 @@ icons/edit-find.png icons/back.png fonts/FreeSans.ttf + icons/refresh.png diff --git a/icons/refresh.png b/icons/refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..e12dd6f93d8be3b003beedbf8af77b93292c93a8 GIT binary patch literal 815 zcmV+~1JL}5P))STwPQ+Kk19%@&CnW^5SqhaWlFvSy(zt0;2k>fF)!-uJ$r#~;qkk6X`QpY3@+ zujjpI?~eu}*AxI|06G930Q9dwGs3U{z-+OmJ{}zv?e+}1Jpcv)s3QSlBuPqPj7<{+ z!NfUd6DJwgB_t*+7#pLHa}Ip^5ONauJ-~iHOeRx;DC*|NO&GsH)Jltn{ll?DBmls} zyLYg~ZvWBU-TUfuU;hEW-`D1JIzNX2IXOAe0aeXVg8WRjEo*#Xe!h0%xCvlj;3@}k zLQqvucj{!|vE!**4ak*}M)RnprKJ}DP*PH2$;{3@f3T)j_PKo&@XN$Gr$}|I?l`wt zQ+Yu_K_&o*A^VBC=&{STZQU$AaXeElHaFuk9q-kH;< zR~r)Iqbe#YCW!!GG#X>tU%!ppUsLnZ|Lyy^X(`DcJf5KyazL>;T`nD>1f0FoD0_yz zU3p7wM>QIWU%7Gp*4m=NJOKa<27}n$(}VPdY5Nu~Nb759eX%P(KHheJyrV$*B7r@6Apma>s@EDrqaoV(-E)7IVU+Flh@~^>O+TR zdwKa~m&-LLoC6|Cd+KmxR8=3`VV*TZU$}CaHmC+c1W1wuQ6u83*N1!e9|k*Kzja-? z(0D+v*EfX$A&BMUz`)|N?eSerialPortsCombo->clear(); for (int i = 0; i < ports.size(); i++) { if (ports.at(i).friendName.toUpper().contains("USB")) - ui->SerialPortsCombo->addItem(ports.at(i).physName); + ui->SerialPortsCombo->addItem(ports.at(i).portName); //qDebug() << "port name:" << ports.at(i).portName; qDebug() << "Serial Port:" << ports.at(i).physName << ports.at(i).friendName; //qDebug() << "enumerator name:" << ports.at(i).enumName; diff --git a/oximetry.ui b/oximetry.ui index fc07d4de..7f3398d4 100644 --- a/oximetry.ui +++ b/oximetry.ui @@ -36,7 +36,7 @@ 0 0 508 - 304 + 303 @@ -86,7 +86,11 @@ - R + + + + + :/icons/refresh.png:/icons/refresh.png @@ -117,6 +121,8 @@ - + + +