Changeset View
Changeset View
Standalone View
Standalone View
src/tagwidget.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 60 | { | |||
---|---|---|---|---|---|
70 | 70 | | |||
71 | if (m_readOnly && !tags.isEmpty()) { | 71 | if (m_readOnly && !tags.isEmpty()) { | ||
72 | return; | 72 | return; | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | m_showAllLinkLabel = new QLabel( q ); | 75 | m_showAllLinkLabel = new QLabel( q ); | ||
76 | m_flowLayout->addWidget( m_showAllLinkLabel ); | 76 | m_flowLayout->addWidget( m_showAllLinkLabel ); | ||
77 | if (m_readOnly) { | 77 | if (m_readOnly) { | ||
78 | m_showAllLinkLabel->setText("-"); | 78 | m_showAllLinkLabel->setText(QStringLiteral("-")); | ||
79 | } | 79 | } | ||
80 | else { | 80 | else { | ||
81 | QFont f(q->font()); | 81 | QFont f(q->font()); | ||
82 | f.setUnderline(true); | 82 | f.setUnderline(true); | ||
83 | m_showAllLinkLabel->setFont(f); | 83 | m_showAllLinkLabel->setFont(f); | ||
84 | m_showAllLinkLabel->setText( QLatin1String("<a href=\"add_tags\">") + | 84 | m_showAllLinkLabel->setText( QLatin1String("<a href=\"add_tags\">") + | ||
85 | ( m_checkBoxHash.isEmpty() ? i18nc("@label", "Add...") : i18nc("@label", "Edit...") ) + | 85 | ( m_checkBoxHash.isEmpty() ? i18nc("@label", "Add...") : i18nc("@label", "Edit...") ) + | ||
86 | QLatin1String("</a>") ); | 86 | QLatin1String("</a>") ); | ||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |