1 /**************************************************************************
3 ** This file is part of Qt Creator
5 ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
7 ** Contact: Nokia Corporation (qt-info@nokia.com)
11 ** Licensees holding valid Qt Commercial licenses may use this file in
12 ** accordance with the Qt Commercial License Agreement provided with the
13 ** Software or, alternatively, in accordance with the terms contained in
14 ** a written agreement between you and Nokia.
16 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
25 ** If you are unsure which license is appropriate for your use, please
26 ** contact the sales department at http://qt.nokia.com/contact.
28 **************************************************************************/
30 #ifndef DEBUGGER_REGISTERWINDOW_H
31 #define DEBUGGER_REGISTERWINDOW_H
33 #include <QtGui/QTreeView>
36 class DebuggerManager;
39 class RegisterWindow : public QTreeView
44 explicit RegisterWindow(DebuggerManager *manager);
45 void setModel(QAbstractItemModel *model);
48 void resizeColumnsToContents();
49 void setAlwaysResizeColumnsToContents(bool on);
50 void setAlternatingRowColorsHelper(bool on) { setAlternatingRowColors(on); }
53 void resizeEvent(QResizeEvent *ev);
54 void contextMenuEvent(QContextMenuEvent *ev);
56 DebuggerManager *m_manager;
58 bool m_alwaysResizeColumnsToContents;
61 } // namespace Internal
62 } // namespace Debugger
64 #endif // DEBUGGER_REGISTERWINDOW_H