Add toOF() / toQt() for easy conversion

This commit is contained in:
Jonathan Schleifer 2017-04-05 23:19:39 +02:00
parent 1d907ed62d
commit 53410c810f
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
6 changed files with 78 additions and 82 deletions

View file

@ -45,12 +45,12 @@
- (OFString*)objectName
{
return QToOFString(_qObject->objectName());
return toOF(_qObject->objectName());
}
- (void)setObjectName: (OFString*)objectName
{
_qObject->setObjectName(OFToQString(objectName));
_qObject->setObjectName(toQt(objectName));
}
- (bool)setBlockSignals: (bool)block