BaseTreeView: Fix connection.

Strings are not typo-safe.

Change-Id: I9fd0e0574fb51ea995037c7b22ff2a87b95f5965
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-01-12 12:40:50 +01:00
committed by Christian Stenger
parent 4be0d123e2
commit 737c327fd1

View File

@@ -274,7 +274,7 @@ void BaseTreeView::setModel(QAbstractItemModel *m)
QObject *receiver; QObject *receiver;
const char *qslot; const char *qslot;
}; };
#define DESC(sign, receiver, slot) { #sign, SIGNAL(sig), receiver, SLOT(slot) } #define DESC(sign, receiver, slot) { #sign, SIGNAL(sign), receiver, SLOT(slot) }
const ExtraConnection c[] = { const ExtraConnection c[] = {
DESC(columnAdjustmentRequested(), d, resizeColumns()), DESC(columnAdjustmentRequested(), d, resizeColumns()),
DESC(requestExpansion(QModelIndex), this, expand(QModelIndex)) DESC(requestExpansion(QModelIndex), this, expand(QModelIndex))