Changeset View
Changeset View
Standalone View
Standalone View
debugger/breakpoint/breakpointmodel.cpp
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Line(s) | 359 | { | |||
---|---|---|---|---|---|
361 | // TODO probably want a different command here | 361 | // TODO probably want a different command here | ||
362 | KDevelop::ICore::self()->documentController()->activateDocument(KDevelop::ICore::self()->documentController()->activeDocument()); | 362 | KDevelop::ICore::self()->documentController()->activateDocument(KDevelop::ICore::self()->documentController()->activeDocument()); | ||
363 | } | 363 | } | ||
364 | #endif | 364 | #endif | ||
365 | } | 365 | } | ||
366 | 366 | | |||
367 | const QPixmap* BreakpointModel::breakpointPixmap() | 367 | const QPixmap* BreakpointModel::breakpointPixmap() | ||
368 | { | 368 | { | ||
369 | static QPixmap pixmap=QIcon::fromTheme(QStringLiteral("script-error")).pixmap(QSize(22,22), QIcon::Active, QIcon::Off); | 369 | static QPixmap pixmap=QIcon::fromTheme(QStringLiteral("breakpoint")).pixmap(QSize(16,16), QIcon::Active, QIcon::Off); | ||
370 | return &pixmap; | 370 | return &pixmap; | ||
371 | } | 371 | } | ||
372 | 372 | | |||
373 | const QPixmap* BreakpointModel::pendingBreakpointPixmap() | 373 | const QPixmap* BreakpointModel::pendingBreakpointPixmap() | ||
374 | { | 374 | { | ||
375 | static QPixmap pixmap=QIcon::fromTheme(QStringLiteral("script-error")).pixmap(QSize(22,22), QIcon::Normal, QIcon::Off); | 375 | static QPixmap pixmap=QIcon::fromTheme(QStringLiteral("breakpoint")).pixmap(QSize(16,16), QIcon::Normal, QIcon::Off); | ||
376 | return &pixmap; | 376 | return &pixmap; | ||
377 | } | 377 | } | ||
378 | 378 | | |||
379 | const QPixmap* BreakpointModel::reachedBreakpointPixmap() | 379 | const QPixmap* BreakpointModel::reachedBreakpointPixmap() | ||
380 | { | 380 | { | ||
381 | static QPixmap pixmap=QIcon::fromTheme(QStringLiteral("script-error")).pixmap(QSize(22,22), QIcon::Selected, QIcon::Off); | 381 | static QPixmap pixmap=QIcon::fromTheme(QStringLiteral("breakpoint")).pixmap(QSize(16,16), QIcon::Selected, QIcon::Off); | ||
382 | return &pixmap; | 382 | return &pixmap; | ||
383 | } | 383 | } | ||
384 | 384 | | |||
385 | const QPixmap* BreakpointModel::disabledBreakpointPixmap() | 385 | const QPixmap* BreakpointModel::disabledBreakpointPixmap() | ||
386 | { | 386 | { | ||
387 | static QPixmap pixmap=QIcon::fromTheme(QStringLiteral("script-error")).pixmap(QSize(22,22), QIcon::Disabled, QIcon::Off); | 387 | static QPixmap pixmap=QIcon::fromTheme(QStringLiteral("breakpoint")).pixmap(QSize(16,16), QIcon::Disabled, QIcon::Off); | ||
388 | return &pixmap; | 388 | return &pixmap; | ||
389 | } | 389 | } | ||
390 | 390 | | |||
391 | void BreakpointModel::toggleBreakpoint(const QUrl& url, const KTextEditor::Cursor& cursor) | 391 | void BreakpointModel::toggleBreakpoint(const QUrl& url, const KTextEditor::Cursor& cursor) | ||
392 | { | 392 | { | ||
393 | Breakpoint *b = breakpoint(url, cursor.line()); | 393 | Breakpoint *b = breakpoint(url, cursor.line()); | ||
394 | if (b) { | 394 | if (b) { | ||
395 | b->setDeleted(); | 395 | b->setDeleted(); | ||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |