CustomSortFilterModel example: fix build with QT_NO_CURSOR

Change-Id: Icb40e49365114fedd5f1ef118dbd61ff2c413863
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Andrew Knight 2014-02-28 23:45:46 +02:00 committed by The Qt Project
parent b83dc929ec
commit 04ef22b9ee

View File

@ -81,7 +81,9 @@ FilterWidget::FilterWidget(QWidget *parent)
const QIcon icon = QIcon(QPixmap(":/images/find.png"));
QToolButton *optionsButton = new QToolButton;
#ifndef QT_NO_CURSOR
optionsButton->setCursor(Qt::ArrowCursor);
#endif
optionsButton->setFocusPolicy(Qt::NoFocus);
optionsButton->setStyleSheet("* { border: none; }");
optionsButton->setIcon(icon);