|
virtual QSettingsDialog * | dialog () const =0 |
| Returns the dialog this container belongs to.
|
|
virtual QString | containerPath () const =0 |
| Returns the container path this container has.
|
|
virtual int | elementCount () const =0 |
| Returns the number of elements in this container.
|
|
virtual bool | isEntry (int index) const =0 |
| Checks whether the element at the given index is an entry or not.
|
|
virtual int | getEntryIndex (int id) const =0 |
| Searches for entries index. More...
|
|
virtual int | getEntryId (int index) const =0 |
| Returns the id for the entry at the index. More...
|
|
virtual QSharedPointer< QSettingsEntry > | getEntry (int id) const =0 |
| Returns the entry with the given id. More...
|
|
virtual QSharedPointer< QSettingsEntry > | getEntryFromIndex (int index) const =0 |
| Returns the entry at the given index. More...
|
|
virtual bool | transferElement (int indexFrom, QSettingsContainer *targetContainer, int indexTo)=0 |
| Tries to transfer the element at index to the target container. More...
|
|
| QObject (QObject *parent) |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
virtual const QMetaObject * | metaObject () const |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
bool | signalsBlocked () const |
|
bool | blockSignals (bool block) |
|
QThread * | thread () const |
|
void | moveToThread (QThread *targetThread) |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
void | killTimer (int id) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const |
|
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
|
bool | disconnect (const QObject *receiver, const char *method) const |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
void | destroyed (QObject *obj) |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const |
|
bool | inherits (const char *className) const |
|
void | deleteLater () |
|
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
| objectName |
|
A generic class the defines methods for settings containers.
Will be called to insert the given entry from a transfer.
- Parameters
-
index | The target index to insert the entry at |
id | The id of the entry to be inserted |
entry | The entry itself to insert |
- Returns
true
, if the entry was accepted and taken, false
if not
This function will be called internally to insert an entry from a QSettingsContainer::transferElement. It will be called on the target container with the given parameters. If true
is returned, the original container assumes the element was taken and will remove it from itself. If false
is returned, it's expected that the target container did not accept the element and the original one will keep the entry.
Implemented in QSectionSettingsContainer, QGroupSettingsContainer, and QAsyncSettingsContainer.
QSettingsContainer::transferElement |
( |
int |
indexFrom, |
|
|
QSettingsContainer * |
targetContainer, |
|
|
int |
indexTo |
|
) |
| |
|
pure virtual |
Tries to transfer the element at index to the target container.
- Parameters
-
indexFrom | The index of the element to be transfered |
targetContainer | The container to transfer the element to |
indexTo | The index to insert the element at in the target container |
- Returns
true
, if the transfer was successful, false
if not
The function will first check if the target container accepts the element at indexFrom. If it does, it will be transfered. If not, nothign happens and false
is returned.
Implemented in QSectionSettingsContainer, QGroupSettingsContainer, and QAsyncSettingsContainer.