Initial commit
This commit is contained in:
commit
f38ff5fbc2
18 changed files with 1016 additions and 0 deletions
22
QtCore/QtEvent.h
Normal file
22
QtCore/QtEvent.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue