kdevelop/kdevplatform/debugger
breakpointwidget.cpp
Go to the documentation of this file.
100 connect(proxyModel, &PlaceholderItemProxyModel::dataInserted, this, &BreakpointWidget::slotDataInserted);
104 connect(d->breakpointsView->selectionModel(), &QItemSelectionModel::selectionChanged, this, &BreakpointWidget::slotUpdateBreakpointDetail);
105 connect(d->debugController->breakpointModel(), &BreakpointModel::rowsInserted, this, &BreakpointWidget::slotUpdateBreakpointDetail);
106 connect(d->debugController->breakpointModel(), &BreakpointModel::rowsRemoved, this, &BreakpointWidget::slotUpdateBreakpointDetail);
107 connect(d->debugController->breakpointModel(), &BreakpointModel::modelReset, this, &BreakpointWidget::slotUpdateBreakpointDetail);
108 connect(d->debugController->breakpointModel(), &BreakpointModel::dataChanged, this, &BreakpointWidget::slotUpdateBreakpointDetail);
163 d->breakpointDisableAllAction = d->popup->addAction(i18n("Disable &All"), this, SLOT(slotDisableAllBreakpoints()));
164 d->breakpointEnableAllAction = d->popup->addAction(i18n("&Enable All"), this, SLOT(slotEnableAllBreakpoints()));
165 d->breakpointRemoveAll = d->popup->addAction(i18n("&Remove All"), this, SLOT(slotRemoveAllBreakpoints()));
214 //for some reasons sometimes width can be very small about 200... But it doesn't matter as we use tooltip anyway.
218 header->resizeSection(Breakpoint::LocationColumn, width > 400 ? width/2 : header->sectionSize(Breakpoint::LocationColumn)*2 );
227 QModelIndex index = d->proxyModel->mapFromSource(d->debugController->breakpointModel()->breakpointIndex(n, Breakpoint::LocationColumn));
286 d->debugController->breakpointModel()->removeRows(0, d->debugController->breakpointModel()->rowCount());
308 const QModelIndex index = d->proxyModel->mapFromSource(d->debugController->breakpointModel()->index(row, 0));
350 ICore::self()->documentController()->openDocument(bp->url(), KTextEditor::Cursor(bp->line(), 0), IDocumentController::DoNotFocus);
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
void setShortcutContext(Qt::ShortcutContext context)
Definition: breakpoint.h:38
void modelReset()
void error(int row, const QString &errorText)
void showEvent(QShowEvent *event) override
Definition: breakpointwidget.cpp:203
bool isEmpty() const
~BreakpointWidget() override
void hit(int row)
void resizeSection(int logicalIndex, int size)
BreakpointWidget(IDebugController *controller, QWidget *parent)
Definition: breakpointwidget.cpp:69
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: breakpointwidget.h:37
QModelIndexList selectedIndexes() const
int row() const
Location of the breakpoint (modifiable by user); value is a string describing the location; note that...
Definition: breakpointmodel.h:72
Breakpoint * breakpoint(int row) const
Definition: breakpointmodel.cpp:617
void rowsRemoved(const QModelIndex &parent, int start, int end)
int sectionSize(int logicalIndex) const
void setShortcut(const QKeySequence &shortcut)
BreakpointModel * breakpointModel()
Return the model this breakpoint is attached to.
Definition: breakpoint.cpp:89
void activated(const QModelIndex &index)
int column() const
KDevelop::Breakpoint * addCodeBreakpoint()
Definition: breakpointmodel.cpp:625
QIcon fromTheme(const QString &name, const QIcon &fallback)
bool setData(int index, const QVariant &value)
Definition: breakpoint.cpp:94
void rowsInserted(const QModelIndex &parent, int start, int end)
void contextMenuEvent(QContextMenuEvent *event) override
Definition: breakpointwidget.cpp:171
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 5 2019 04:59:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 5 2019 04:59:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.