Qt 4.8
Public Functions | Public Variables | List of all members
QScriptDebuggerCodeWidgetPrivate Class Reference
Inheritance diagram for QScriptDebuggerCodeWidgetPrivate:
QScriptDebuggerCodeWidgetInterfacePrivate QWidgetPrivate QObjectPrivate QObjectData

Public Functions

void _q_onBreakpointEnableRequest (int lineNumber, bool enable)
 
void _q_onBreakpointsAboutToBeRemoved (const QModelIndex &, int, int)
 
void _q_onBreakpointsDataChanged (const QModelIndex &, const QModelIndex &)
 
void _q_onBreakpointsInserted (const QModelIndex &, int, int)
 
void _q_onBreakpointToggleRequest (int lineNumber, bool on)
 
void _q_onScriptsChanged ()
 
void _q_onToolTipRequest (const QPoint &pos, int lineNumber, const QStringList &path)
 
 QScriptDebuggerCodeWidgetPrivate ()
 
qint64 scriptId (QScriptDebuggerCodeViewInterface *view) const
 
 ~QScriptDebuggerCodeWidgetPrivate ()
 
- Public Functions inherited from QScriptDebuggerCodeWidgetInterfacePrivate
 QScriptDebuggerCodeWidgetInterfacePrivate ()
 
 ~QScriptDebuggerCodeWidgetInterfacePrivate ()
 
- Public Functions inherited from QWidgetPrivate
void _q_showIfNotHidden ()
 
virtual void aboutToDestroy ()
 
void activateChildLayoutsRecursively ()
 
QSize adjustedSize () const
 
void adjustQuitOnCloseAttribute ()
 
QInputContextassignedInputContext () const
 
QPainterbeginSharedPainter ()
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool, bool includeFrame=false) const
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void clipToEffectiveMask (QRegion &region) const
 
bool close_helper (CloseMode mode)
 
void create_sys (WId window, bool initializeWindow, bool destroyOldWindow)
 
QWindowSurfacecreateDefaultWindowSurface ()
 
QWindowSurfacecreateDefaultWindowSurface_sys ()
 
void createExtra ()
 Creates the widget extra data. More...
 
void createRecursively ()
 
void createSysExtra ()
 
void createTLExtra ()
 
void createTLSysExtra ()
 
void createWinId (WId id=0)
 
void deactivateWidgetCleanup ()
 
void deleteExtra ()
 Deletes the widget extra data. More...
 
void deleteSysExtra ()
 
void deleteTLSysExtra ()
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter=0, QWidgetBackingStore *backingStore=0)
 
QWidgeteffectiveFocusWidget ()
 
QRect effectiveRectFor (const QRect &rect) const
 
bool endSharedPainter ()
 
void enforceNativeChildren ()
 
QWExtraextraData () const
 
QRect frameStrut () const
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
const QRegiongetOpaqueChildren () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
virtual bool hasHeightForWidth () const
 
void hide_helper ()
 
void hide_sys ()
 Platform-specific part of QWidget::hide(). More...
 
void hideChildren (bool spontaneous)
 
void inheritStyle ()
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
QInputContextinputContext () const
 
void invalidateBuffer (const QRegion &)
 Invalidates the rgn (in widget's coordinates) of the backing store, i.e. More...
 
void invalidateBuffer (const QRect &)
 This function is equivalent to calling invalidateBuffer(QRegion(rect), ...), but is more efficient as it eliminates QRegion operations/allocations and can use the rect more precisely for additional cut-offs. More...
 
void invalidateBuffer_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the buffer when the widget is resized. More...
 
void invalidateGraphicsEffectsRecursively ()
 
bool isAboutToShow () const
 
bool isBackgroundInherited () const
 
bool isOverlapped (const QRect &) const
 
void lower_sys ()
 
QPoint mapFromGlobal (const QPoint &pos) const
 
QPoint mapToGlobal (const QPoint &pos) const
 
QWidgetBackingStoremaybeBackingStore () const
 
QTLWExtramaybeTopData () const
 
void moveRect (const QRect &, int dx, int dy)
 
bool nativeChildrenForced () const
 
QFont naturalWidgetFont (uint inheritedMask) const
 
QPalette naturalWidgetPalette (uint inheritedMask) const
 Returns the palette that the widget w inherits from its ancestors and QApplication::palette. More...
 
void paintBackground (QPainter *, const QRegion &, int flags=DrawAsRoot) const
 
bool paintOnScreen () const
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter, QWidgetBackingStore *backingStore)
 
bool pointInsideRectAndMask (const QPoint &) const
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void propagatePaletteChange ()
 Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows). More...
 
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
void raise_sys ()
 
QPaintDeviceredirected (QPoint *offset) const
 
void registerDropSite (bool)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags, bool readyToRender)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void repaint_sys (const QRegion &rgn)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void resolveFont ()
 Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). More...
 
void resolveLayoutDirection ()
 
void resolveLocale ()
 
void resolvePalette ()
 Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). More...
 
void restoreRedirected ()
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void scrollChildren (int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void sendStartupMessage (const char *message) const
 Platform-specific part of QWidget::show(). More...
 
void setConstraints_sys ()
 
void setCursor_sys (const QCursor &cursor)
 
void setDirtyOpaqueRegion ()
 
void setEnabled_helper (bool)
 
void setFocus_sys ()
 
void setFont_helper (const QFont &font)
 
void setGeometry_sys (int, int, int, int, bool)
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=0)
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void setMask_sys (const QRegion &)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
void setModal_sys ()
 
void setNetWmWindowTypes ()
 
void setOpaque (bool opaque)
 
void setPalette_helper (const QPalette &)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
void setSharedPainter (QPainter *painter)
 
void setStyle_helper (QStyle *newStyle, bool propagate, bool metalHack=false)
 
void setUpdatesEnabled_helper (bool)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys (bool forceReset=false)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowOpacity_sys (qreal opacity)
 
void setWindowRole ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWinId (WId)
 
QPaintersharedPainter () const
 
void show_helper ()
 
void show_recursive ()
 Makes the widget visible in the isVisible() meaning of the word. More...
 
void show_sys ()
 Platform-specific part of QWidget::show(). More...
 
void showChildren (bool spontaneous)
 
void stackUnder_sys (QWidget *)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=0, bool alsoNonOpaque=false) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
QTLWExtratopData () const
 
void unsetCursor_sys ()
 
void updateFont (const QFont &)
 Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. More...
 
void updateFrameStrut ()
 Computes the frame rectangle when needed. More...
 
void updateGeometry_helper (bool forceUpdate)
 
void updateIsOpaque ()
 
void updateIsTranslucent ()
 
void updateSystemBackground ()
 
void updateX11AcceptFocus ()
 
void x11UpdateIsOpaque ()
 
 ~QWidgetPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Public Variables

QScriptBreakpointsModelbreakpointsModel
 
QScriptDebuggerScriptsModelscriptsModel
 
QScriptToolTipProviderInterfacetoolTipProvider
 
QHash< qint64, QScriptDebuggerCodeViewInterface * > viewHash
 
QStackedWidgetviewStack
 
- Public Variables inherited from QWidgetPrivate
QString accessibleDescription
 
QString accessibleName
 
QList< QAction * > actions
 
QPalette::ColorRole bg_role: 8
 
signed char bottomLayoutItemMargin
 
short bottommargin
 
QWidgetData data
 
QRegion dirty
 
uint dirtyOpaqueChildren: 1
 
QWExtraextra
 
QPaintEngineextraPaintEngine
 
QPalette::ColorRole fg_role: 8
 
QWidgetfocus_child
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
QGraphicsEffectgraphicsEffect
 
Qt::HANDLE hd
 
uint high_attributes [4]
 
QPointer< QInputContextic
 
Qt::InputMethodHints imHints
 
uint inDirtyList: 1
 
uint inheritedFontResolveMask
 
uint inheritedPaletteResolveMask
 
uint inheritsInputMethodHints: 1
 
uint inSetParent: 1
 
uint isGLWidget: 1
 
uint isMoved: 1
 
uint isOpaque: 1
 
uint isScrolled: 1
 
QLayoutlayout
 
signed char leftLayoutItemMargin
 
short leftmargin
 
QLocale locale
 
QRegionneedsFlush
 
QRegion opaqueChildren
 
Qt::HANDLE picture
 
const QMetaObjectpolished
 
QPaintDeviceredirectDev
 
QPoint redirectOffset
 
signed char rightLayoutItemMargin
 
short rightmargin
 
QSizePolicy size_policy
 
QString statusTip
 
QString toolTip
 
signed char topLayoutItemMargin
 
short topmargin
 
uint usesDoubleBufferedGLContext: 1
 
QString whatsThis
 
QWidgetItemV2widgetItem
 
QX11Info xinfo
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QWidgetPrivate
enum  CloseMode { CloseNoEvent, CloseWithEvent, CloseWithSpontaneousEvent }
 
enum  Direction { DirectionNorth = 0x01, DirectionEast = 0x10, DirectionSouth = 0x02, DirectionWest = 0x20 }
 
enum  DrawWidgetFlags {
  DrawAsRoot = 0x01, DrawPaintOnScreen = 0x02, DrawRecursive = 0x04, DrawInvisible = 0x08,
  DontSubtractOpaqueChildren = 0x10, DontSetCompositionMode = 0x20, DontDrawOpaqueChildren = 0x40, DontDrawNativeChildren = 0x80
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Static Public Functions inherited from QWidgetPrivate
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=0)
 
static QGraphicsProxyWidgetnearestGraphicsProxyWidget (const QWidget *origin)
 Finds the nearest widget embedded in a graphics proxy widget along the chain formed by this widget and its ancestors. More...
 
static int pointToRect (const QPoint &p, const QRect &r)
 
static QRect screenGeometry (const QWidget *widget)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 
- Static Public Variables inherited from QWidgetPrivate
static QWidgetSetallWidgets = 0
 
static int instanceCounter = 0
 
static QWidgetkeyboardGrabber = 0
 
static QWidgetMappermapper = 0
 
static int maxInstances = 0
 
static QWidgetmouseGrabber = 0
 

Detailed Description

Definition at line 55 of file qscriptdebuggercodewidget.cpp.

Constructors and Destructors

◆ QScriptDebuggerCodeWidgetPrivate()

QScriptDebuggerCodeWidgetPrivate::QScriptDebuggerCodeWidgetPrivate ( )

Definition at line 81 of file qscriptdebuggercodewidget.cpp.

82 {
83  scriptsModel = 0;
84  breakpointsModel = 0;
85  toolTipProvider = 0;
86 }
QScriptToolTipProviderInterface * toolTipProvider
QScriptDebuggerScriptsModel * scriptsModel

◆ ~QScriptDebuggerCodeWidgetPrivate()

QScriptDebuggerCodeWidgetPrivate::~QScriptDebuggerCodeWidgetPrivate ( )

Definition at line 88 of file qscriptdebuggercodewidget.cpp.

89 {
90 }

Functions

◆ _q_onBreakpointEnableRequest()

void QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointEnableRequest ( int  lineNumber,
bool  enable 
)

Definition at line 117 of file qscriptdebuggercodewidget.cpp.

