26 : mContent( other.mContent )
27 , mBackgroundColor( other.mBackgroundColor )
28 , mForegroundColor( other.mForegroundColor )
29 , mFormat( other.mFormat ? other.mFormat->clone() : nullptr )
36 mContent = other.mContent;
37 mBackgroundColor = other.mBackgroundColor;
38 mForegroundColor = other.mForegroundColor;
39 mFormat.reset( other.mFormat ? other.mFormat->clone() :
nullptr );
50 mFormat.reset( format );
56 res.insert( QStringLiteral(
"content" ), mContent );
57 res.insert( QStringLiteral(
"foreground" ), mForegroundColor );
58 res.insert( QStringLiteral(
"background" ), mBackgroundColor );
61 res.insert( QStringLiteral(
"format_type" ), mFormat->id() );
62 res.insert( QStringLiteral(
"format" ), mFormat->configuration( context ) );
69 mContent =
properties.value( QStringLiteral(
"content" ) );
70 mForegroundColor =
properties.value( QStringLiteral(
"foreground" ) ).value< QColor >();
71 mBackgroundColor =
properties.value( QStringLiteral(
"background" ) ).value< QColor >();
72 if (
properties.contains( QStringLiteral(
"format_type" ) ) )
76 properties.value( QStringLiteral(
"format" ) ).toMap(),