delete w;
l = new QLabel;
const QString title = data.address ?
- tr("%1 Object at %2").arg(QLatin1String(data.type), QLatin1String(data.hexAddress())) :
- tr("%1 Object at Unknown Address").arg(QLatin1String(data.type));
+ tr("%1 Object at %2").arg(QLatin1String(data.type),
+ QLatin1String(data.hexAddress())) :
+ tr("%1 Object at Unknown Address").arg(QLatin1String(data.type));
l->setWindowTitle(title);
m_editHandlers[key] = l;
}
QImage im(bits, width, height, QImage::Format(format));
#if 1
- // enforcing copy of image data
+ // Qt bug. Enforce copy of image data.
QImage im2(im);
im.detach();
#endif
l->resize(width, height);
l->show();
} else if (data.editformat == 2) {
- // QString
+ // Display QString in a separate widget.
QTextEdit *t = qobject_cast<QTextEdit *>(w);
if (!t) {
delete w;
void WatchHandler::updateWatchers()
{
- //qDebug() << "UPDATE WATCHERS";
- // copy over all watchers and mark all watchers as incomplete
+ // Copy over all watchers and mark all watchers as incomplete.
foreach (const QByteArray &exp, m_watcherNames.keys()) {
WatchData data;
data.iname = watcherName(exp);
QVariant value = debuggerCore()->sessionValue("Watchers");
foreach (const QString &exp, value.toStringList())
watchExpression(exp);
- //qDebug() << "LOAD WATCHERS: " << m_watchers;
}
QStringList WatchHandler::watchedExpressions()
void WatchHandler::saveWatchers()
{
- //qDebug() << "SAVE WATCHERS: " << m_watchers;
debuggerCore()->setSessionValue("Watchers", QVariant(watchedExpressions()));
}