QtLingo 1
QtLingo is an Application to make Qt Computer Translations easier
QOption Struct Reference

QOption. More...

#include <qoption.h>

Public Member Functions

QJsonObject toJson () const
 toJson More...
 

Public Attributes

QString word
 word More...
 
QString gender
 gender More...
 
QStringList translations
 translations More...
 

Detailed Description

QOption.

Definition at line 31 of file qoption.h.

Member Function Documentation

◆ toJson()

QJsonObject QOption::toJson ( ) const

toJson

toJson. toJson

toJson

< gendergender

< translationstranslations

< wordword

Definition at line 30 of file qoption.cpp.

31{
32 QJsonObject object
33 {
34 {"gender", gender},
35 {"translations", QJsonArray::fromStringList(translations)},
36 {"word", word},
37 };
38 return object;
39}
QStringList translations
translations
Definition: qoption.h:35
QString word
word
Definition: qoption.h:33
QString gender
gender
Definition: qoption.h:34

Member Data Documentation

◆ gender

QString QOption::gender

gender

gender

Definition at line 34 of file qoption.h.

◆ translations

QStringList QOption::translations

translations

translations

Definition at line 35 of file qoption.h.

◆ word

QString QOption::word

word

word

Definition at line 33 of file qoption.h.


The documentation for this struct was generated from the following files: