Add toOF() / toQt() for easy conversion
This commit is contained in:
parent
1d907ed62d
commit
53410c810f
6 changed files with 78 additions and 82 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue