Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: debugger/QT/SkListWidget.h

Issue 211383003: Debugger improvements (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fix Mac 10.8 compilation issue Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | debugger/QT/SkListWidget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkListWidget.h
===================================================================
--- debugger/QT/SkListWidget.h (revision 13942)
+++ debugger/QT/SkListWidget.h (working copy)
@@ -19,25 +19,38 @@
*/
class SkListWidget : public QAbstractItemDelegate {
public:
+ enum IndexStyle {
+ kIndex_IndexStyle,
+ kOffset_IndexStyle,
+ };
+
/**
Constructs the list widget with the specified parent for layout purposes.
@param parent The parent container of this widget
*/
- SkListWidget(QObject* parent = NULL);
+ SkListWidget(QObject* parent = NULL) : fIndexStyle(kIndex_IndexStyle) {}
- ~SkListWidget();
+ virtual ~SkListWidget() {}
/**
Draws the current state of the widget. Overriden from QWidget.
*/
- void paint (QPainter* painter, const QStyleOptionViewItem& option,
- const QModelIndex& index ) const;
+ void paint(QPainter* painter, const QStyleOptionViewItem& option,
+ const QModelIndex& index ) const;
/**
Returns the default size of the widget. Overriden from QWidget.
*/
- QSize sizeHint (const QStyleOptionViewItem& option,
- const QModelIndex& index) const;
+ QSize sizeHint(const QStyleOptionViewItem& option,
+ const QModelIndex& index) const;
+
+
+ void setIndexStyle(IndexStyle indexStyle) {
+ fIndexStyle = indexStyle;
+ }
+
+protected:
+ IndexStyle fIndexStyle;
};
#endif
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | debugger/QT/SkListWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698