Initial commit

This commit is contained in:
Jonathan Schleifer 2017-04-02 22:51:55 +02:00
commit f38ff5fbc2
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
18 changed files with 1016 additions and 0 deletions

22
QtCore/QtEvent.h Normal file
View file

@ -0,0 +1,22 @@
#import <ObjFW/ObjFW.h>
#import "QtOwnershipManaging.h"
#include <QEvent>
@interface QtEvent: OFObject <QtOwnershipManaging>
{
QEvent *_qEvent;
bool _ownsEvent;
}
@property (readonly) QEvent *qEvent;
@property (getter=isAccepted) bool accepted;
@property (readonly, getter=isSpontaneous) bool spontaneous;
@property (readonly) QEvent::Type type;
+ (int)registerEventType: (int)hint;
- initWithQEvent: (QEvent*)qEvent;
- (void)accept;
- (void)ignore;
@end