Commit 837b1cae authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Use Qt::DisplayRole always to make sure row height is good

parent 48b02c7e
......@@ -37,7 +37,7 @@ QVariant BranchesDialogModel::data(const QModelIndex &idx, int role) const
}
const GitUtils::Branch &branch = m_modelEntries.at(idx.row());
if (role == Role::DisplayName) {
if (role == Role::DisplayName || role == Qt::DisplayRole) {
return branch.name;
} else if (role == Role::Score) {
return branch.score;
......
......@@ -44,6 +44,7 @@ QVariant KateQuickOpenModel::data(const QModelIndex &idx, int role) const
const ModelEntry &entry = m_modelEntries.at(idx.row());
switch (role) {
case Qt::DisplayRole:
case Role::FileName:
return entry.fileName;
case Role::FilePath:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment