Changeset View
Changeset View
Standalone View
Standalone View
libkcups/PPDModel.cpp
Context not available. | |||||
102 | ret->setData(make, PPDMake); | 102 | ret->setData(make, PPDMake); | ||
---|---|---|---|---|---|
103 | ret->setData(makeAndModel, PPDMakeAndModel); | 103 | ret->setData(makeAndModel, PPDMakeAndModel); | ||
104 | 104 | | |||
105 | QString text; | 105 | if (!recommended) { | ||
106 | if (recommended) { | | |||
107 | text = makeAndModel % | | |||
108 | QLatin1String(" (") % | | |||
109 | naturalLanguage % | | |||
110 | QLatin1Char(')'); | | |||
111 | } else { | | |||
112 | // Removes the Make part of the string | 106 | // Removes the Make part of the string | ||
113 | if (makeAndModel.startsWith(make)) { | 107 | if (makeAndModel.startsWith(make)) { | ||
114 | makeAndModel.remove(0, make.size() + 1); | 108 | makeAndModel.remove(0, make.size() + 1); | ||
115 | } | 109 | } | ||
116 | | ||||
117 | // Create the PPD | | |||
118 | text = makeAndModel.trimmed() % | | |||
119 | QLatin1String(" (") % | | |||
120 | naturalLanguage % | | |||
121 | QLatin1Char(')'); | | |||
122 | } | 110 | } | ||
123 | ret->setText(text); | 111 | | ||
112 | ret->setText(makeAndModel.trimmed() % | ||||
113 | QLatin1String(" (") % | ||||
114 | naturalLanguage % | ||||
115 | QLatin1Char(')') | ||||
116 | ); | ||||
124 | 117 | | |||
125 | return ret; | 118 | return ret; | ||
126 | } | 119 | } | ||
Context not available. |