1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

Added operator to allow sorting of QextPortInfo lists

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@440 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
zedamota 2010-04-08 19:41:40 +00:00 committed by zedamota
parent fa822b9a84
commit cabd28cb4f

View File

@ -33,6 +33,9 @@ struct QextPortInfo {
QString enumName; ///< Enumerator name.
int vendorID; ///< Vendor ID.
int productID; ///< Product ID
//added operator to alow sorting (PT_Dreamer)
bool operator<(const QextPortInfo & other) const {
return portName < other.portName;}
};
#ifdef Q_OS_WIN