10         mLastModified = mCreated;
 
   15         if (!jsonObj.
contains(
"node") || !jsonObj[
"node"].isObject()
 
   22         const QJsonObject& nodeObj = jsonObj[
"node"].toObject();
 
   26         mHeader = jsonObj[
"header"].toString();
 
   29         mText = jsonObj[
"text"].toString();
 
   80         node[
"id"]         = (int) mNode.
id();
 
   81         node[
"type"]       = (int) mNode.
type();
 
   82         retval[
"node"]     = node;
 
   83         retval[
"header"]   = mHeader;
 
   86         retval[
"text"]     = mText;
 
   98         xout << (mNode.
isGate() ? 
"Gate" : 
"Module") << 
" " << mNode.
id() << 
"\n";
 
   99         xout <<  
"   header:    <" << mHeader << 
">\n";
 
  100         xout <<  
"   created:   " << mCreated.
toString(
"dd.MM.yyyy hh:mm:ss") << 
"\n";
 
  101         xout <<  
"   modified:  " << mLastModified.
toString(
"dd.MM.yyyy hh:mm:ss") << 
"\n";
 
  102         xout <<  
"   text:      <" << mText.
left(35) << 
">\n";
 
  107         return QString(
"dd.MM.yy hh:mm");
 
The Node class object represents a module or a gate.
NodeType type() const
type getter for type information
bool isGate() const
isGate test whether node is a gate
bool isNull() const
isNull test for null-Node object typically returned from functions
u32 id() const
id getter for ID information
QDateTime currentDateTime()
QDateTime fromString(const QString &string, Qt::DateFormat format)
QString toString(Qt::DateFormat format) const const
QDateTime toUTC() const const
bool contains(const QString &key) const const
QString left(int n) const const