45 #include <QtCore/qdebug.h> 46 #include <QtGui/qheaderview.h> 47 #include <QtGui/qtreeview.h> 48 #include <QtGui/qboxlayout.h> 77 emit q->currentFrameChanged(index.
row());
86 d->view->setAlternatingRowColors(
true);
87 d->view->setRootIsDecorated(
false);
107 return d->view->model();
116 d->view->setModel(model);
119 d->view->header()->resizeSection(0, 50);
128 return d->view->currentIndex().row();
137 d->view->setCurrentIndex(
d->view->model()->index(frameIndex, 0));
142 #include "moc_qscriptdebuggerstackwidget_p.cpp"
#define QT_END_NAMESPACE
This macro expands to.
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=0)
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment...
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
The QTreeView class provides a default model/view implementation of a tree view.
int row() const
Returns the row this model index refers to.
The QAbstractItemModel class provides the abstract interface for item model classes.
#define Q_DECLARE_PUBLIC(Class)
The QModelIndex class is used to locate data in a data model.
The QVBoxLayout class lines up widgets vertically.