diff options
author | Louie S <louie@example.com> | 2024-03-02 16:16:59 -0500 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-03-02 16:16:59 -0500 |
commit | 43b2132f4d57fac69be698d26cc8f920967065e6 (patch) | |
tree | ed92c38189796e7dbb533d4685bc5743cd3d3b80 /src/entry.cpp | |
parent | 74c9ba962ffe142b04f77fd831438a75eec7b46b (diff) |
Render entries
Diffstat (limited to 'src/entry.cpp')
-rw-r--r-- | src/entry.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/entry.cpp b/src/entry.cpp index ed602d0..cdaa69a 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -34,18 +34,20 @@ Entry::Entry(int id, int parent_id, QString desc, QDateTime due, QString due_alt // set conditional styling if(this->done) { bullet->setText("\u2713"); + /* bullet->setStyleSheet( "QLabel {" " color: green;" "}" ); + */ } else bullet->setText("- "); this->addWidget(bullet); if(!this->due.isNull()) - body->setText(this->due.toString("M/d/yyyy")); + body->setText(this->due.toString("MM/dd/yyyy: ")); else if(!this->due_alt.isEmpty()) body->setText(this->due_alt + ": "); @@ -63,13 +65,16 @@ Entry::Entry(int id, int parent_id, QString desc, QDateTime due, QString due_alt QFont body_font = body->font(); body_font.setStrikeOut(true); body->setFont(body_font); + /* body->setStyleSheet( "QLabel {" " color: green" "}" ); + */ } else { + /* body->setStyleSheet( "QLabel {" " color: " + (this->color.isEmpty() ? "default" : this->color) + ";" @@ -77,6 +82,7 @@ Entry::Entry(int id, int parent_id, QString desc, QDateTime due, QString due_alt " font-weight: " + (this->due.isValid() && this->due <= QDateTime::currentDateTime() ? "bold" : "normal") + ";" ";" ); + */ } this->addWidget(body); } |