mirror of
https://github.com/mappu/miqt.git
synced 2025-04-27 15:40:21 +00:00
qt: rebuild (identify more linuxonly quirks in qsocketnotifier)
This commit is contained in:
parent
aff87f98a2
commit
beb33ce780
@ -451,7 +451,11 @@ void QSocketNotifier_delete(QSocketNotifier* self) {
|
||||
}
|
||||
|
||||
QSocketDescriptor* QSocketDescriptor_new() {
|
||||
#ifndef Q_OS_LINUX
|
||||
return nullptr;
|
||||
#else
|
||||
return new QSocketDescriptor();
|
||||
#endif
|
||||
}
|
||||
|
||||
QSocketDescriptor* QSocketDescriptor_new2(QSocketDescriptor* param1) {
|
||||
|
@ -453,6 +453,10 @@ func UnsafeNewQSocketDescriptor(h unsafe.Pointer) *QSocketDescriptor {
|
||||
// NewQSocketDescriptor constructs a new QSocketDescriptor object.
|
||||
func NewQSocketDescriptor() *QSocketDescriptor {
|
||||
|
||||
if runtime.GOOS != "linux" {
|
||||
panic("Unsupported OS")
|
||||
}
|
||||
|
||||
return newQSocketDescriptor(C.QSocketDescriptor_new())
|
||||
}
|
||||
|
||||
|
@ -436,7 +436,11 @@ void QSocketNotifier_delete(QSocketNotifier* self) {
|
||||
}
|
||||
|
||||
QSocketDescriptor* QSocketDescriptor_new() {
|
||||
#ifndef Q_OS_LINUX
|
||||
return nullptr;
|
||||
#else
|
||||
return new QSocketDescriptor();
|
||||
#endif
|
||||
}
|
||||
|
||||
QSocketDescriptor* QSocketDescriptor_new2(QSocketDescriptor* param1) {
|
||||
|
@ -442,6 +442,10 @@ func UnsafeNewQSocketDescriptor(h unsafe.Pointer) *QSocketDescriptor {
|
||||
// NewQSocketDescriptor constructs a new QSocketDescriptor object.
|
||||
func NewQSocketDescriptor() *QSocketDescriptor {
|
||||
|
||||
if runtime.GOOS != "linux" {
|
||||
panic("Unsupported OS")
|
||||
}
|
||||
|
||||
return newQSocketDescriptor(C.QSocketDescriptor_new())
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user