Qt 4.8
Public Types | Public Functions | Public Variables | List of all members
QCss::Value Struct Reference

#include <qcssparser_p.h>

Public Types

enum  Type {
  Unknown, Number, Percentage, Length,
  String, Identifier, KnownIdentifier, Uri,
  Color, Function, TermOperatorSlash, TermOperatorComma
}
 

Public Functions

QString toString () const
 
 Value ()
 

Public Variables

Type type
 
QVariant variant
 

Detailed Description

Definition at line 354 of file qcssparser_p.h.

Enumerations

◆ Type

Enumerator
Unknown 
Number 
Percentage 
Length 
String 
Identifier 
KnownIdentifier 
Uri 
Color 
Function 
TermOperatorSlash 
TermOperatorComma 

Definition at line 356 of file qcssparser_p.h.

Constructors and Destructors

◆ Value()

QCss::Value::Value ( )
inline

Definition at line 370 of file qcssparser_p.h.

Functions

◆ toString()

QString Value::toString ( ) const

Definition at line 253 of file qcssparser.cpp.

Referenced by parseCSStoXMLAttrs(), and parseStopNode().

254 {
255  if (type == KnownIdentifier) {
257  } else {
258  return variant.toString();
259  }
260 }
QString toString() const
Returns the variant as a QString if the variant has type() String , Bool , ByteArray ...
Definition: qvariant.cpp:2270
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QVariant variant
Definition: qcssparser_p.h:372
int toInt(bool *ok=0) const
Returns the variant as an int if the variant has type() Int , Bool , ByteArray , Char ...
Definition: qvariant.cpp:2625
static const QCssKnownValue values[NumKnownValues - 1]
Definition: qcssparser.cpp:172
const char * name
Definition: qcssparser.cpp:63
static const short indexOfId[NumKnownValues]
Definition: qcssparser.cpp:248

Properties

◆ type

Type QCss::Value::type

◆ variant

QVariant QCss::Value::variant

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