44 #include "private/qabstractitemmodel_p.h" 46 #include <QtScript/qscriptcontextinfo.h> 47 #include <QtCore/qfileinfo.h> 48 #include <QtCore/qcoreapplication.h> 83 return d->contextInfos;
90 d->contextInfos = infos;
111 return d->contextInfos.count();
123 if (index.
row() >=
d->contextInfos.count())
127 if (index.
column() == 0) {
129 }
else if (index.
column() == 1) {
134 }
else if (index.
column() == 2) {
162 else if (section == 1)
164 else if (section == 2)
The QVariant class acts like a union for the most common Qt data types.
int rowCount(const QModelIndex &parent) const
Reimplemented Function
static mach_timebase_info_data_t info
#define QT_END_NAMESPACE
This macro expands to.
QVariant data(const QModelIndex &index, int role) const
Reimplemented Function
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Returns the index of the data in row and column with parent.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
QVariant headerData(int section, Qt::Orientation, int role) const
Reimplemented Function
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
QString fileName() const
Returns the name of the file where the code being executed was defined, if available; otherwise retur...
int columnCount(const QModelIndex &parent) const
Reimplemented Function
#define QT_BEGIN_NAMESPACE
This macro expands to.
int lineNumber() const
Returns the line number corresponding to the statement being executed, or -1 if the line number is no...
void layoutAboutToBeChanged()
This signal is emitted just before the layout of a model is changed.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
int row() const
Returns the row this model index refers to.
~QScriptDebuggerStackModelPrivate()
QScriptDebuggerStackModelPrivate()
QScriptDebuggerStackModel(QObject *parent=0)
void layoutChanged()
This signal is emitted whenever the layout of items exposed by the model has changed; for example...
void setContextInfos(const QList< QScriptContextInfo > &infos)
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QScriptContextInfo class provides additional information about a QScriptContext.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
#define Q_DECLARE_PUBLIC(Class)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
QObject * parent() const
Returns a pointer to the parent object.
The QModelIndex class is used to locate data in a data model.
~QScriptDebuggerStackModel()
FunctionType functionType() const
Returns the type of the called function.
qint64 scriptId() const
Returns the ID of the script where the code being executed was defined, or -1 if the ID is not availa...
The QFileInfo class provides system-independent file information.
static QString fileName(const QString &fileUrl)
QList< QScriptContextInfo > contextInfos() const
QList< QScriptContextInfo > contextInfos
The QAbstractTableModel class provides an abstract model that can be subclassed to create table model...
int column() const
Returns the column this model index refers to.
QString functionName() const
Returns the name of the called function, or an empty string if the name is not available.