Changeset View
Changeset View
Standalone View
Standalone View
add-printer/ChooseSerial.cpp
Context not available. | |||||
22 | #include "ui_ChooseSerial.h" | 22 | #include "ui_ChooseSerial.h" | ||
---|---|---|---|---|---|
23 | 23 | | |||
24 | #include <KCupsRequest.h> | 24 | #include <KCupsRequest.h> | ||
25 | #include <KLocalizedString> | ||||
25 | 26 | | |||
26 | #include <QPainter> | 27 | #include <QPainter> | ||
27 | 28 | | |||
Context not available. | |||||
58 | void ChooseSerial::setValues(const QVariantHash &args) | 59 | void ChooseSerial::setValues(const QVariantHash &args) | ||
59 | { | 60 | { | ||
60 | m_args = args; | 61 | m_args = args; | ||
61 | QString deviceUri = args[KCUPS_DEVICE_URI].toString(); | 62 | const QString deviceUri = args[KCUPS_DEVICE_URI].toString(); | ||
62 | if (!deviceUri.startsWith(QLatin1String("serial:"))) { | 63 | if (!deviceUri.startsWith(QLatin1String("serial:"))) { | ||
63 | m_isValid = false; | 64 | m_isValid = false; | ||
64 | return; | 65 | return; | ||
Context not available. |