Index: src/QtCore/QtChildEvent.h ================================================================== --- src/QtCore/QtChildEvent.h +++ src/QtCore/QtChildEvent.h @@ -30,11 +30,11 @@ @property (readonly, nonatomic) QtObject *child; @property (readonly, nonatomic, getter=isPolished) bool polished; @property (readonly, nonatomic, getter=isRemoved) bool removed; - initWithQEvent: (QEvent *)event OF_UNAVAILABLE; -- initWithQChildEvent: (QChildEvent *)qChildEvent; +- initWithQChildEvent: (QChildEvent *)qChildEvent OF_DESIGNATED_INITIALIZER; - initWithType: (QChildEvent::Type)type child: (QtObject *)child; @end namespace ObjQt { Index: src/QtCore/QtChildEvent.mm ================================================================== --- src/QtCore/QtChildEvent.mm +++ src/QtCore/QtChildEvent.mm @@ -46,11 +46,11 @@ [self takeOwnership]; return self; } catch (const std::bad_alloc &e) { - self = [super initWithQEvent: NULL]; + self = [self initWithQChildEvent: NULL]; [self release]; throw; } } Index: src/QtCore/QtCoreApplication.h ================================================================== --- src/QtCore/QtCoreApplication.h +++ src/QtCore/QtCoreApplication.h @@ -29,11 +29,12 @@ @property (nonatomic, copy) OFString *applicationName, *applicationVersion; @property (nonatomic, copy) OFString *organizationDomain, *organizationName; @property (nonatomic, getter=isQuitLockEnabled) bool quitLockEnabled; - initWithQObject: (QObject *)qObject OF_UNAVAILABLE; -- initWithQCoreApplication: (QCoreApplication *)qCoreApplication; +- initWithQCoreApplication: (QCoreApplication *)qCoreApplication + OF_DESIGNATED_INITIALIZER; - (void)installNativeEventFilter: (QAbstractNativeEventFilter *)filterObject; - (void)quit; - (void)removeNativeEventFilter: (QAbstractNativeEventFilter *)filterObject; - (bool)sendEvent: (QtEvent *)event receiver: (QtObject *)receiver; Index: src/QtCore/QtEvent.h ================================================================== --- src/QtCore/QtEvent.h +++ src/QtCore/QtEvent.h @@ -37,11 +37,11 @@ @property (readonly, nonatomic, getter=isSpontaneous) bool spontaneous; @property (readonly, nonatomic) QEvent::Type type; + (int)registerEventType: (int)hint; - init OF_UNAVAILABLE; -- initWithQEvent: (QEvent *)qEvent; +- initWithQEvent: (QEvent *)qEvent OF_DESIGNATED_INITIALIZER; - (void)accept; - (void)ignore; @end namespace ObjQt { Index: src/QtCore/QtObject.h ================================================================== --- src/QtCore/QtObject.h +++ src/QtCore/QtObject.h @@ -39,11 +39,11 @@ @property (readonly, nonatomic) const QMetaObject *metaObject; @property (nonatomic, retain) QtObject *parent; @property (nonatomic, copy) OFString *objectName; - init OF_UNAVAILABLE; -- initWithQObject: (QObject *)qObject; +- initWithQObject: (QObject *)qObject OF_DESIGNATED_INITIALIZER; - (bool)setBlockSignals: (bool)block; - (OFArray OF_GENERIC(QtObject *) *)children; - (QMetaObject::Connection)connectSignal: (OFString *)signal sender: (QtObject *)sender method: (OFString *)method Index: src/QtCore/QtThread.h ================================================================== --- src/QtCore/QtThread.h +++ src/QtCore/QtThread.h @@ -34,11 +34,11 @@ @property (readonly, nonatomic) int loopLevel; @property (nonatomic) QThread::Priority priority; @property (nonatomic) unsigned int stackSize; - initWithQObject: (QObject *)qObject OF_UNAVAILABLE; -- initWithQThread: (QThread *)qThread; +- initWithQThread: (QThread *)qThread OF_DESIGNATED_INITIALIZER; - (void)exitWithReturnCode: (int)returnCode; - (void)requestInterruption; - (bool)waitForMilliseconds: (unsigned long)time; - (void)quit; - (void)startWithPriority: (QThread::Priority)priority; Index: src/QtGui/QtGUIApplication.h ================================================================== --- src/QtGui/QtGUIApplication.h +++ src/QtGui/QtGUIApplication.h @@ -35,11 +35,12 @@ @property (readonly, nonatomic) QScreen *primaryScreen; @property (nonatomic) bool quitsOnLastWindowClosed; @property (nonatomic) QIcon windowIcon; - initWithQCoreApplication: (QCoreApplication *)qCoreApplication OF_UNAVAILABLE; -- initWithQGuiApplication: (QGuiApplication *)qGuiApplication; +- initWithQGuiApplication: (QGuiApplication *)qGuiApplication + OF_DESIGNATED_INITIALIZER; - (double)devicePixelRatio; - (bool)isSavingSession; - (bool)isSessionRestored; - (OFString *)sessionID; - (OFString *)sessionKey; Index: src/QtWidgets/QtAbstractButton.h ================================================================== --- src/QtWidgets/QtAbstractButton.h +++ src/QtWidgets/QtAbstractButton.h @@ -37,11 +37,12 @@ @property (nonatomic) of_dimension_t iconSize; @property (nonatomic) QKeySequence shortcut; @property (nonatomic, copy) OFString *text; - initWithQWidget: (QWidget *)qWidget OF_UNAVAILABLE; -- initWithQAbstractButton: (QAbstractButton *)qAbstractButton; +- initWithQAbstractButton: (QAbstractButton *)qAbstractButton + OF_DESIGNATED_INITIALIZER; - (QButtonGroup *)group; @end namespace ObjQt { Index: src/QtWidgets/QtAction.h ================================================================== --- src/QtWidgets/QtAction.h +++ src/QtWidgets/QtAction.h @@ -45,11 +45,11 @@ @property (nonatomic, copy) OFString *toolTip; @property (nonatomic, getter=isVisible) bool visible; @property (nonatomic, copy) OFString *whatsThis; - initWithQObject: (QObject *)qObject OF_UNAVAILABLE; -- initWithQAction: (QAction *)qAction; +- initWithQAction: (QAction *)qAction OF_DESIGNATED_INITIALIZER; - (QActionGroup *)actionGroup; - (void)activate: (QAction::ActionEvent)event; - (QList)associatedGraphicsWidgets; - (OFArray OF_GENERIC(QtWidget *) *)associatedWidgets; - (QVariant)data; Index: src/QtWidgets/QtApplication.h ================================================================== --- src/QtWidgets/QtApplication.h +++ src/QtWidgets/QtApplication.h @@ -35,11 +35,11 @@ @property (nonatomic) int startDragTime; @property (nonatomic, copy) OFString *styleSheet; @property (nonatomic) int wheelScrollLines; - initWithQGuiApplication: (QGuiApplication *)qGuiApplication OF_UNAVAILABLE; -- initWithQApplication: (QApplication *)qApplication; +- initWithQApplication: (QApplication *)qApplication OF_DESIGNATED_INITIALIZER; - (void)aboutQt; - (void)closeAllWindows; @end namespace ObjQt { Index: src/QtWidgets/QtPushButton.h ================================================================== --- src/QtWidgets/QtPushButton.h +++ src/QtWidgets/QtPushButton.h @@ -32,11 +32,11 @@ @property (nonatomic) bool autoDefault; @property (nonatomic, getter=isDefault, setter=setDefault:) bool default_; @property (nonatomic, getter=isFlat) bool flat; - initWithQAbstractButton: (QAbstractButton *)qAbstractButton OF_UNAVAILABLE; -- initWithQPushButton: (QPushButton *)qPushButton; +- initWithQPushButton: (QPushButton *)qPushButton OF_DESIGNATED_INITIALIZER; - initWithText: (OFString *)text; - initWithIcon: (QIcon)icon text: (OFString *)text; @end Index: src/QtWidgets/QtPushButton.mm ================================================================== --- src/QtWidgets/QtPushButton.mm +++ src/QtWidgets/QtPushButton.mm @@ -48,11 +48,11 @@ [self takeOwnership]; return self; } catch (const std::bad_alloc &e) { - self = [super initWithQAbstractButton: NULL]; + self = [self initWithQPushButton: NULL]; [self release]; throw; } } @@ -65,11 +65,11 @@ [self takeOwnership]; return self; } catch (const std::bad_alloc &e) { - self = [super initWithQAbstractButton: NULL]; + self = [self initWithQPushButton: NULL]; [self release]; throw; } } Index: src/QtWidgets/QtWidget.h ================================================================== --- src/QtWidgets/QtWidget.h +++ src/QtWidgets/QtWidget.h @@ -85,11 +85,11 @@ @property (nonatomic, copy) OFString *windowTitle; @property (readonly, nonatomic) int x; @property (readonly, nonatomic) int y; - initWithQObject: (QObject *)qObject OF_UNAVAILABLE; -- initWithQWidget: (QWidget *)qWidget; +- initWithQWidget: (QWidget *)qWidget OF_DESIGNATED_INITIALIZER; - (OFArray OF_GENERIC(QtAction *) *)actions; - (void)activateWindow; - (void)addAction: (QtAction *)action; - (void)addActions: (OFArray OF_GENERIC(QtAction *) *)actions; - (void)adjustSize;