Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/kxftconfig.cpp
| Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | |||||
| 112 | 112 | | |||
| 113 | static time_t getTimeStamp(const QString &item) | 113 | static time_t getTimeStamp(const QString &item) | ||
| 114 | { | 114 | { | ||
| 115 | KDE_struct_stat info; | 115 | KDE_struct_stat info; | ||
| 116 | 116 | | |||
| 117 | return !item.isNull() && 0 == KDE_lstat(QFile::encodeName(item), &info) ? info.st_mtime : 0; | 117 | return !item.isNull() && 0 == KDE_lstat(QFile::encodeName(item), &info) ? info.st_mtime : 0; | ||
| 118 | } | 118 | } | ||
| 119 | 119 | | |||
| 120 | // | | |||
| 121 | // Obtain location of config file to use. | | |||
| 122 | QString getConfigFile() | | |||
| 123 | { | | |||
| 124 | FcStrList *list = FcConfigGetConfigFiles(FcConfigGetCurrent()); | | |||
| 125 | QStringList files; | | |||
| 126 | FcChar8 *file; | | |||
| 127 | QString home(dirSyntax(QDir::homePath())); | | |||
| 128 | | ||||
| 129 | while ((file = FcStrListNext(list))) { | | |||
| 130 | QString f((const char *)file); | | |||
| 131 | | ||||
| 132 | if (fExists(f) && 0 == f.indexOf(home)) { | | |||
| 133 | files.append(f); | | |||
| 134 | } | | |||
| 135 | } | | |||
| 136 | FcStrListDone(list); | | |||
| 137 | | ||||
| 138 | // | | |||
| 139 | // Go through list of files, looking for the preferred one... | | |||
| 140 | if (files.count()) { | | |||
| 141 | QStringList::const_iterator it(files.begin()), | | |||
| 142 | end(files.end()); | | |||
| 143 | | ||||
| 144 | for (; it != end; ++it) | | |||
| 145 | if (-1 != (*it).indexOf(QRegExp("/\\.?fonts\\.conf$"))) { | | |||
| 146 | return *it; | | |||
| 147 | } | | |||
| 148 | return files.front(); // Just return the 1st one... | | |||
| 149 | } else { // Hmmm... no known files? | | |||
| 150 | if (FcGetVersion() >= 21000) { | | |||
| 151 | QString targetPath(KGlobal::dirs()->localxdgconfdir() + "fontconfig"); | | |||
| 152 | QDir target(targetPath); | | |||
| 153 | if (!target.exists()) { | | |||
| 154 | target.mkpath(targetPath); | | |||
| 155 | } | | |||
| 156 | return targetPath + "/fonts.conf"; | | |||
| 157 | } else { | | |||
| 158 | return home + "/.fonts.conf"; | | |||
| 159 | } | | |||
| 160 | } | | |||
| 161 | } | | |||
| 162 | | ||||
| 163 | static QString getEntry(QDomElement element, const char *type, unsigned int numAttributes, ...) | 120 | static QString getEntry(QDomElement element, const char *type, unsigned int numAttributes, ...) | ||
| 164 | { | 121 | { | ||
| 165 | if (numAttributes == element.attributes().length()) { | 122 | if (numAttributes == element.attributes().length()) { | ||
| 166 | va_list args; | 123 | va_list args; | ||
| 167 | unsigned int arg; | 124 | unsigned int arg; | ||
| 168 | bool ok = true; | 125 | bool ok = true; | ||
| 169 | 126 | | |||
| 170 | va_start(args, numAttributes); | 127 | va_start(args, numAttributes); | ||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 189 | { | |||
| 233 | qDebug() << "Using fontconfig file:" << m_file; | 190 | qDebug() << "Using fontconfig file:" << m_file; | ||
| 234 | reset(); | 191 | reset(); | ||
| 235 | } | 192 | } | ||
| 236 | 193 | | |||
| 237 | KXftConfig::~KXftConfig() | 194 | KXftConfig::~KXftConfig() | ||
| 238 | { | 195 | { | ||
| 239 | } | 196 | } | ||
| 240 | 197 | | |||
| 198 | // | ||||
| 199 | // Obtain location of config file to use. | ||||
| 200 | QString KXftConfig::getConfigFile() | ||||
| 201 | { | ||||
| 202 | FcStrList *list = FcConfigGetConfigFiles(FcConfigGetCurrent()); | ||||
| 203 | QStringList localFiles; | ||||
| 204 | FcChar8 *file; | ||||
| 205 | QString home(dirSyntax(QDir::homePath())); | ||||
| 206 | | ||||
| 207 | m_globalFiles.clear(); | ||||
| 208 | | ||||
| 209 | while ((file = FcStrListNext(list))) { | ||||
| 210 | QString f((const char *)file); | ||||
| 211 | | ||||
| 212 | if (fExists(f) && 0 == f.indexOf(home)) { | ||||
| 213 | localFiles.append(f); | ||||
| 214 | } else { | ||||
| 215 | m_globalFiles.append(f); | ||||
| 216 | } | ||||
| 217 | } | ||||
| 218 | FcStrListDone(list); | ||||
| 219 | | ||||
| 220 | // | ||||
| 221 | // Go through list of localFiles, looking for the preferred one... | ||||
| 222 | if (localFiles.count()) { | ||||
| 223 | QStringList::const_iterator it(localFiles.begin()), | ||||
| 224 | end(localFiles.end()); | ||||
| 225 | | ||||
| 226 | for (; it != end; ++it) | ||||
| 227 | if (-1 != (*it).indexOf(QRegExp("/\\.?fonts\\.conf$"))) { | ||||
| 228 | return *it; | ||||
| 229 | } | ||||
| 230 | return localFiles.front(); // Just return the 1st one... | ||||
| 231 | } else { // Hmmm... no known localFiles? | ||||
| 232 | if (FcGetVersion() >= 21000) { | ||||
| 233 | QString targetPath(KGlobal::dirs()->localxdgconfdir() + "fontconfig"); | ||||
| 234 | QDir target(targetPath); | ||||
| 235 | if (!target.exists()) { | ||||
| 236 | target.mkpath(targetPath); | ||||
| 237 | } | ||||
| 238 | return targetPath + "/fonts.conf"; | ||||
| 239 | } else { | ||||
| 240 | return home + "/.fonts.conf"; | ||||
| 241 | } | ||||
| 242 | } | ||||
| 243 | } | ||||
| 244 | | ||||
| 241 | bool KXftConfig::reset() | 245 | bool KXftConfig::reset() | ||
| 242 | { | 246 | { | ||
| 243 | bool ok = false; | 247 | bool ok = false; | ||
| 244 | 248 | | |||
| 245 | m_madeChanges = false; | 249 | m_madeChanges = false; | ||
| 246 | m_hint.reset(); | 250 | m_hint.reset(); | ||
| 247 | m_hinting.reset(); | 251 | m_hinting.reset(); | ||
| 248 | m_excludeRange.reset(); | 252 | m_excludeRange.reset(); | ||
| 249 | m_excludePixelRange.reset(); | 253 | m_excludePixelRange.reset(); | ||
| 250 | m_subPixel.reset(); | 254 | m_subPixel.reset(); | ||
| 251 | m_antiAliasing.reset(); | 255 | m_antiAliasing.reset(); | ||
| 256 | m_antiAliasingHasLocalConfig = false; | ||||
| 257 | m_subPixelHasLocalConfig = false; | ||||
| 258 | m_hintHasLocalConfig = false; | ||||
| 252 | 259 | | |||
| 253 | QFile f(m_file); | 260 | QStringList::const_iterator it(m_globalFiles.begin()), | ||
| 261 | end(m_globalFiles.end()); | ||||
| 262 | for (; it != end; ++it) { | ||||
| 263 | ok |= parseConfigFile(*it); | ||||
| 264 | } | ||||
| 254 | 265 | | |||
| 255 | if (f.open(QIODevice::ReadOnly)) { | 266 | AntiAliasing globalAntialiasing = m_antiAliasing; | ||
| 256 | m_time = getTimeStamp(m_file); | 267 | SubPixel globalSubPixel = m_subPixel; | ||
| 257 | ok = true; | 268 | Hint globalHint = m_hint; | ||
| 258 | m_doc.clear(); | 269 | m_antiAliasing.state = AntiAliasing::NotSet; | ||
| 270 | m_subPixel.type = SubPixel::NotSet; | ||||
| 271 | m_hint.style = Hint::NotSet; | ||||
| 259 | 272 | | |||
| 260 | if (m_doc.setContent(&f)) { | 273 | ok |= parseConfigFile(m_file); | ||
| 261 | readContents(); | 274 | | ||
| 262 | } | 275 | if (m_antiAliasing.state == AntiAliasing::NotSet) { | ||
| 263 | f.close(); | 276 | m_antiAliasing = globalAntialiasing; | ||
| 264 | } else { | 277 | } else { | ||
| 265 | ok = !fExists(m_file) && dWritable(getDir(m_file)); | 278 | m_antiAliasingHasLocalConfig = true; | ||
| 266 | } | 279 | } | ||
| 267 | 280 | | |||
| 268 | if (m_doc.documentElement().isNull()) { | 281 | if (m_subPixel.type == SubPixel::NotSet) { | ||
| 269 | m_doc.appendChild(m_doc.createElement("fontconfig")); | 282 | m_subPixel = globalSubPixel; | ||
| 283 | } else { | ||||
| 284 | m_subPixelHasLocalConfig = true; | ||||
| 270 | } | 285 | } | ||
| 271 | 286 | | |||
| 272 | if (ok) { | 287 | if (m_hint.style == Hint::NotSet) { | ||
| 273 | // | 288 | m_hint = globalHint; | ||
| 274 | // Check exclude range values - i.e. size and pixel size... | 289 | } else { | ||
| 275 | // If "size" range is set, ensure "pixelsize" matches... | 290 | m_hintHasLocalConfig = true; | ||
| 276 | if (!equal(0, m_excludeRange.from) || !equal(0, m_excludeRange.to)) { | | |||
| 277 | double pFrom = (double)point2Pixel(m_excludeRange.from), | | |||
| 278 | pTo = (double)point2Pixel(m_excludeRange.to); | | |||
| 279 | | ||||
| 280 | if (!equal(pFrom, m_excludePixelRange.from) || !equal(pTo, m_excludePixelRange.to)) { | | |||
| 281 | m_excludePixelRange.from = pFrom; | | |||
| 282 | m_excludePixelRange.to = pTo; | | |||
| 283 | m_madeChanges = true; | | |||
| 284 | } | | |||
| 285 | } else if (!equal(0, m_excludePixelRange.from) || !equal(0, m_excludePixelRange.to)) { | | |||
| 286 | // "pixelsize" set, but not "size" !!! | | |||
| 287 | m_excludeRange.from = (int)pixel2Point(m_excludePixelRange.from); | | |||
| 288 | m_excludeRange.to = (int)pixel2Point(m_excludePixelRange.to); | | |||
| 289 | m_madeChanges = true; | | |||
| 290 | } | | |||
| 291 | } | 291 | } | ||
| 292 | 292 | | |||
| 293 | return ok; | 293 | return ok; | ||
| 294 | } | 294 | } | ||
| 295 | 295 | | |||
| 296 | bool KXftConfig::apply() | 296 | bool KXftConfig::apply() | ||
| 297 | { | 297 | { | ||
| 298 | bool ok = true; | 298 | bool ok = true; | ||
| ▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 326 | if (atomic) { | |||
| 372 | FcAtomicDestroy(atomic); | 372 | FcAtomicDestroy(atomic); | ||
| 373 | } | 373 | } | ||
| 374 | } | 374 | } | ||
| 375 | } | 375 | } | ||
| 376 | 376 | | |||
| 377 | return ok; | 377 | return ok; | ||
| 378 | } | 378 | } | ||
| 379 | 379 | | |||
| 380 | bool KXftConfig::subPixelTypeHasLocalConfig() const | ||||
| 381 | { | ||||
| 382 | return m_subPixelHasLocalConfig; | ||||
| 383 | } | ||||
| 384 | | ||||
| 380 | bool KXftConfig::getSubPixelType(SubPixel::Type &type) | 385 | bool KXftConfig::getSubPixelType(SubPixel::Type &type) | ||
| 381 | { | 386 | { | ||
| 382 | type = m_subPixel.type; | 387 | type = m_subPixel.type; | ||
| 383 | return SubPixel::None != m_subPixel.type; | 388 | return SubPixel::None != m_subPixel.type; | ||
| 384 | } | 389 | } | ||
| 385 | 390 | | |||
| 386 | void KXftConfig::setSubPixelType(SubPixel::Type type) | 391 | void KXftConfig::setSubPixelType(SubPixel::Type type) | ||
| 387 | { | 392 | { | ||
| 388 | if (type != m_subPixel.type) { | 393 | if (type != m_subPixel.type) { | ||
| 389 | m_subPixel.type = type; | 394 | m_subPixel.type = type; | ||
| 390 | m_madeChanges = true; | 395 | m_madeChanges = true; | ||
| 391 | } | 396 | } | ||
| 392 | } | 397 | } | ||
| 393 | 398 | | |||
| 399 | bool KXftConfig::hintStyleHasLocalConfig() const | ||||
| 400 | { | ||||
| 401 | return m_hintHasLocalConfig; | ||||
| 402 | } | ||||
| 403 | | ||||
| 394 | bool KXftConfig::getHintStyle(Hint::Style &style) | 404 | bool KXftConfig::getHintStyle(Hint::Style &style) | ||
| 395 | { | 405 | { | ||
| 396 | if (Hint::NotSet != m_hint.style && !m_hint.toBeRemoved) { | 406 | if (Hint::NotSet != m_hint.style && !m_hint.toBeRemoved) { | ||
| 397 | style = m_hint.style; | 407 | style = m_hint.style; | ||
| 398 | return true; | 408 | return true; | ||
| 399 | } else { | 409 | } else { | ||
| 400 | return false; | 410 | return false; | ||
| 401 | } | 411 | } | ||
| ▲ Show 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 522 | case Hint::None: | |||
| 513 | return "hintnone"; | 523 | return "hintnone"; | ||
| 514 | case Hint::Slight: | 524 | case Hint::Slight: | ||
| 515 | return "hintslight"; | 525 | return "hintslight"; | ||
| 516 | case Hint::Full: | 526 | case Hint::Full: | ||
| 517 | return "hintfull"; | 527 | return "hintfull"; | ||
| 518 | } | 528 | } | ||
| 519 | } | 529 | } | ||
| 520 | 530 | | |||
| 531 | bool KXftConfig::parseConfigFile(const QString& filename) | ||||
| 532 | { | ||||
| 533 | bool ok = false; | ||||
| 534 | | ||||
| 535 | QFile f(filename); | ||||
| 536 | | ||||
| 537 | if (f.open(QIODevice::ReadOnly)) { | ||||
| 538 | m_time = getTimeStamp(filename); | ||||
| 539 | ok = true; | ||||
| 540 | m_doc.clear(); | ||||
| 541 | | ||||
| 542 | if (m_doc.setContent(&f)) { | ||||
| 543 | readContents(); | ||||
| 544 | } | ||||
| 545 | f.close(); | ||||
| 546 | } else { | ||||
| 547 | ok = !fExists(filename) && dWritable(getDir(filename)); | ||||
| 548 | } | ||||
| 549 | | ||||
| 550 | if (m_doc.documentElement().isNull()) { | ||||
| 551 | m_doc.appendChild(m_doc.createElement("fontconfig")); | ||||
| 552 | } | ||||
| 553 | | ||||
| 554 | if (ok) { | ||||
| 555 | // | ||||
| 556 | // Check exclude range values - i.e. size and pixel size... | ||||
| 557 | // If "size" range is set, ensure "pixelsize" matches... | ||||
| 558 | if (!equal(0, m_excludeRange.from) || !equal(0, m_excludeRange.to)) { | ||||
| 559 | double pFrom = (double)point2Pixel(m_excludeRange.from), | ||||
| 560 | pTo = (double)point2Pixel(m_excludeRange.to); | ||||
| 561 | | ||||
| 562 | if (!equal(pFrom, m_excludePixelRange.from) || !equal(pTo, m_excludePixelRange.to)) { | ||||
| 563 | m_excludePixelRange.from = pFrom; | ||||
| 564 | m_excludePixelRange.to = pTo; | ||||
| 565 | m_madeChanges = true; | ||||
| 566 | } | ||||
| 567 | } else if (!equal(0, m_excludePixelRange.from) || !equal(0, m_excludePixelRange.to)) { | ||||
| 568 | // "pixelsize" set, but not "size" !!! | ||||
| 569 | m_excludeRange.from = (int)pixel2Point(m_excludePixelRange.from); | ||||
| 570 | m_excludeRange.to = (int)pixel2Point(m_excludePixelRange.to); | ||||
| 571 | m_madeChanges = true; | ||||
| 572 | } | ||||
| 573 | } | ||||
| 574 | | ||||
| 575 | return ok; | ||||
| 576 | } | ||||
| 577 | | ||||
| 521 | void KXftConfig::readContents() | 578 | void KXftConfig::readContents() | ||
| 522 | { | 579 | { | ||
| 523 | QDomNode n = m_doc.documentElement().firstChild(); | 580 | QDomNode n = m_doc.documentElement().firstChild(); | ||
| 524 | 581 | | |||
| 525 | while (!n.isNull()) { | 582 | while (!n.isNull()) { | ||
| 526 | QDomElement e = n.toElement(); | 583 | QDomElement e = n.toElement(); | ||
| 527 | 584 | | |||
| 528 | if (!e.isNull()) { | 585 | if (!e.isNull()) { | ||
| 529 | if ("match" == e.tagName()) { | 586 | if ("match" == e.tagName()) { | ||
| 530 | QString str; | 587 | QString str; | ||
| 531 | 588 | | |||
| 532 | switch (e.childNodes().count()) { | 589 | int childNodesCount = e.childNodes().count(); | ||
| 590 | QDomNode en = e.firstChild(); | ||||
| 591 | while (!en.isNull()) { | ||||
| 592 | if (en.isComment()) { | ||||
| 593 | childNodesCount--; | ||||
| 594 | } | ||||
| 595 | en = en.nextSibling(); | ||||
| 596 | } | ||||
| 597 | | ||||
| 598 | switch (childNodesCount) { | ||||
| 533 | case 1: | 599 | case 1: | ||
| 534 | if ("font" == e.attribute("target")) { | 600 | if ("font" == e.attribute("target") || "pattern" == e.attribute("target")) { | ||
| 535 | QDomElement ene = e.firstChild().toElement(); | 601 | QDomNode en = e.firstChild(); | ||
| 602 | while (!en.isNull()) { | ||||
| 603 | QDomElement ene = en.toElement(); | ||||
| 604 | | ||||
| 605 | while (ene.isComment()) { | ||||
| 606 | ene = ene.nextSiblingElement(); | ||||
| 607 | } | ||||
| 536 | 608 | | |||
| 537 | if (!ene.isNull() && "edit" == ene.tagName()) { | 609 | if (!ene.isNull() && "edit" == ene.tagName()) { | ||
| 538 | if (!(str = getEntry(ene, "const", 2, "name", "rgba", "mode", | 610 | if (!(str = getEntry(ene, "const", 2, "name", "rgba", "mode", | ||
| 539 | "assign")).isNull()) { | 611 | "assign")).isNull() | ||
| 612 | || (m_subPixel.type == SubPixel::NotSet && !(str = getEntry(ene, "const", 2, "name", "rgba", "mode", | ||||
| 613 | "append")).isNull())) { | ||||
| 540 | m_subPixel.node = n; | 614 | m_subPixel.node = n; | ||
| 541 | m_subPixel.type = strToType(str.toLatin1()); | 615 | m_subPixel.type = strToType(str.toLatin1()); | ||
| 542 | } else if (!(str = getEntry(ene, "const", 2, "name", "hintstyle", "mode", | 616 | } else if (!(str = getEntry(ene, "const", 2, "name", "hintstyle", "mode", | ||
| 543 | "assign")).isNull()) { | 617 | "assign")).isNull() | ||
| 618 | || (m_hint.style == Hint::NotSet && !(str = getEntry(ene, "const", 2, "name", "hintstyle", "mode", | ||||
| 619 | "append")).isNull())) { | ||||
| 544 | m_hint.node = n; | 620 | m_hint.node = n; | ||
| 545 | m_hint.style = strToStyle(str.toLatin1()); | 621 | m_hint.style = strToStyle(str.toLatin1()); | ||
| 546 | } else if (!(str = getEntry(ene, "bool", 2, "name", "hinting", "mode", | 622 | } else if (!(str = getEntry(ene, "bool", 2, "name", "hinting", "mode", | ||
| 547 | "assign")).isNull()) { | 623 | "assign")).isNull()) { | ||
| 548 | m_hinting.node = n; | 624 | m_hinting.node = n; | ||
| 549 | m_hinting.set = str.toLower() != "false"; | 625 | m_hinting.set = str.toLower() != "false"; | ||
| 550 | } else if (!(str = getEntry(ene, "bool", 2, "name", "antialias", "mode", | 626 | } else if (!(str = getEntry(ene, "bool", 2, "name", "antialias", "mode", | ||
| 551 | "assign")).isNull()) { | 627 | "assign")).isNull() | ||
| 628 | || (m_antiAliasing.state == AntiAliasing::NotSet && !(str = getEntry(ene, "bool", 2, "name", "antialias", "mode", | ||||
| 629 | "append")).isNull())) { | ||||
| 552 | m_antiAliasing.node = n; | 630 | m_antiAliasing.node = n; | ||
| 553 | m_antiAliasing.state = str.toLower() != "false" ? | 631 | m_antiAliasing.state = str.toLower() != "false" ? | ||
| 554 | AntiAliasing::Enabled : AntiAliasing::Disabled; | 632 | AntiAliasing::Enabled : AntiAliasing::Disabled; | ||
| 555 | } | 633 | } | ||
| 556 | } | 634 | } | ||
| 635 | | ||||
| 636 | en = en.nextSibling(); | ||||
| 637 | } | ||||
| 557 | } | 638 | } | ||
| 558 | break; | 639 | break; | ||
| 559 | case 3: // CPD: Is target "font" or "pattern" ???? | 640 | case 3: // CPD: Is target "font" or "pattern" ???? | ||
| 560 | if ("font" == e.attribute("target")) { | 641 | if ("font" == e.attribute("target")) { | ||
| 561 | bool foundFalse = false; | 642 | bool foundFalse = false; | ||
| 562 | QDomNode en = e.firstChild(); | 643 | QDomNode en = e.firstChild(); | ||
| 644 | while (en.isComment()) { | ||||
| 645 | en = en.nextSibling(); | ||||
| 646 | } | ||||
| 563 | QString family; | 647 | QString family; | ||
| 564 | double from = -1.0, | 648 | double from = -1.0, | ||
| 565 | to = -1.0, | 649 | to = -1.0, | ||
| 566 | pixelFrom = -1.0, | 650 | pixelFrom = -1.0, | ||
| 567 | pixelTo = -1.0; | 651 | pixelTo = -1.0; | ||
| 568 | 652 | | |||
| 569 | while (!en.isNull()) { | 653 | while (!en.isNull()) { | ||
| 570 | QDomElement ene = en.toElement(); | 654 | QDomElement ene = en.toElement(); | ||
| ▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Line(s) | 817 | } else { | |||
| 770 | if (!m_antiAliasing.node.isNull()) { | 854 | if (!m_antiAliasing.node.isNull()) { | ||
| 771 | m_doc.documentElement().removeChild(range.node); | 855 | m_doc.documentElement().removeChild(range.node); | ||
| 772 | } | 856 | } | ||
| 773 | m_doc.documentElement().appendChild(matchNode); | 857 | m_doc.documentElement().appendChild(matchNode); | ||
| 774 | range.node = matchNode; | 858 | range.node = matchNode; | ||
| 775 | } | 859 | } | ||
| 776 | } | 860 | } | ||
| 777 | 861 | | |||
| 862 | bool KXftConfig::antiAliasingHasLocalConfig() const | ||||
| 863 | { | ||||
| 864 | return m_antiAliasingHasLocalConfig; | ||||
| 865 | } | ||||
| 866 | | ||||
| 778 | KXftConfig::AntiAliasing::State KXftConfig::getAntiAliasing() const | 867 | KXftConfig::AntiAliasing::State KXftConfig::getAntiAliasing() const | ||
| 779 | { | 868 | { | ||
| 780 | return m_antiAliasing.state; | 869 | return m_antiAliasing.state; | ||
| 781 | } | 870 | } | ||
| 782 | 871 | | |||
| 783 | void KXftConfig::setAntiAliasing(AntiAliasing::State state) | 872 | void KXftConfig::setAntiAliasing(AntiAliasing::State state) | ||
| 784 | { | 873 | { | ||
| 785 | if (state != m_antiAliasing.state) { | 874 | if (state != m_antiAliasing.state) { | ||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||