KPropertyListData

KPropertyListData Class Reference

#include <KPropertyListData.h>

Inherited by CursorListData, and SizePolicyListData.

Public Member Functions

 KPropertyListData (const KPropertyListData &other)
 
 KPropertyListData (const QStringList &keys, const QStringList &names)
 
 KPropertyListData (const QVariantList &keys, const QVariantList &names)
 
 KPropertyListData (const QVariantList &keys, const QStringList &names)
 
QVariantList keys () const
 
QStringList keysAsStringList () const
 
QVariantList names () const
 
QStringList namesAsStringList () const
 
bool operator!= (const KPropertyListData &other) const
 
KPropertyListDataoperator= (const KPropertyListData &other)
 
bool operator== (const KPropertyListData &other) const
 
void setKeys (const QVariantList &keys)
 
void setKeysAsStringList (const QStringList &keys)
 
void setNames (const QVariantList &names)
 
void setNamesAsStringList (const QStringList &names)
 

Detailed Description

A data container for properties of list type.

Since
3.1

Definition at line 34 of file KPropertyListData.h.

Member Function Documentation

QVariantList KPropertyListData::keys ( ) const

A list containing all possible keys for a property.

Items of this list are ordered, so the first key element is associated with first element from the 'names' list, and so on.

Definition at line 105 of file KPropertyListData.cpp.

QStringList KPropertyListData::keysAsStringList ( ) const

A list containing all possible keys for a property converted to strings.

Definition at line 110 of file KPropertyListData.cpp.

QVariantList KPropertyListData::names ( ) const

The list of user-visible translated name elements.

First value is referenced by first key, and so on.

Definition at line 119 of file KPropertyListData.cpp.

QStringList KPropertyListData::namesAsStringList ( ) const

The list of user-visible translated name elements as strings.

Definition at line 124 of file KPropertyListData.cpp.

bool KPropertyListData::operator!= ( const KPropertyListData other) const
inline
Returns
true if this KPropertyListData does not equal to other

Definition at line 56 of file KPropertyListData.h.

KPropertyListData & KPropertyListData::operator= ( const KPropertyListData other)

Assigns other to this KPropertyListData.

Definition at line 79 of file KPropertyListData.cpp.

bool KPropertyListData::operator== ( const KPropertyListData other) const
Returns
true if this KPropertyListData equals to other

Definition at line 87 of file KPropertyListData.cpp.

void KPropertyListData::setKeys ( const QVariantList &  keys)

Sets a list containing all possible keys for a property.

Note
each key on the list should be unique

Definition at line 100 of file KPropertyListData.cpp.

void KPropertyListData::setKeysAsStringList ( const QStringList keys)

Sets a list containing all possible keys for a property as strings.

Note
each key on the list should be unique

Definition at line 92 of file KPropertyListData.cpp.

void KPropertyListData::setNames ( const QVariantList &  names)

Sets a list containing all possible keys for a property.

Note
each key on the list should be unique

Definition at line 141 of file KPropertyListData.cpp.

void KPropertyListData::setNamesAsStringList ( const QStringList names)

Sets a list containing all possible keys for a property as strings.

Note
each key on the list should be unique

Definition at line 133 of file KPropertyListData.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 23:05:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.