Changeset View
Changeset View
Standalone View
Standalone View
src/options/ksaneoptbutton.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 44 | { | |||
---|---|---|---|---|---|
49 | readOption(); | 49 | readOption(); | ||
50 | 50 | | |||
51 | if (!m_optDesc) { | 51 | if (!m_optDesc) { | ||
52 | qDebug() << "This is a bug"; | 52 | qDebug() << "This is a bug"; | ||
53 | m_widget = new KSaneOptionWidget(parent, QStringLiteral("")); | 53 | m_widget = new KSaneOptionWidget(parent, QStringLiteral("")); | ||
54 | return; | 54 | return; | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | m_widget = m_button = new KSaneButton(parent, i18n(m_optDesc->title)); | 57 | m_widget = m_button = new KSaneButton(parent, sane_i18n(m_optDesc->title)); | ||
58 | m_widget->setToolTip(i18n(m_optDesc->desc)); | 58 | m_widget->setToolTip(sane_i18n(m_optDesc->desc)); | ||
59 | connect(m_button, &KSaneButton::clicked, this, &KSaneOptButton::buttonClicked); | 59 | connect(m_button, &KSaneButton::clicked, this, &KSaneOptButton::buttonClicked); | ||
60 | 60 | | |||
61 | updateVisibility(); | 61 | updateVisibility(); | ||
62 | readValue(); | 62 | readValue(); | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | bool KSaneOptButton::hasGui() | 65 | bool KSaneOptButton::hasGui() | ||
66 | { | 66 | { | ||
Show All 10 Lines |