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:
parent
fa822b9a84
commit
cabd28cb4f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user