Comment: | Make toOF/toQt more powerful and complete QtWidget |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3ece549448f7cfd39600c8f90d4c7fcc |
User & Date: | js on 2017-04-15 17:18:52 |
Other Links: | manifest | tags |
2017-04-16
| ||
19:09 | Make the Qt project work on Windows check-in: 38d57b4977 user: js tags: trunk | |
2017-04-15
| ||
17:18 | Make toOF/toQt more powerful and complete QtWidget check-in: 3ece549448 user: js tags: trunk | |
02:42 | Make Qt project work on non-Mac systems check-in: 0df95396ff user: js tags: trunk | |
Modified ObjQt.pro from [34f4d80068] to [f5d1613e99].
1 2 3 4 5 6 7 8 9 10 11 | 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 | - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + | TEMPLATE = lib TARGET = ObjQt DESTDIR = build OBJECTS_DIR = build QT += core gui widgets INCLUDEPATH += common \ QtCore \ QtGui \ QtWidgets |
︙ |
Modified QtCore/QtChildEvent.h from [9dc2585a76] to [53abd485c2].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | + + + + + + + + + + + + + + + + + | @property (readonly, getter=isPolished) bool polished; @property (readonly, getter=isRemoved) bool removed; - initWithQChildEvent: (QChildEvent*)qChildEvent; - initWithType: (QChildEvent::Type)type child: (QtObject*)child; @end namespace ObjQt { static OF_INLINE QtChildEvent* toOF(QChildEvent *qChildEvent) { return [[[QtChildEvent alloc] initWithQChildEvent: qChildEvent] autorelease]; } static OF_INLINE QChildEvent* toQt(QtChildEvent *childEvent) { return [childEvent qChildEvent]; } } |
Modified QtCore/QtChildEvent.mm from [f611af8c09] to [0050860fa4].
︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | + + + - + - + - + - - + - + | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "QtChildEvent.h" #import "QtObject.h" using ObjQt::toOF; using ObjQt::toQt; @implementation QtChildEvent - initWithQEvent: (QEvent*)event { OF_INVALID_INIT_METHOD } - initWithQChildEvent: (QChildEvent*)event { return [super initWithQEvent: event]; } - initWithType: (QChildEvent::Type)type child: (QtObject*)child { try { self = [self initWithQChildEvent: |
Modified QtCore/QtCoreApplication.h from [4f441fa3cb] to [dfc55ef348].
︙ | |||
33 34 35 36 37 38 39 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | + + + + + + + + + + + + + + + + + | - initWithQCoreApplication: (QCoreApplication*)qCoreApplication; - (void)installNativeEventFilter: (QAbstractNativeEventFilter*)filterObject; - (void)quit; - (void)removeNativeEventFilter: (QAbstractNativeEventFilter*)filterObject; - (bool)sendEvent: (QtEvent*)event receiver: (QtObject*)receiver; @end namespace ObjQt { static OF_INLINE QtCoreApplication* toOF(QCoreApplication *qCoreApplication) { return [[[QtCoreApplication alloc] initWithQCoreApplication: qCoreApplication] autorelease]; } static OF_INLINE QCoreApplication* toQt(QtCoreApplication *coreApplication) { return [coreApplication qCoreApplication]; } } |
Modified QtCore/QtCoreApplication.mm from [948643ef9b] to [b055a533da].
︙ | |||
18 19 20 21 22 23 24 25 | 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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | + - + + - + - + - + - + - + - - + - - + - + - + - + - + - + - + - + - | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "QtCoreApplication.h" #import "QtEvent.h" #import "OFString+QString.h" |
Modified QtCore/QtEvent.h from [227e728850] to [6eeefe4604].
︙ | |||
38 39 40 41 42 43 44 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | + + + + + + + + + + + + + + + + | @property (readonly) QEvent::Type type; + (int)registerEventType: (int)hint; - initWithQEvent: (QEvent*)qEvent; - (void)accept; - (void)ignore; @end namespace ObjQt { static OF_INLINE QtEvent* toOF(QEvent *qEvent) { return [[[QtEvent alloc] initWithQEvent: qEvent] autorelease]; } static OF_INLINE QEvent* toQt(QtEvent *event) { return [event qEvent]; } } |
Modified QtCore/QtObject.h from [a3fdff21da] to [6c34637edf].
︙ | |||
76 77 78 79 80 81 82 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | + + + + + + + + + + + + + + + + | forName: (OFString*)name; - (bool)signalsBlocked; - (int)startTimerWithInterval: (int)interval type: (Qt::TimerType)type; - (QtThread*)thread; - (void)deleteLater; @end namespace ObjQt { static OF_INLINE QtObject* toOF(QObject *qObject) { return [[[QtObject alloc] initWithQObject: qObject] autorelease]; } static OF_INLINE QObject* toQt(QtObject *object) { return [object qObject]; } } |
Modified QtCore/QtObject.mm from [d103de14ea] to [c04c6365a3].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - - + + + + + | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "QtObject.h" #import "QtEvent.h" #import "QtThread.h" |
︙ | |||
84 85 86 87 88 89 90 | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | - + - - + - + - + - + - - + + - + - - - + - - + - - + - + - + - + - + | { const QObjectList &qChildren = _qObject->children(); OFMutableArray *children = [OFMutableArray arrayWithCapacity: qChildren.count()]; void *pool = objc_autoreleasePoolPush(); for (QObject *qChild: qChildren) |
︙ | |||
192 193 194 195 196 197 198 | 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | - + - - + - + - + | - (const QMetaObject*)metaObject { return _qObject->metaObject(); } - (void)moveToThread: (QtThread*)targetThread { |
︙ | |||
235 236 237 238 239 240 241 | 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | - - + | type: (Qt::TimerType)type { return _qObject->startTimer(interval, type); } - (QtThread*)thread { |
Modified QtCore/QtThread.h from [149eabc8dd] to [c9467afda7].
︙ | |||
38 39 40 41 42 43 44 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | + + + + + + + + + + + + + + + + | - (void)exitWithReturnCode: (int)returnCode; - (void)requestInterruption; - (bool)waitForMilliseconds: (unsigned long)time; - (void)quit; - (void)startWithPriority: (QThread::Priority)priority; - (void)terminate; @end namespace ObjQt { static OF_INLINE QtThread* toOF(QThread *qThread) { return [[[QtThread alloc] initWithQThread: qThread] autorelease]; } static OF_INLINE QThread* toQt(QtThread *thread) { return [thread qThread]; } } |
Modified QtCore/QtThread.mm from [c9293dd1ab] to [117e62c463].
︙ | |||
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 | 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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "QtThread.h" using ObjQt::toQt; @implementation QtThread: QtObject - initWithQObject: (QObject*)qObject { OF_INVALID_INIT_METHOD } - initWithQThread: (QThread*)qThread { return [super initWithQObject: qThread]; } - (QThread*)qThread { return qobject_cast<QThread*>(_qObject); } - (QAbstractEventDispatcher*)eventDispatcher { |
Added QtGui/QtGUIApplication.h version [94e433c5c3].
|
Added QtGui/QtGUIApplication.mm version [d51001d0be].