Changeset View
Changeset View
Standalone View
Standalone View
src/options/ksaneoptentry.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 46 | { | |||
---|---|---|---|---|---|
51 | readOption(); | 51 | readOption(); | ||
52 | 52 | | |||
53 | if (!m_optDesc) { | 53 | if (!m_optDesc) { | ||
54 | qDebug() << "This is a bug"; | 54 | qDebug() << "This is a bug"; | ||
55 | m_widget = new KSaneOptionWidget(parent, QStringLiteral("")); | 55 | m_widget = new KSaneOptionWidget(parent, QStringLiteral("")); | ||
56 | return; | 56 | return; | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | m_widget = m_entry = new LabeledEntry(parent, i18n(m_optDesc->title)); | 59 | m_widget = m_entry = new LabeledEntry(parent, sane_i18n(m_optDesc->title)); | ||
60 | m_widget->setToolTip(i18n(m_optDesc->desc)); | 60 | m_widget->setToolTip(sane_i18n(m_optDesc->desc)); | ||
61 | connect(m_entry, &LabeledEntry::entryEdited, this, &KSaneOptEntry::entryChanged); | 61 | connect(m_entry, &LabeledEntry::entryEdited, this, &KSaneOptEntry::entryChanged); | ||
62 | updateVisibility(); | 62 | updateVisibility(); | ||
63 | readValue(); | 63 | readValue(); | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | void KSaneOptEntry::entryChanged(const QString &text) | 66 | void KSaneOptEntry::entryChanged(const QString &text) | ||
67 | { | 67 | { | ||
68 | QString tmp; | 68 | QString tmp; | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |