Skip to content

Commit

Permalink
Fixed #157 - QSO Detail longer QTH, the field content is lef-aligned too
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed May 19, 2023
1 parent abdff8b commit c2d15ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/QSODetailDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,16 @@ void QSOEditMapperDelegate::setEditorData(QWidget *editor,
}

QItemDelegate::setEditorData(editor, index);

// Hack: all NewContactEditLines should display
// an initial part of the line.
// Do not insert this functionality to NewContactEditLines because
// this function is wanted only for the QSODetail Widget.
NewContactEditLine* lineEdit = qobject_cast<NewContactEditLine*>(editor);
if ( lineEdit )
{
lineEdit->home(false);
}
}

void QSOEditMapperDelegate::setModelData(QWidget *editor,
Expand Down

0 comments on commit c2d15ba

Please sign in to comment.