Changeset View
Changeset View
Standalone View
Standalone View
src/widgetfactory.cpp
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 146 | else { | |||
---|---|---|---|---|---|
147 | valueString = toString(value); | 147 | valueString = toString(value); | ||
148 | } | 148 | } | ||
149 | } | 149 | } | ||
150 | widget = createValueWidget(valueString, parent); | 150 | widget = createValueWidget(valueString, parent); | ||
151 | } | 151 | } | ||
152 | 152 | | |||
153 | widget->setForegroundRole(parent->foregroundRole()); | 153 | widget->setForegroundRole(parent->foregroundRole()); | ||
154 | widget->setFont(parent->font()); | 154 | widget->setFont(parent->font()); | ||
155 | 155 | widget->setObjectName(prop); | |||
156 | return widget; | 156 | return widget; | ||
157 | } | 157 | } | ||
158 | 158 | | |||
159 | QWidget* WidgetFactory::createTagWidget(const QStringList& tags, QWidget* parent) | 159 | QWidget* WidgetFactory::createTagWidget(const QStringList& tags, QWidget* parent) | ||
160 | { | 160 | { | ||
161 | TagWidget* tagWidget = new TagWidget(parent); | 161 | TagWidget* tagWidget = new TagWidget(parent); | ||
162 | tagWidget->setReadyOnly(m_readOnly); | 162 | tagWidget->setReadyOnly(m_readOnly); | ||
163 | tagWidget->setSelectedTags(tags); | 163 | tagWidget->setSelectedTags(tags); | ||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |