forked from qt-creator/qt-creator
debugger: use common baseclass for all dock treeviews
Reduces amount of boilerplate code. Change-Id: I048d901b4b80860df05f09b48650ea58b83fbc66 Reviewed-on: http://codereview.qt-project.org/5864 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -33,29 +33,24 @@
|
||||
#ifndef DEBUGGER_STACKWINDOW_H
|
||||
#define DEBUGGER_STACKWINDOW_H
|
||||
|
||||
#include <QtGui/QTreeView>
|
||||
#include "basewindow.h"
|
||||
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
|
||||
class StackWindow : public QTreeView
|
||||
class StackWindow : public BaseWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit StackWindow(QWidget *parent = 0);
|
||||
|
||||
public slots:
|
||||
void resizeColumnsToContents();
|
||||
void setAlwaysResizeColumnsToContents(bool on);
|
||||
|
||||
private slots:
|
||||
void rowActivated(const QModelIndex &index);
|
||||
void setAlternatingRowColorsHelper(bool on) { setAlternatingRowColors(on); }
|
||||
void showAddressColumn(bool on);
|
||||
void reloadFullStack();
|
||||
|
||||
private:
|
||||
void rowActivated(const QModelIndex &index);
|
||||
void setModel(QAbstractItemModel *model);
|
||||
void contextMenuEvent(QContextMenuEvent *ev);
|
||||
void copyContentsToClipboard();
|
||||
|
||||
Reference in New Issue
Block a user