Overview
Context
Changes
Added .gitignore version [13ce87425d].
|
1
2
3
4
|
+
+
+
+
|
*~
.qmake.stash
build
Makefile
|
| | |
Added ObjQt.pro version [4cb866f5b3].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
TEMPLATE = lib
TARGET = ObjQt
DESTDIR = build
OBJECTS_DIR = build
QT += core gui widgets
INCLUDEPATH += common \
QtCore \
QtGui \
QtWidgets
HEADERS += common/helpers.h \
common/QtOwnershipManaging.h \
QtCore/QtChildEvent.h \
QtCore/QtCoreApplication.h \
QtCore/QtEvent.h \
QtCore/QtObject.h \
QtCore/QtThread.h \
QtGui/QtGuiApplication.h \
QtWidgets/QtApplication.h
SOURCES += QtCore/QtChildEvent.mm \
QtCore/QtCoreApplication.mm \
QtCore/QtEvent.mm \
QtCore/QtObject.mm \
QtCore/QtThread.mm \
QtGui/QtGuiApplication.mm \
QtWidgets/QtApplication.mm
QMAKE_CXXFLAGS += $$system("objfw-config --cppflags --objcflags --cxxflags")
QMAKE_CXXFLAGS_WARN_ON = -Wall \
-Werror \
-Wsemicolon-before-method-body \
-Wobjc-missing-property-synthesis
LIBS += $$system("objfw-config --ldflags --libs")
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Added QtCore/QtChildEvent.h version [afb63d192f].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#import "QtEvent.h"
@class QtObject;
@interface QtChildEvent: QtEvent
@property (readonly) QChildEvent *qChildEvent;
@property (readonly, getter=isAdded) bool added;
@property (readonly, retain) QtObject *child;
@property (readonly, getter=isPolished) bool polished;
@property (readonly, getter=isRemoved) bool removed;
- initWithQChildEvent: (QChildEvent*)qChildEvent;
- initWithType: (QChildEvent::Type)type
child: (QtObject*)child;
@end
|
| | | | | | | | | | | | | |
Added QtCore/QtChildEvent.mm version [3e5461799b].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#import "QtChildEvent.h"
#import "QtObject.h"
@implementation QtChildEvent
- initWithQEvent: (QEvent*)event
{
OF_INVALID_INIT_METHOD
}
- initWithQChildEvent: (QChildEvent*)event
{
return [super initWithQEvent: event];
}
- initWithType: (QChildEvent::Type)type
child: (QtObject*)child
{
try {
return [self initWithQChildEvent:
new QChildEvent(type, [child qObject])];
} catch (const std::bad_alloc &e) {
self = [super initWithQEvent: NULL];
[self release];
throw;
}
}
- (QChildEvent*)qChildEvent
{
return dynamic_cast<QChildEvent*>(_qEvent);
}
- (bool)isAdded
{
return [self qChildEvent]->added();
}
- (QtObject*)child
{
return [[[QtObject alloc]
initWithQObject: [self qChildEvent]->child()] autorelease];
}
- (bool)isPolished
{
return [self qChildEvent]->polished();
}
- (bool)isRemoved
{
return [self qChildEvent]->removed();
}
@end
|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Added QtCore/QtCoreApplication.h version [f9f030da21].
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
#import "QtObject.h"
#include <QCoreApplication>
@interface QtCoreApplication: QtObject
@property (readonly) QCoreApplication *qCoreApplication;
@property (copy) OFString *applicationName, *applicationVersion;
@property (copy) OFString *organizationDomain, *organizationName;
@property (getter=isQuitLockEnabled) bool quitLockEnabled;
- initWithQCoreApplication: (QCoreApplication*)qCoreApplication;
- (void)installNativeEventFilter: (QAbstractNativeEventFilter*)filterObject;
- (void)quit;
- (void)removeNativeEventFilter: (QAbstractNativeEventFilter*)filterObject;
- (bool)sendEvent: (QtEvent*)event
receiver: (QtObject*)receiver;
@end
|
| | | | | | | | | | | | | | | |
Added QtCore/QtCoreApplication.mm version [1f6a27146b].