MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / AuthorEditor

Method AuthorEditor

gui/browserWidgets/authoreditor.cpp:26–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24extern Global global;
25
26AuthorEditor::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
46void AuthorEditor::setActiveColor() {
47 setStyleSheet(activeColor);

Callers

nothing calls this directly

Calls 2

setColorMethod · 0.80
getGuiFontMethod · 0.80

Tested by

no test coverage detected