Skip to content

Commit 20f4814

Browse files
committed
log: add a note about ordering of QtMsgType
1 parent ddd53a1 commit 20f4814

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qmetaobject/src/log.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ impl QMessageLogContext {
6262

6363
/// Wrap Qt's QtMsgType enum
6464
#[repr(C)]
65+
// XXX: Do NOT derive Ord and PartialOrd.
66+
// XXX: Variants are not ordered by severity.
67+
// XXX: Also, levels ordering is not implemented in Qt, only == equality.
6568
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
6669
pub enum QtMsgType {
6770
QtDebugMsg,

0 commit comments

Comments
 (0)