Fix compiler warning

Some compilers are picky with types used in ternary operators

Fixup of d44ed66a9f

Change-Id: I73b64592b7741269c6d3631fd0b14cd99c4a3c2a
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2018-04-13 12:22:07 +02:00
parent 3d0459c428
commit 845541c89d

View File

@@ -438,8 +438,8 @@ void FolderNavigationWidget::setShowBreadCrumbs(bool show)
void FolderNavigationWidget::setShowFoldersOnTop(bool onTop)
{
m_showFoldersOnTopAction->setChecked(onTop);
m_sortProxyModel->setSortRole(onTop ? FolderNavigationModel::IsFolderRole
: QFileSystemModel::FileNameRole);
m_sortProxyModel->setSortRole(onTop ? int(FolderNavigationModel::IsFolderRole)
: int(QFileSystemModel::FileNameRole));
}
static bool itemLessThan(QComboBox *combo,