fix #283 : Filename in tables in the debug panel are not correctly eroded.

- enhancement: Tooltip info for the stacktrace table in the debug panel.
This commit is contained in:
Roy Qu 2024-03-21 11:04:29 +08:00
parent d32e4e642d
commit 2a10d79315
2 changed files with 5 additions and 0 deletions

View File

@ -1465,6 +1465,7 @@ QVariant BacktraceModel::data(const QModelIndex &index, int role) const
return QVariant(); return QVariant();
switch (role) { switch (role) {
case Qt::DisplayRole: case Qt::DisplayRole:
case Qt::ToolTipRole:
switch (index.column()) { switch (index.column()) {
case 0: case 0:
return trace->funcname; return trace->funcname;

View File

@ -205,10 +205,14 @@ MainWindow::MainWindow(QWidget *parent)
m=ui->tblBreakpoints->selectionModel(); m=ui->tblBreakpoints->selectionModel();
ui->tblBreakpoints->setModel(mDebugger->breakpointModel().get()); ui->tblBreakpoints->setModel(mDebugger->breakpointModel().get());
delete m; delete m;
ui->tblBreakpoints->setTextElideMode(Qt::ElideRight);
ui->tblBreakpoints->setWordWrap(false);
m=ui->tblStackTrace->selectionModel(); m=ui->tblStackTrace->selectionModel();
ui->tblStackTrace->setModel(mDebugger->backtraceModel().get()); ui->tblStackTrace->setModel(mDebugger->backtraceModel().get());
delete m; delete m;
ui->tblStackTrace->setTextElideMode(Qt::ElideRight);
ui->tblStackTrace->setWordWrap(false);
m=ui->watchView->selectionModel(); m=ui->watchView->selectionModel();
ui->watchView->setModel(mDebugger->watchModel().get()); ui->watchView->setModel(mDebugger->watchModel().get());