| 24 | extern Global global; |
| 25 | |
| 26 | AuthorEditor::AuthorEditor(QWidget *parent) : |
| 27 | QLineEdit(parent) |
| 28 | { |
| 29 | // Setup the note title editor |
| 30 | QPalette pal; |
| 31 | //pal.setColor(QPalette::Text, QColor(102,153,255)); |
| 32 | //pal.setColor(QPalette::Text, QColor(14,28,209)); |
| 33 | pal.setColor(backgroundRole(), QPalette::Base); |
| 34 | setPalette(pal); |
| 35 | |
| 36 | setFont(global.getGuiFont(font())); |
| 37 | this->setPlaceholderText(tr("Click to set author")); |
| 38 | |
| 39 | inactiveColor = "QLineEdit {background-color: transparent; border-radius: 0px;} "; |
| 40 | activeColor = "QLineEdit {border: 1px solid #808080; background-color: white; border-radius: 4px;} "; |
| 41 | this->setCursor(Qt::PointingHandCursor); |
| 42 | this->setStyleSheet(inactiveColor); |
| 43 | hide(); |
| 44 | } |
| 45 | |
| 46 | void AuthorEditor::setActiveColor() { |
| 47 | setStyleSheet(activeColor); |
nothing calls this directly
no test coverage detected