forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user