118 {
120  qint64 sid = scriptId(view);
121  int bpid = breakpointsModel->resolveBreakpoint(sid, lineNumber);
122  if (bpid == -1)
124  Q_ASSERT(bpid != -1);
126  data.setEnabled(enable);
127  breakpointsModel->setBreakpointData(bpid, data);
128 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
QScriptDebuggerScriptsModel * scriptsModel
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QScriptScriptData scriptData(qint64 id) const
QWidgetData data
Definition: qwidget_p.h:755
qint64 scriptId(QScriptDebuggerCodeViewInterface *view) const
void setEnabled(bool enabled)
Sets the enabled state of the breakpoint.
__int64 qint64
Definition: qglobal.h:942
The QScriptBreakpointData class contains data associated with a breakpoint.
QScriptBreakpointData breakpointData(int id) const
void setBreakpointData(int id, const QScriptBreakpointData &data)
Sets the data associated with the breakpoint identified by id.
int resolveBreakpoint(qint64 scriptId, int lineNumber) const
Tries to find a breakpoint with the given scriptId and lineNumber.
QString fileName() const

◆ _q_onBreakpointsAboutToBeRemoved()

void QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsAboutToBeRemoved ( const QModelIndex ,
int  first,
int  last 
)

Definition at line 130 of file qscriptdebuggercodewidget.cpp.

132 {
133  for (int i = first; i <= last; ++i) {
135  qint64 scriptId = data.scriptId();
136  if (scriptId == -1) {
137  scriptId = scriptsModel->resolveScript(data.fileName());
138  if (scriptId == -1)
139  continue;
140  }
142  if (!view)
143  continue;
144  view->deleteBreakpoint(data.lineNumber());
145  }
146 }
QHash< qint64, QScriptDebuggerCodeViewInterface * > viewHash
QScriptBreakpointData breakpointDataAt(int row) const
Returns the data for the breakpoint at the given row.
QScriptDebuggerScriptsModel * scriptsModel
virtual void deleteBreakpoint(int lineNumber)=0
const T value(const Key &key) const
Returns the value associated with the key.
Definition: qhash.h:606
QWidgetData data
Definition: qwidget_p.h:755
qint64 scriptId(QScriptDebuggerCodeViewInterface *view) const
qint64 resolveScript(const QString &fileName) const
__int64 qint64
Definition: qglobal.h:942
The QScriptBreakpointData class contains data associated with a breakpoint.
int lineNumber() const
Returns the breakpoint line number.

◆ _q_onBreakpointsDataChanged()

void QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsDataChanged ( const QModelIndex tl,
const QModelIndex br 
)

Definition at line 166 of file qscriptdebuggercodewidget.cpp.

168 {
169  for (int i = tl.row(); i <= br.row(); ++i) {
171  qint64 scriptId = data.scriptId();
172  if (scriptId == -1) {
173  scriptId = scriptsModel->resolveScript(data.fileName());
174  if (scriptId == -1)
175  continue;
176  }
178  if (!view)
179  continue;
180  view->setBreakpointEnabled(data.lineNumber(), data.isEnabled());
181  }
182 }
QHash< qint64, QScriptDebuggerCodeViewInterface * > viewHash
QScriptBreakpointData breakpointDataAt(int row) const
Returns the data for the breakpoint at the given row.
QScriptDebuggerScriptsModel * scriptsModel
const T value(const Key &key) const
Returns the value associated with the key.
Definition: qhash.h:606
virtual void setBreakpointEnabled(int lineNumber, bool enable)=0
QWidgetData data
Definition: qwidget_p.h:755
qint64 scriptId(QScriptDebuggerCodeViewInterface *view) const
int row() const
Returns the row this model index refers to.
qint64 resolveScript(const QString &fileName) const
__int64 qint64
Definition: qglobal.h:942
The QScriptBreakpointData class contains data associated with a breakpoint.
bool isEnabled() const
Returns true if the breakpoint is enabled, false otherwise.
int lineNumber() const
Returns the breakpoint line number.

◆ _q_onBreakpointsInserted()

void QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsInserted ( const QModelIndex ,
int  first,
int  last 
)

Definition at line 148 of file qscriptdebuggercodewidget.cpp.

150 {
151  for (int i = first; i <= last; ++i) {
153  qint64 scriptId = data.scriptId();
154  if (scriptId == -1) {
155  scriptId = scriptsModel->resolveScript(data.fileName());
156  if (scriptId == -1)
157  continue;
158  }
160  if (!view)
161  continue;
162  view->setBreakpoint(data.lineNumber());
163  }
164 }
QHash< qint64, QScriptDebuggerCodeViewInterface * > viewHash
QScriptBreakpointData breakpointDataAt(int row) const
Returns the data for the breakpoint at the given row.
QScriptDebuggerScriptsModel * scriptsModel
const T value(const Key &key) const
Returns the value associated with the key.
Definition: qhash.h:606
QWidgetData data
Definition: qwidget_p.h:755
qint64 scriptId(QScriptDebuggerCodeViewInterface *view) const
qint64 resolveScript(const QString &fileName) const
__int64 qint64
Definition: qglobal.h:942
virtual void setBreakpoint(int lineNumber)=0
The QScriptBreakpointData class contains data associated with a breakpoint.
int lineNumber() const
Returns the breakpoint line number.

◆ _q_onBreakpointToggleRequest()

void QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointToggleRequest ( int  lineNumber,
bool  on 
)

Definition at line 99 of file qscriptdebuggercodewidget.cpp.

100 {
102  qint64 sid = scriptId(view);
103  Q_ASSERT(sid != -1);
104  if (on) {
105  QScriptBreakpointData data(sid, lineNumber);
106  data.setFileName(scriptsModel->scriptData(sid).fileName());
108  } else {
109  int bpid = breakpointsModel->resolveBreakpoint(sid, lineNumber);
110  if (bpid == -1)
112  Q_ASSERT(bpid != -1);
114  }
115 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
void deleteBreakpoint(int id)
Deletes the breakpoint with the given id.
QScriptDebuggerScriptsModel * scriptsModel
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QScriptScriptData scriptData(qint64 id) const
QWidgetData data
Definition: qwidget_p.h:755
qint64 scriptId(QScriptDebuggerCodeViewInterface *view) const
__int64 qint64
Definition: qglobal.h:942
The QScriptBreakpointData class contains data associated with a breakpoint.
void setBreakpoint(const QScriptBreakpointData &data)
Sets a breakpoint defined by the given data.
int resolveBreakpoint(qint64 scriptId, int lineNumber) const
Tries to find a breakpoint with the given scriptId and lineNumber.
QString fileName() const

◆ _q_onScriptsChanged()

void QScriptDebuggerCodeWidgetPrivate::_q_onScriptsChanged ( )

Definition at line 184 of file qscriptdebuggercodewidget.cpp.

185 {
186  // kill editors for scripts that have been removed
188  for (it = viewHash.begin(); it != viewHash.end(); ) {
189  if (!scriptsModel->scriptData(it.key()).isValid()) {
190  it = viewHash.erase(it);
191  } else
192  ++it;
193  }
194 }
QHash< qint64, QScriptDebuggerCodeViewInterface * > viewHash
#define it(className, varName)
QScriptDebuggerScriptsModel * scriptsModel
QScriptScriptData scriptData(qint64 id) const
const Key & key() const
Returns the current item&#39;s key as a const reference.
Definition: qhash.h:347
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the hash...
Definition: qhash.h:467
The QHash::iterator class provides an STL-style non-const iterator for QHash and QMultiHash.
Definition: qhash.h:330
iterator begin()
Returns an STL-style iterator pointing to the first item in the hash.
Definition: qhash.h:464
iterator erase(iterator it)
Removes the (key, value) pair associated with the iterator pos from the hash, and returns an iterator...
Definition: qhash.h:827

◆ _q_onToolTipRequest()

void QScriptDebuggerCodeWidgetPrivate::_q_onToolTipRequest ( const QPoint pos,
int  lineNumber,
const QStringList path 
)

Definition at line 196 of file qscriptdebuggercodewidget.cpp.

198 {
199  toolTipProvider->showToolTip(pos, /*frameIndex=*/-1, lineNumber, path);
200 }
QScriptToolTipProviderInterface * toolTipProvider
virtual void showToolTip(const QPoint &pos, int frameIndex, int lineNumber, const QStringList &path)=0

◆ scriptId()

qint64 QScriptDebuggerCodeWidgetPrivate::scriptId ( QScriptDebuggerCodeViewInterface view) const

Definition at line 92 of file qscriptdebuggercodewidget.cpp.

Referenced by _q_onBreakpointEnableRequest(), _q_onBreakpointsAboutToBeRemoved(), _q_onBreakpointsDataChanged(), _q_onBreakpointsInserted(), and _q_onBreakpointToggleRequest().

93 {
94  if (!view)
95  return -1;
96  return viewHash.key(view);
97 }
QHash< qint64, QScriptDebuggerCodeViewInterface * > viewHash
const Key key(const T &value) const
Returns the first key mapped to value.
Definition: qhash.h:674

Properties

◆ breakpointsModel

QScriptBreakpointsModel* QScriptDebuggerCodeWidgetPrivate::breakpointsModel

◆ scriptsModel

QScriptDebuggerScriptsModel* QScriptDebuggerCodeWidgetPrivate::scriptsModel

◆ toolTipProvider

QScriptToolTipProviderInterface* QScriptDebuggerCodeWidgetPrivate::toolTipProvider

◆ viewHash

QHash<qint64, QScriptDebuggerCodeViewInterface*> QScriptDebuggerCodeWidgetPrivate::viewHash

◆ viewStack

QStackedWidget* QScriptDebuggerCodeWidgetPrivate::viewStack

Definition at line 75 of file qscriptdebuggercodewidget.cpp.


The documentation for this class was generated from the following file: