forked from qt-creator/qt-creator
Debugger: Remove special column resizing in the break view
Is handled by the general case now. Change-Id: I3668693cc17bd5db6bb45756d38627c4bb6859e0 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -729,15 +729,6 @@ void BreakTreeView::mouseDoubleClickEvent(QMouseEvent *ev)
|
||||
BaseTreeView::mouseDoubleClickEvent(ev);
|
||||
}
|
||||
|
||||
void BreakTreeView::setModel(QAbstractItemModel *model)
|
||||
{
|
||||
BaseTreeView::setModel(model);
|
||||
resizeColumnToContents(0); // Number
|
||||
resizeColumnToContents(3); // Line
|
||||
resizeColumnToContents(6); // Ignore count
|
||||
connect(model, SIGNAL(layoutChanged()), this, SLOT(expandAll()));
|
||||
}
|
||||
|
||||
void BreakTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
||||
{
|
||||
QMenu menu;
|
||||
@@ -783,9 +774,6 @@ void BreakTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
||||
deleteByFileAction->setEnabled(false);
|
||||
}
|
||||
|
||||
QAction *adjustColumnAction =
|
||||
new QAction(tr("Adjust Column Widths to Contents"), &menu);
|
||||
|
||||
QAction *editBreakpointAction =
|
||||
new QAction(tr("Edit Breakpoint..."), &menu);
|
||||
editBreakpointAction->setEnabled(!selectedIds.isEmpty());
|
||||
@@ -842,8 +830,6 @@ void BreakTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
||||
deleteAllBreakpoints();
|
||||
else if (act == deleteByFileAction)
|
||||
deleteBreakpoints(breakpointsInFile);
|
||||
else if (act == adjustColumnAction)
|
||||
resizeColumns();
|
||||
else if (act == editBreakpointAction)
|
||||
editBreakpoints(selectedIds);
|
||||
else if (act == associateBreakpointAction)
|
||||
|
@@ -44,7 +44,6 @@ public:
|
||||
BreakTreeView();
|
||||
|
||||
static void editBreakpoint(BreakpointModelId id, QWidget *parent);
|
||||
void setModel(QAbstractItemModel *model);
|
||||
|
||||
private slots:
|
||||
void showAddressColumn(bool on);
|
||||
|
Reference in New Issue
Block a user