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:
hjk
2011-09-30 12:28:55 +02:00
committed by hjk
parent 1b5e10e1b6
commit 2e9fd40d86
19 changed files with 281 additions and 424 deletions

View File

@@ -33,7 +33,7 @@
#ifndef DEBUGGER_WATCHWINDOW_H
#define DEBUGGER_WATCHWINDOW_H
#include <QtGui/QTreeView>
#include "basewindow.h"
namespace Debugger {
namespace Internal {
@@ -44,7 +44,7 @@ namespace Internal {
//
/////////////////////////////////////////////////////////////////////
class WatchWindow : public QTreeView
class WatchWindow : public BaseWindow
{
Q_OBJECT
@@ -55,9 +55,6 @@ public:
Type type() const { return m_type; }
public slots:
void resizeColumnsToContents();
void setModel(QAbstractItemModel *model);
void setAlternatingRowColorsHelper(bool on) { setAlternatingRowColors(on); }
void watchExpression(const QString &exp);
void removeWatchExpression(const QString &exp);
@@ -66,8 +63,8 @@ private:
Q_SLOT void expandNode(const QModelIndex &idx);
Q_SLOT void collapseNode(const QModelIndex &idx);
Q_SLOT void setUpdatesEnabled(bool enable);
Q_SLOT void setAlwaysResizeColumnsToContents(bool on);
void setModel(QAbstractItemModel *model);
void keyPressEvent(QKeyEvent *ev);
void contextMenuEvent(QContextMenuEvent *ev);
void dragEnterEvent(QDragEnterEvent *ev);