46 #include <QtCore/qdebug.h> 47 #include <QtGui/qheaderview.h> 48 #include <QtGui/qtreeview.h> 49 #include <QtGui/qboxlayout.h> 82 qint64 sid = q->scriptsModel()->scriptIdFromIndex(index);
86 emit q->currentScriptChanged(sid);
89 qint64 sid = q->scriptsModel()->scriptIdFromIndex(index.
parent());
92 emit q->currentScriptChanged(sid);
107 d->view->header()->hide();
135 d->view->setModel(model);
149 d->view->setCurrentIndex(
scriptsModel()->indexFromScriptId(
id));
154 #include "moc_qscriptdebuggerscriptswidget_p.cpp"
static mach_timebase_info_data_t info
#define QT_END_NAMESPACE
This macro expands to.
T * qobject_cast(QObject *object)
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...
QModelIndex parent() const
Returns the parent of the model index, or QModelIndex() if it has no parent.
#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.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
#define Q_DECLARE_PUBLIC(Class)
qint64 scriptIdFromIndex(const QModelIndex &index) const
The QModelIndex class is used to locate data in a data model.
The QVBoxLayout class lines up widgets vertically.