Move duplicate code into function

Change-Id: I48e3187acb53159c16c7884a96ebdb831571b830
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-08-19 13:17:55 +02:00
committed by David Schulz
parent 71d5142fcc
commit e092c5b51d
2 changed files with 41 additions and 64 deletions

View File

@@ -38,6 +38,8 @@ public:
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
static QString outputString(const TestResult &testResult, bool selected);
public slots:
void currentChanged(const QModelIndex &current, const QModelIndex &previous);