Skip to content

Commit

Permalink
Fixed #233 - New QSO - Text field alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Aug 3, 2023
1 parent 1c57371 commit aac9eb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/EditLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ void NewContactEditLine::focusOutEvent(QFocusEvent *event)
home(false);
}
}

void NewContactEditLine::setText(const QString &text)
{
QLineEdit::setText(text);
home(false);
}
1 change: 1 addition & 0 deletions ui/EditLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class NewContactEditLine : public QLineEdit

public:
explicit NewContactEditLine(QWidget *parent = nullptr);
void setText(const QString & text);

protected:
void focusInEvent(QFocusEvent* event) override;
Expand Down

0 comments on commit aac9eb0

Please sign in to comment.