aboutsummaryrefslogtreecommitdiffstats
path: root/editorpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editorpage.cpp')
-rw-r--r--editorpage.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/editorpage.cpp b/editorpage.cpp
index 4bead12..efbdf2e 100644
--- a/editorpage.cpp
+++ b/editorpage.cpp
@@ -28,10 +28,16 @@ EditorPage::EditorPage(const QString &filePath, QWidget *parent) : QWidget(paren
fullFilePath(filePath)
{
textPage = new QPlainTextEdit();
-
- mainLayout = new QHBoxLayout();
+ verifyLabel = new QLabel("Verified");
+ verifyLabel->setAutoFillBackground(1);
+ QPalette verifyPalette = verifyLabel->palette();
+ verifyPalette.setColor(QPalette::Background, "#CBFDCB");
+ verifyLabel->setPalette(verifyPalette);
+ this->showVerifyLabel(false);
+ mainLayout = new QVBoxLayout();
mainLayout->setSpacing(0);
mainLayout->addWidget(textPage);
+ mainLayout->addWidget(verifyLabel);
mainLayout->setContentsMargins(0,0,0,0);
setLayout(mainLayout);
setAttribute(Qt::WA_DeleteOnClose);
@@ -56,7 +62,14 @@ void EditorPage::setFilePath(const QString &filePath)
fullFilePath = filePath;
}
-
+void EditorPage::showVerifyLabel(bool showLabel)
+{
+ if (showLabel == true) {
+ verifyLabel->show();
+ } else {
+ verifyLabel->hide();
+ }
+}
void setSaveState()
{