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

@ -50,12 +50,12 @@
- (of_dimension_t)globalStrut
{
return QToOFDimension([self qApplication]->globalStrut());
return toOF([self qApplication]->globalStrut());
}
- (void)setGlobalStrut: (of_dimension_t)globalStrut
{
[self qApplication]->setGlobalStrut(OFToQSize(globalStrut));
[self qApplication]->setGlobalStrut(toQt(globalStrut));
}
- (int)keyboardInputInterval
@ -90,12 +90,12 @@
- (OFString*)styleSheet
{
return QToOFString([self qApplication]->styleSheet());
return toOF([self qApplication]->styleSheet());
}
- (void)setStyleSheet: (OFString*)styleSheet
{
[self qApplication]->setStyleSheet(OFToQString(styleSheet));
[self qApplication]->setStyleSheet(toQt(styleSheet));
}
- (int)wheelScrollLines