Changeset View
Changeset View
Standalone View
Standalone View
drkonqi/drkonqi.cpp
Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Line(s) | |||||
322 | { | 322 | { | ||
323 | return instance()->m_keepRunning; | 323 | return instance()->m_keepRunning; | ||
324 | } | 324 | } | ||
325 | 325 | | |||
326 | int DrKonqi::thread() | 326 | int DrKonqi::thread() | ||
327 | { | 327 | { | ||
328 | return instance()->m_thread; | 328 | return instance()->m_thread; | ||
329 | } | 329 | } | ||
330 | | ||||
331 | bool DrKonqi::ignoreQuality() | ||||
332 | { | ||||
333 | return qEnvironmentVariableIsSet("DRKONQI_IGNORE_QUALITY"); | ||||
334 | } | ||||
335 | | ||||
336 | const QString &DrKonqi::kdeBugzillaURL() | ||||
337 | { | ||||
338 | // NB: for practical reasons this cannot use the shared instance. Initing the instances requires | ||||
339 | // knowing the URL already, so we'd have an init loop. Use a local static instead. | ||||
340 | static QString url; | ||||
341 | if (!url.isEmpty()) { | ||||
342 | return url; | ||||
343 | } | ||||
344 | | ||||
345 | url = QString::fromLocal8Bit(qgetenv("DRKONQI_KDE_BUGZILLA_URL")); | ||||
346 | if (!url.isEmpty()) { | ||||
347 | return url; | ||||
348 | } | ||||
349 | | ||||
350 | url = QStringLiteral("https://bugs.kde.org/"); | ||||
351 | return url; | ||||
352 | } |