From d9a5296b34a58a32b9d9bbbfe7582aa14a02b927 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 9 Jan 2014 14:23:26 +0200 Subject: [PATCH] Enable name of detail. --HG-- branch : develop --- src/dialogs/dialogdetail.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dialogs/dialogdetail.cpp b/src/dialogs/dialogdetail.cpp index c9669b76b..7051ed1a6 100644 --- a/src/dialogs/dialogdetail.cpp +++ b/src/dialogs/dialogdetail.cpp @@ -38,8 +38,13 @@ DialogDetail::DialogDetail(const VContainer *data, QWidget *parent) labelEditNamePoint = ui.labelEditNameDetail; bOk = ui.buttonBox->button(QDialogButtonBox::Ok); connect(bOk, &QPushButton::clicked, this, &DialogDetail::DialogAccepted); - flagName = false; + + flagName = true;//We have default name of detail. + QPalette palette = labelEditNamePoint->palette(); + palette.setColor(labelEditNamePoint->foregroundRole(), QColor(76, 76, 76)); + labelEditNamePoint->setPalette(palette); CheckState(); + QPushButton *bCansel = ui.buttonBox->button(QDialogButtonBox::Cancel); connect(bCansel, &QPushButton::clicked, this, &DialogDetail::DialogRejected);