forked from qt-creator/qt-creator
debugger: adjust sizes of some well-known columns in some views
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <utils/savedaction.h>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtGui/QContextMenuEvent>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QMenu>
|
||||
@@ -69,6 +70,15 @@ void ThreadsWindow::rowActivated(const QModelIndex &index)
|
||||
debuggerCore()->currentEngine()->selectThread(index.row());
|
||||
}
|
||||
|
||||
void ThreadsWindow::setModel(QAbstractItemModel *model)
|
||||
{
|
||||
qDebug() << "SET MODEL";
|
||||
QTreeView::setModel(model);
|
||||
resizeColumnToContents(0); // Id
|
||||
resizeColumnToContents(4); // Line
|
||||
resizeColumnToContents(6); // Name
|
||||
}
|
||||
|
||||
void ThreadsWindow::contextMenuEvent(QContextMenuEvent *ev)
|
||||
{
|
||||
QMenu menu;
|
||||
|
||||
Reference in New Issue
Block a user