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

@@ -159,7 +159,7 @@ private:
QDialogButtonBox *m_box;
};
typedef QHash<QString, QStringList> TypeFormats;
typedef QHash<QString, QStringList> DumperTypeFormats;
class StartRemoteEngineDialog : public QDialog
{
@@ -190,7 +190,7 @@ public:
void addTypeFormats(const QString &type, const QStringList &formats,
int currentFormat);
TypeFormats typeFormats() const;
DumperTypeFormats typeFormats() const;
private:
TypeFormatsDialogUi *m_ui;