]> git.sesse.net Git - kdenlive/blobdiff - src/definitions.h
* Guides improvements and fixes
[kdenlive] / src / definitions.h
index 1279a542ec15980026a657b1c693e1ec8046f860..d0aa354c51146e24d0fa12e5006dff70fa742574 100644 (file)
@@ -93,8 +93,36 @@ public:
     void    setComment(QString comm) {
         c = comm;
     }
+
+    /* Implementation of > operator; Works identically as with basic types. */
+    bool operator>(CommentedTime op) const {
+        return t > op.time();
+    }
+    /* Implementation of < operator; Works identically as with basic types. */
+    bool operator<(CommentedTime op) const {
+        return t < op.time();
+    }
+    /* Implementation of >= operator; Works identically as with basic types. */
+    bool operator>=(CommentedTime op) const {
+        return t >= op.time();
+    }
+    /* Implementation of <= operator; Works identically as with basic types. */
+    bool operator<=(CommentedTime op) const {
+        return t <= op.time();
+    }
+    /* Implementation of == operator; Works identically as with basic types. */
+    bool operator==(CommentedTime op) const {
+        return t == op.time();
+    }
+    /* Implementation of != operator; Works identically as with basic types. */
+    bool operator!=(CommentedTime op) const {
+        return t != op.time();
+    }
+
 private:
     GenTime t;
     QString c;
+
+
 };
 #endif