Changeset View
Changeset View
Standalone View
Standalone View
configure-printer/PrinterOptions.cpp
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 96 | // item->layout()->deleteLater(); | |||
---|---|---|---|---|---|
112 | m_ppd = ppdOpenFile(m_filename.toUtf8()); | 112 | m_ppd = ppdOpenFile(m_filename.toUtf8()); | ||
113 | request->deleteLater(); | 113 | request->deleteLater(); | ||
114 | if (m_ppd == NULL) { | 114 | if (m_ppd == NULL) { | ||
115 | qCWarning(PM_CONFIGURE_PRINTER) << "Could not open ppd file:" << m_filename << request->errorMsg(); | 115 | qCWarning(PM_CONFIGURE_PRINTER) << "Could not open ppd file:" << m_filename << request->errorMsg(); | ||
116 | m_filename.clear(); | 116 | m_filename.clear(); | ||
117 | return; | 117 | return; | ||
118 | } | 118 | } | ||
119 | 119 | | |||
120 | ppdLocalize(m_ppd); | ||||
120 | // select the default options on the ppd file | 121 | // select the default options on the ppd file | ||
121 | ppdMarkDefaults(m_ppd); | 122 | ppdMarkDefaults(m_ppd); | ||
122 | 123 | | |||
123 | // TODO try to use QTextCodec aliases | 124 | // TODO try to use QTextCodec aliases | ||
124 | const char *lang_encoding; | 125 | const char *lang_encoding; | ||
125 | lang_encoding = m_ppd->lang_encoding; | 126 | lang_encoding = m_ppd->lang_encoding; | ||
126 | if (lang_encoding && !strcasecmp (lang_encoding, "ISOLatin1")) { | 127 | if (lang_encoding && !strcasecmp (lang_encoding, "ISOLatin1")) { | ||
127 | m_codec = QTextCodec::codecForName("ISO-8859-1"); | 128 | m_codec = QTextCodec::codecForName("ISO-8859-1"); | ||
▲ Show 20 Lines • Show All 701 Lines • Show Last 20 Lines |