Changeset View
Changeset View
Standalone View
Standalone View
src/kcmodule/common/systemcheck.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
70 | 70 | | |||
71 | layout->insertWidget(0, m_noAdaptersError); | 71 | layout->insertWidget(0, m_noAdaptersError); | ||
72 | 72 | | |||
73 | m_blockedError = new KMessageWidget(m_parent); | 73 | m_blockedError = new KMessageWidget(m_parent); | ||
74 | m_blockedError->setMessageType(KMessageWidget::Error); | 74 | m_blockedError->setMessageType(KMessageWidget::Error); | ||
75 | m_blockedError->setCloseButtonVisible(false); | 75 | m_blockedError->setCloseButtonVisible(false); | ||
76 | m_blockedError->setText(i18n("Bluetooth is disabled.")); | 76 | m_blockedError->setText(i18n("Bluetooth is disabled.")); | ||
77 | 77 | | |||
78 | QAction *fixBlocked = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to fix a problem", "Fix it"), m_blockedError); | 78 | QAction *fixBlocked = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to enable Bluetooth adapter", "Enable"), m_blockedError); | ||
79 | connect(fixBlocked, SIGNAL(triggered(bool)), this, SLOT(fixBlockedError())); | 79 | connect(fixBlocked, SIGNAL(triggered(bool)), this, SLOT(fixBlockedError())); | ||
80 | m_blockedError->addAction(fixBlocked); | 80 | m_blockedError->addAction(fixBlocked); | ||
81 | 81 | | |||
82 | layout->insertWidget(0, m_blockedError); | 82 | layout->insertWidget(0, m_blockedError); | ||
83 | 83 | | |||
84 | m_noUsableAdapterError = new KMessageWidget(m_parent); | 84 | m_noUsableAdapterError = new KMessageWidget(m_parent); | ||
85 | m_noUsableAdapterError->setMessageType(KMessageWidget::Warning); | 85 | m_noUsableAdapterError->setMessageType(KMessageWidget::Warning); | ||
86 | m_noUsableAdapterError->setCloseButtonVisible(false); | 86 | m_noUsableAdapterError->setCloseButtonVisible(false); | ||
87 | m_noUsableAdapterError->setText(i18n("Your Bluetooth adapter is powered off.")); | 87 | m_noUsableAdapterError->setText(i18n("Your Bluetooth adapter is powered off.")); | ||
88 | 88 | | |||
89 | QAction *fixNoUsableAdapter = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to fix a problem", "Fix it"), m_noUsableAdapterError); | 89 | QAction *fixNoUsableAdapter = new QAction(QIcon::fromTheme(QStringLiteral("dialog-ok-apply")), i18nc("Action to turn on Bluetooth adapter", "Turn On"), m_noUsableAdapterError); | ||
90 | connect(fixNoUsableAdapter, SIGNAL(triggered(bool)), this, SLOT(fixNoUsableAdapterError())); | 90 | connect(fixNoUsableAdapter, SIGNAL(triggered(bool)), this, SLOT(fixNoUsableAdapterError())); | ||
91 | m_noUsableAdapterError->addAction(fixNoUsableAdapter); | 91 | m_noUsableAdapterError->addAction(fixNoUsableAdapter); | ||
92 | 92 | | |||
93 | layout->insertWidget(0, m_noUsableAdapterError); | 93 | layout->insertWidget(0, m_noUsableAdapterError); | ||
94 | 94 | | |||
95 | m_notDiscoverableAdapterError = new KMessageWidget(m_parent); | 95 | m_notDiscoverableAdapterError = new KMessageWidget(m_parent); | ||
96 | m_notDiscoverableAdapterError->setMessageType(KMessageWidget::Warning); | 96 | m_notDiscoverableAdapterError->setMessageType(KMessageWidget::Warning); | ||
97 | m_notDiscoverableAdapterError->setCloseButtonVisible(false); | 97 | m_notDiscoverableAdapterError->setCloseButtonVisible(false); | ||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |