|
|
|
@ -32,9 +32,7 @@ TextField::TextField(QWidget *parent) |
|
|
|
|
QCoreApplication::processEvents(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TextField::~TextField() |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
TextField::~TextField() {} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
TextField::setBackgroundColor(const QColor &color) |
|
|
|
@ -199,7 +197,8 @@ TextField::paintEvent(QPaintEvent *event) |
|
|
|
|
|
|
|
|
|
if (text().isEmpty()) { |
|
|
|
|
painter.setOpacity(1 - state_machine_->progress()); |
|
|
|
|
// painter.fillRect(rect(), parentWidget()->palette().color(backgroundRole()));
|
|
|
|
|
// painter.fillRect(rect(),
|
|
|
|
|
// parentWidget()->palette().color(backgroundRole()));
|
|
|
|
|
painter.fillRect(rect(), backgroundColor()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -273,9 +272,7 @@ TextFieldStateMachine::TextFieldStateMachine(TextField *parent) |
|
|
|
|
connect(text_field_, SIGNAL(textChanged(QString)), this, SLOT(setupProperties())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TextFieldStateMachine::~TextFieldStateMachine() |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
TextFieldStateMachine::~TextFieldStateMachine() {} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
TextFieldStateMachine::setLabel(TextFieldLabel *label) |
|
|
|
@ -352,9 +349,7 @@ TextFieldLabel::TextFieldLabel(TextField *parent) |
|
|
|
|
setFont(font); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TextFieldLabel::~TextFieldLabel() |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
TextFieldLabel::~TextFieldLabel() {} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
|
TextFieldLabel::paintEvent(QPaintEvent *) |
|
|
|
|