Commit c1cd56eb authored by saubatn's avatar saubatn
Browse files

FIXED Action viewer widget betterly represented.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1608 ec899d31-69d1-42ba-9299-647d76f65fb3
parent e0400f07
......@@ -79,6 +79,7 @@ ActionWidget::ActionWidget(Action *action): QFrame() {
targetLabel->setLineWidth(3);
targetLabel->setWordWrap(true);
targetLabelScrollArea->setWidget(targetLabel);
targetLabelScrollArea->setMaximumHeight(targetLabelScrollArea->sizeHint().height());
widgetLayout->addWidget(targetLabelScrollArea);
// first the property editor
......@@ -146,7 +147,7 @@ void ActionWidget::updateTargets() {
// -------------------- getTargetLabel --------------------
QString ActionWidget::getTargetLabel() {
QString targetNames = "<b> Target(s) to apply the action on: </b> <ul>";
QString targetNames = tr("<b> Target(s) to apply the action on: </b> <ul>");
foreach (Component * comp, myAction->getTargets()) {
targetNames += "<li> " + comp->getName() + "<i> (" + comp->metaObject()->className() + ") </i>" + "</li>";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment