KDb
KDbTableViewData.cpp
347 KDbTableViewColumn* col = new KDbTableViewColumn(*d->cursor->query(), ci, visibleLookupColumnInfo);
535 // find proper column information for sorting (lookup column points to alternate column with visible data)
742 for (KDbRecordEditBuffer::SimpleMap::ConstIterator it = b.constBegin();it != b.constEnd();++it) {
799 if (!d->cursor->deleteRecord(static_cast<KDbRecordData*>(record), d->containsRecordIdInfo /*use ROWID*/)) {
828 for (QList<int>::ConstIterator r_it = recordsToDelete.constBegin(); r_it != recordsToDelete.constEnd(); ++r_it) {
bool deleteRecord(KDbRecordData *data, bool useRecordId=false)
Definition KDbCursor.cpp:517
bool updateRecord(KDbRecordData *data, KDbRecordEditBuffer *buf, bool useRecordId=false)
Definition KDbCursor.cpp:498
bool insertRecord(KDbRecordData *data, KDbRecordEditBuffer *buf, bool getRecrordId=false)
Definition KDbCursor.cpp:507
KDbOrderByColumn provides information about a single query column used for sorting.
Definition KDbOrderByColumn.h:34
Helper class that assigns additional information for the column in a query.
Definition KDbQueryColumnInfo.h:41
int indexForVisibleLookupValue() const
Definition KDbQueryColumnInfo.cpp:83
KDbQueryColumnInfo::Vector fieldsExpanded(KDbConnection *conn, FieldsExpandedMode mode=FieldsExpandedMode::Default) const
Definition KDbQuerySchema.h:501
KDbQueryColumnInfo * expandedOrInternalField(KDbConnection *conn, int index) const
Definition KDbQuerySchema.cpp:790
Structure for storing single record with type information.
Definition KDbRecordData.h:37
provides data for single edited database record
Definition KDbRecordEditBuffer.h:77
const QVariant * at(KDbQueryColumnInfo *ci, bool useDefaultValueIfPossible=true) const
Definition KDbRecordEditBuffer.cpp:50
void insert(KDbQueryColumnInfo *ci, const QVariant &val)
Inserts value val for db-aware buffer's column ci Does nothing if ci is nullptr.
Definition KDbRecordEditBuffer.cpp:151
Definition KDbError.h:115
int column
Faulty column, -1 (the default) means: there is no faulty column.
Definition KDbError.h:130
bool isVisible() const
Column visibility. By default column is visible.
Definition KDbTableViewColumn.cpp:227
KDbQueryColumnInfo * visibleLookupColumnInfo()
Definition KDbTableViewColumn.cpp:315
KDbQueryColumnInfo * columnInfo()
Definition KDbTableViewColumn.cpp:305
void setData(KDbTableViewData *data)
used by KDbTableViewData::addColumn()
Definition KDbTableViewColumn.cpp:189
A list of records to allow configurable sorting and more.
Definition KDbTableViewData.h:46
bool deleteRecord(KDbRecordData *record, bool repaint=false)
Definition KDbTableViewData.cpp:790
virtual bool isInsertingEnabled() const
Definition KDbTableViewData.cpp:495
int visibleColumnCount() const
Definition KDbTableViewData.cpp:460
bool updateRecordEditBuffer(KDbRecordData *record, int colnum, KDbTableViewColumn *col, const QVariant &newval, bool allowSignals=true)
Definition KDbTableViewData.cpp:641
QList< KDbTableViewColumn * > * visibleColumns()
Definition KDbTableViewData.cpp:470
void setSorting(int column, KDbOrderByColumn::SortOrder order=KDbOrderByColumn::SortOrder::Ascending)
Definition KDbTableViewData.cpp:527
static QString messageYouCanImproveData()
Definition KDbTableViewData.cpp:928
bool updateRecordEditBufferRef(KDbRecordData *record, int colnum, KDbTableViewColumn *col, QVariant *newval, bool allowSignals=true, QVariant *visibleValueForLookupField=nullptr)
Definition KDbTableViewData.cpp:594
void aboutToInsertRecord(KDbRecordData *record, KDbResultInfo *result, bool repaint)
void addColumn(KDbTableViewColumn *col)
Definition KDbTableViewData.cpp:399
int globalIndexOfVisibleColumn(int visibleIndex) const
Definition KDbTableViewData.cpp:445
void aboutToChangeCell(KDbRecordData *record, int colnum, QVariant *newValue, KDbResultInfo *result)
KDbTableViewColumn * visibleColumn(int index)
Definition KDbTableViewData.cpp:480
KDbOrderByColumn::SortOrder sortOrder() const
Definition KDbTableViewData.cpp:554
void recordInserted(KDbRecordData *, bool repaint)
A record has been inserted.
virtual void clearInternal(bool processEvents=true)
Definition KDbTableViewData.cpp:845
void aboutToUpdateRecord(KDbRecordData *record, KDbRecordEditBuffer *buffer, KDbResultInfo *result)
void aboutToDeleteRecord(KDbRecordData *record, KDbResultInfo *result, bool repaint)
void insertRecord(KDbRecordData *record, int index, bool repaint=false)
Definition KDbTableViewData.cpp:839
void clearRecordEditBuffer()
Definition KDbTableViewData.cpp:585
QList< KDbTableViewColumn * > * columns()
Definition KDbTableViewData.cpp:465
virtual bool deleteAllRecords(bool repaint=false)
Definition KDbTableViewData.cpp:862
int visibleColumnIndex(int globalIndex) const
Definition KDbTableViewData.cpp:450
void recordsDeleted(const QList< int > &recordsToDelete)
Records have been deleted.
void columnVisibilityChanged(const KDbTableViewColumn &column)
Used by KDbTableViewColumn::setVisible()
Definition KDbTableViewData.cpp:416
void reloadRequested()
Displayed data needs to be reloaded in all presenters.
bool containsRecordIdInfo() const
Definition KDbTableViewData.cpp:510
int autoIncrementedColumn() const
Definition KDbTableViewData.cpp:877
void deleteRecords(const QList< int > &recordsToDelete, bool repaint=false)
Definition KDbTableViewData.cpp:820
KDbRecordData * createItem() const
Creates a single record data with proper number of columns.
Definition KDbTableViewData.cpp:515
KDbRecordEditBuffer * recordEditBuffer() const
Definition KDbTableViewData.cpp:500
virtual void setInsertingEnabled(bool set)
Definition KDbTableViewData.cpp:576
Q_SCRIPTABLE CaptureState status()
KDB_EXPORT bool isEmptyValue(KDbField::Type type, const QVariant &value)
Definition KDb.cpp:429
KDB_EXPORT void getHTMLErrorMesage(const KDbResultable &resultable, QString *msg, QString *details)
Sets HTML-formatted error message with extra details obtained from result object.
Definition KDb.cpp:505
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
char16_t & unicode()
QDebug & nospace()
QDebug & space()
AllEvents
ConstIterator
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
const_iterator constBegin() const const
const_iterator constEnd() const const
qsizetype count() const const
qsizetype indexOf(const AT &value, qsizetype from) const const
iterator insert(const_iterator before, parameter_type value)
bool isEmpty() const const
void removeAt(qsizetype i)
T value(qsizetype i) const const
ConstIterator
const_iterator constBegin() const const
const_iterator constEnd() const const
void deleteLater()
QString tr(const char *sourceText, const char *disambiguation, int n)
QString arg(Args &&... args) const const
const QChar * constData() const const
bool isEmpty() const const
qsizetype length() const const
qsizetype size() const const
const QChar * unicode() const const
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)
bool isNull() const const
QString toString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.