Debugger: Rework display type selection

The previous index based way was getting too brittle, use enums instead.
Also add a switch between exponential and flat display for floating
point types.

Task-number: QTCREATORBUG-12050
Change-Id: I86addbac5a80e8b79b176c6107b251b466503fe7
Reviewed-by: David Schulz <david.schulz@digia.com>
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-04-15 18:13:03 +02:00
parent 81274c0624
commit 3f0d02ad7f
8 changed files with 432 additions and 242 deletions

View File

@@ -54,6 +54,8 @@ public:
void rowActivated(const QModelIndex &index);
void reset();
void fillFormatMenu(QMenu *, const QModelIndex &mi);
public slots:
void watchExpression(const QString &exp);
void watchExpression(const QString &exp, const QString &name);
@@ -62,11 +64,19 @@ public slots:
signals:
void currentIndexChanged(const QModelIndex &currentIndex);
private:
Q_SLOT void resetHelper();
Q_SLOT void expandNode(const QModelIndex &idx);
Q_SLOT void collapseNode(const QModelIndex &idx);
private slots:
void resetHelper();
void expandNode(const QModelIndex &idx);
void collapseNode(const QModelIndex &idx);
void onClearIndividualFormat();
void onClearTypeFormat();
void onShowUnprintable();
void onTypeFormatChange();
void onIndividualFormatChange();
private:
void keyPressEvent(QKeyEvent *ev);
void contextMenuEvent(QContextMenuEvent *ev);
void dragEnterEvent(QDragEnterEvent *ev);