Update to recent ObjFW changes
This commit is contained in:
parent
ba805dab97
commit
1e5a65195e
28 changed files with 341 additions and 331 deletions
|
@ -86,23 +86,24 @@
|
|||
@property (readonly) int x;
|
||||
@property (readonly) int y;
|
||||
|
||||
- initWithQWidget: (QWidget*)qWidget;
|
||||
- (OFArray OF_GENERIC(QtAction*)*)actions;
|
||||
- initWithQObject: (QObject *)qObject OF_UNAVAILABLE;
|
||||
- initWithQWidget: (QWidget *)qWidget;
|
||||
- (OFArray OF_GENERIC(QtAction *) *)actions;
|
||||
- (void)activateWindow;
|
||||
- (void)addAction: (QtAction*)action;
|
||||
- (void)addActions: (OFArray OF_GENERIC(QtAction*)*)actions;
|
||||
- (void)addAction: (QtAction *)action;
|
||||
- (void)addActions: (OFArray OF_GENERIC(QtAction *) *)actions;
|
||||
- (void)adjustSize;
|
||||
- (QPalette::ColorRole)backgroundRole;
|
||||
- (QBackingStore*)backingStore;
|
||||
- (QtWidget*)childAt: (of_point_t)point;
|
||||
- (QBackingStore *)backingStore;
|
||||
- (QtWidget *)childAt: (of_point_t)point;
|
||||
- (void)clearFocus;
|
||||
- (void)clearMask;
|
||||
- (QMargins)contentsMargins;
|
||||
- (of_rectangle_t)contentsRect;
|
||||
- (WId)effectiveWinID;
|
||||
- (void)ensurePolished;
|
||||
- (QtWidget*)focusProxy;
|
||||
- (QtWidget*)focusWidget;
|
||||
- (QtWidget *)focusProxy;
|
||||
- (QtWidget *)focusWidget;
|
||||
- (QFontInfo)fontInfo;
|
||||
- (QFontMetrics)fontMetrics;
|
||||
- (QPalette::ColorRole)foregroundRole;
|
||||
|
@ -112,12 +113,12 @@
|
|||
flags: (Qt::GestureFlags)flags;
|
||||
- (void)grabKeyboard;
|
||||
- (void)grabMouse;
|
||||
- (void)grabMouseWithCursor: (const QCursor&)cursor;
|
||||
- (int)grabShortcutWithKey: (const QKeySequence&)key;
|
||||
- (int)grabShortcutWithKey: (const QKeySequence&)key
|
||||
- (void)grabMouseWithCursor: (const QCursor &)cursor;
|
||||
- (int)grabShortcutWithKey: (const QKeySequence &)key;
|
||||
- (int)grabShortcutWithKey: (const QKeySequence &)key
|
||||
context: (Qt::ShortcutContext)context;
|
||||
- (QGraphicsEffect*)graphicsEffect;
|
||||
- (QGraphicsProxyWidget*)graphicsProxyWidget;
|
||||
- (QGraphicsEffect *)graphicsEffect;
|
||||
- (QGraphicsProxyWidget *)graphicsProxyWidget;
|
||||
#ifdef QT_KEYPAD_NAVIGATION
|
||||
- (bool)hasEditFocus;
|
||||
#endif
|
||||
|
@ -125,51 +126,51 @@
|
|||
- (bool)hasHeightForWidth;
|
||||
- (int)heightForWidth: (int)w;
|
||||
- (QVariant)queryInputMethod: (Qt::InputMethodQuery)query;
|
||||
- (void)insertAction: (QtAction*)action
|
||||
before: (QtAction*)before;
|
||||
- (void)insertActions: (OFArray OF_GENERIC(QtAction*)*)actions
|
||||
before: (QtAction*)before;
|
||||
- (bool)isAncestorOf: (QtWidget*)child;
|
||||
- (bool)isEnabledTo: (QtWidget*)ancestor;
|
||||
- (void)insertAction: (QtAction *)action
|
||||
before: (QtAction *)before;
|
||||
- (void)insertActions: (OFArray OF_GENERIC(QtAction *) *)actions
|
||||
before: (QtAction *)before;
|
||||
- (bool)isAncestorOf: (QtWidget *)child;
|
||||
- (bool)isEnabledTo: (QtWidget *)ancestor;
|
||||
- (bool)isHidden;
|
||||
- (bool)isVisibleTo: (QtWidget*)ancestor;
|
||||
- (bool)isVisibleTo: (QtWidget *)ancestor;
|
||||
- (bool)isWindow;
|
||||
- (of_point_t)mapPosition: (of_point_t)pos
|
||||
from: (QtWidget*)parent;
|
||||
from: (QtWidget *)parent;
|
||||
- (of_point_t)mapPositionFromGlobal: (of_point_t)pos;
|
||||
- (of_point_t)mapPositionFromParent: (of_point_t)pos;
|
||||
- (of_point_t)mapPosition: (of_point_t)pos
|
||||
to: (QtWidget*)parent;
|
||||
to: (QtWidget *)parent;
|
||||
- (of_point_t)mapPositionToGlobal: (of_point_t)pos;
|
||||
- (of_point_t)mapPositionToParent: (of_point_t)pos;
|
||||
- (QRegion)mask;
|
||||
- (QtWidget*)nativeParentWidget;
|
||||
- (QtWidget*)nextInFocusChain;
|
||||
- (QtWidget *)nativeParentWidget;
|
||||
- (QtWidget *)nextInFocusChain;
|
||||
- (void)overrideWindowFlags: (Qt::WindowFlags)flags;
|
||||
- (QtWidget*)parentWidget;
|
||||
- (QtWidget*)previousInFocusChain;
|
||||
- (QtWidget *)parentWidget;
|
||||
- (QtWidget *)previousInFocusChain;
|
||||
- (void)releaseKeyboard;
|
||||
- (void)releaseMouse;
|
||||
- (void)releaseShortcut: (int)ID;
|
||||
- (void)removeAction: (QtAction*)action;
|
||||
- (void)renderIntoPaintDevice: (QtObject <QtPaintDevice>*)target
|
||||
- (void)removeAction: (QtAction *)action;
|
||||
- (void)renderIntoPaintDevice: (QtObject <QtPaintDevice> *)target
|
||||
targetOffset: (of_point_t)targetOffset
|
||||
sourceRegion: (QRegion)sourceRegion;
|
||||
- (void)renderIntoPaintDevice: (QtObject <QtPaintDevice>*)target
|
||||
- (void)renderIntoPaintDevice: (QtObject <QtPaintDevice> *)target
|
||||
targetOffset: (of_point_t)targetOffset
|
||||
sourceRegion: (QRegion)sourceRegion
|
||||
flags: (QWidget::RenderFlags)renderFlags;
|
||||
- (void)renderIntoPainter: (QPainter*)target
|
||||
- (void)renderIntoPainter: (QPainter *)target
|
||||
targetOffset: (of_point_t)targetOffset
|
||||
sourceRegion: (QRegion)sourceRegion;
|
||||
- (void)renderIntoPainter: (QPainter*)target
|
||||
- (void)renderIntoPainter: (QPainter *)target
|
||||
targetOffset: (of_point_t)targetOffset
|
||||
sourceRegion: (QRegion)sourceRegion
|
||||
flags: (QWidget::RenderFlags)renderFlags;
|
||||
- (void)repaintInRectangle: (of_rectangle_t)rect;
|
||||
- (void)repaintInRegion: (const QRegion&)region;
|
||||
- (bool)restoreGeometry: (OFDataArray*)geometry;
|
||||
- (OFDataArray*)saveGeometry;
|
||||
- (void)repaintInRegion: (const QRegion &)region;
|
||||
- (bool)restoreGeometry: (OFDataArray *)geometry;
|
||||
- (OFDataArray *)saveGeometry;
|
||||
- (void)scrollRight: (int)dx
|
||||
down: (int)dy;
|
||||
- (void)scrollRight: (int)dx
|
||||
|
@ -184,24 +185,24 @@
|
|||
- (void)setFixedSize: (of_dimension_t)size;
|
||||
- (void)setFixedWidth: (int)width;
|
||||
- (void)setFocus: (Qt::FocusReason)reason;
|
||||
- (void)setFocusProxy: (QtWidget*)widget;
|
||||
- (void)setFocusProxy: (QtWidget *)widget;
|
||||
- (void)setForegroundRole: (QPalette::ColorRole)role;
|
||||
- (void)setGraphicsEffect: (QGraphicsEffect*)effect;
|
||||
- (void)setLayout: (QLayout*)layout;
|
||||
- (void)setMaskFromBitmap: (const QBitmap&)bitmap;
|
||||
- (void)setMask: (const QRegion&)region;
|
||||
- (void)setParent: (QtWidget*)parent;
|
||||
- (void)setParent: (QtWidget*)parent
|
||||
- (void)setGraphicsEffect: (QGraphicsEffect *)effect;
|
||||
- (void)setLayout: (QLayout *)layout;
|
||||
- (void)setMaskFromBitmap: (const QBitmap &)bitmap;
|
||||
- (void)setMask: (const QRegion &)region;
|
||||
- (void)setParent: (QtWidget *)parent;
|
||||
- (void)setParent: (QtWidget *)parent
|
||||
flags: (Qt::WindowFlags)flags;
|
||||
- (void)setAutoRepeat: (bool)enable
|
||||
forShortcut: (int)ID;
|
||||
- (void)setEnabled: (bool)enable
|
||||
forShortcut: (int)ID;
|
||||
- (void)setStyle: (QStyle*)style;
|
||||
- (void)setWindowRole: (OFString*)role;
|
||||
- (void)setStyle: (QStyle *)style;
|
||||
- (void)setWindowRole: (OFString *)role;
|
||||
- (void)setWindowState: (Qt::WindowStates)windowState;
|
||||
- (void)stackUnder: (QtWidget*)widget;
|
||||
- (QStyle*)style;
|
||||
- (void)stackUnder: (QtWidget *)widget;
|
||||
- (QStyle *)style;
|
||||
- (bool)testAttribute: (Qt::WidgetAttribute)attribute;
|
||||
- (bool)isUnderMouse;
|
||||
- (void)ungrabGesture: (Qt::GestureType)gesture;
|
||||
|
@ -209,13 +210,13 @@
|
|||
- (void)unsetLayoutDirection;
|
||||
- (void)unsetLocale;
|
||||
- (void)updateInRectangle: (of_rectangle_t)rect;
|
||||
- (void)updateInRegion: (const QRegion&)region;
|
||||
- (void)updateInRegion: (const QRegion &)region;
|
||||
- (void)updateGeometry;
|
||||
- (QRegion)visibleRegion;
|
||||
- (WId)winID;
|
||||
- (QtWidget*)window;
|
||||
- (QWindow*)windowHandle;
|
||||
- (OFString*)windowRole;
|
||||
- (QtWidget *)window;
|
||||
- (QWindow *)windowHandle;
|
||||
- (OFString *)windowRole;
|
||||
- (Qt::WindowStates)windowState;
|
||||
- (Qt::WindowType)windowType;
|
||||
@end
|
||||
|
@ -225,13 +226,13 @@
|
|||
|
||||
namespace ObjQt {
|
||||
|
||||
static OF_INLINE QtWidget*
|
||||
static OF_INLINE QtWidget *
|
||||
toOF(QWidget *qWidget)
|
||||
{
|
||||
return [[[QtWidget alloc] initWithQWidget: qWidget] autorelease];
|
||||
}
|
||||
|
||||
static OF_INLINE QWidget*
|
||||
static OF_INLINE QWidget *
|
||||
toQt(QtWidget *widget)
|
||||
{
|
||||
return [widget qWidget];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue