From 364c8bb749b970237b0fbe433e447446d8658a31 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 19 Jan 2017 23:42:20 -0200 Subject: [PATCH] Using system link color in property editor --- src/Gui/propertyeditor/PropertyItem.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 3c2a108c90..aa627ac512 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -32,6 +32,8 @@ # include # include # include +# include +# include #endif #include @@ -3369,20 +3371,22 @@ LinkLabel::~LinkLabel() void LinkLabel::setPropertyLink(const QStringList& o) { link = o; - + QString linkcolor = QApplication::palette().color(QPalette::Link).name(); QString text = QString::fromLatin1( "" "

" - "%3" + "%4" " " - "%4" + "%6" "

" ) .arg(link[0]) .arg(link[1]) + .arg(linkcolor) .arg(link[2]) + .arg(linkcolor) .arg(tr("Edit...")); setText(text); }