diff options
author | Louie S <louie@example.com> | 2024-07-23 20:37:48 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-07-23 20:37:48 -0400 |
commit | c34930425fadfc4083067b9306159cd8e8ecf6c6 (patch) | |
tree | d9c09709f1b9cf7e9bcf098d48c7036044098a7d /src/ruleLayout.cpp | |
parent | f820f439910ef0243e6b9aded293190341b058ac (diff) |
Rearrange source file locations
Diffstat (limited to 'src/ruleLayout.cpp')
-rw-r--r-- | src/ruleLayout.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/ruleLayout.cpp b/src/ruleLayout.cpp deleted file mode 100644 index 11abf80..0000000 --- a/src/ruleLayout.cpp +++ /dev/null @@ -1,40 +0,0 @@ - -#include "lib.h" -#include "ruleLayout.h" - -RuleLayout::RuleLayout(const Rule &r) : - rule(r) -{ - this->when_widget = new QComboBox; - this->date_widget = new QDateTimeEdit(QDate::currentDate()); - this->color_widget = new QLineEdit; - this->highlight_widget = new QLineEdit; - this->del_button = new QPushButton; - - QStringList when_options; - when_options.append("Before"); - when_options.append("After"); - this->when_widget->addItems(when_options); - this->when_widget->setCurrentIndex(this->rule.when); - this->addWidget(this->when_widget); - - this->date_widget->setDisplayFormat("MM/dd/yyyy"); - this->date_widget->setDateTime(this->rule.date); - this->addWidget(this->date_widget); - - this->addStretch(); - - this->color_widget->setPlaceholderText("Color"); - if(!this->rule.color.isEmpty()) - this->color_widget->setText(this->rule.color); - this->addWidget(this->color_widget); - - this->highlight_widget->setPlaceholderText("Highlight"); - if(!this->rule.highlight.isEmpty()) - this->highlight_widget->setText(this->rule.highlight); - this->addWidget(this->highlight_widget); - - this->del_button->setText("Delete"); - // connection needs to be made in rulesDialog.cpp - this->addWidget(this->del_button); -} |