Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/backends/x11/libinputtouchpad.cpp
Show First 20 Lines • Show All 360 Lines • ▼ Show 20 Line(s) | 344 | bool changed = m_enabled.changed() || | |||
---|---|---|---|---|---|
361 | m_isScrollOnButtonDown.changed() || | 361 | m_isScrollOnButtonDown.changed() || | ||
362 | m_scrollButton.changed() || | 362 | m_scrollButton.changed() || | ||
363 | m_clickMethodAreas.changed() || | 363 | m_clickMethodAreas.changed() || | ||
364 | m_clickMethodClickfinger.changed(); | 364 | m_clickMethodClickfinger.changed(); | ||
365 | 365 | | |||
366 | return changed; | 366 | return changed; | ||
367 | } | 367 | } | ||
368 | 368 | | |||
369 | int LibinputTouchpad::touchpadOff() | ||||
370 | { | ||||
371 | return m_enabled.val; | ||||
372 | } | ||||
373 | | ||||
374 | XcbAtom &LibinputTouchpad::touchpadOffAtom() | ||||
375 | { | ||||
376 | return *m_atoms[QLatin1Literal("enabled")].data(); | ||||
377 | } | ||||
378 | | ||||
369 | template<typename T> | 379 | template<typename T> | ||
370 | bool LibinputTouchpad::valueLoader(Prop<T> &prop) | 380 | bool LibinputTouchpad::valueLoader(Prop<T> &prop) | ||
371 | { | 381 | { | ||
372 | const Parameter *p = findParameter(QString::fromAscii(prop.name)); | 382 | const Parameter *p = findParameter(QString::fromAscii(prop.name)); | ||
373 | 383 | | |||
374 | if (!p) { | 384 | if (!p) { | ||
375 | qCCritical(KCM_TOUCHPAD) << "Error on read of " << QString::fromAscii(prop.name); | 385 | qCCritical(KCM_TOUCHPAD) << "Error on read of " << QString::fromAscii(prop.name); | ||
376 | } | 386 | } | ||
Show All 37 Lines |