Skip to content
Snippets Groups Projects
Commit 9189782d authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

macOS: Get rid of text field's focus border

parent 21c2f960
No related branches found
No related tags found
No related merge requests found
......@@ -10,19 +10,22 @@
TextField::TextField(QWidget *parent)
: QLineEdit(parent)
{
// Get rid of the focus border on macOS.
setAttribute(Qt::WA_MacShowFocusRect, 0);
state_machine_ = new TextFieldStateMachine(this);
label_ = 0;
label_font_size_ = 9.5;
label_font_size_ = 13;
show_label_ = false;
background_color_ = QColor("white");
setFrame(false);
setAttribute(Qt::WA_Hover);
setMouseTracking(true);
setTextMargins(0, 2, 0, 4);
setTextMargins(0, 4, 0, 6);
QFontDatabase db;
QFont font(db.font("Open Sans", "Regular", 11));
QFont font("Open Sans");
font.setPixelSize(12);
setFont(font);
state_machine_->start();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment