Logo Search packages:      
Sourcecode: kcm-tablet version File versions  Download package

KConfigGroup ProfileManagement::configGroup ( const QString &  section  ) 

Returns the config group of the tabletprofilesrc file

Always returns the group of the current connected device and the section of the parameter section which will be (stylus/pad/eraser/touch or cursor) The object can be read or modified to change the profile values or retrieve them

Parameters:
section the section of the profile (stylus/eraser/pad/touch/cursor)
Returns:
the config group object with all the profile values

Definition at line 182 of file profilemanagement.cpp.

References m_deviceName, and m_profileName.

Referenced by Wacom::ScreenWidget::loadFromProfile(), Wacom::PenWidget::loadFromProfile(), Wacom::PadMapping::loadFromProfile(), Wacom::PadButtonWidget::loadFromProfile(), Wacom::ScreenWidget::saveToProfile(), Wacom::PenWidget::saveToProfile(), Wacom::PadMapping::saveToProfile(), and Wacom::PadButtonWidget::saveToProfile().

{
    KSharedConfig::Ptr profilesConfig = KSharedConfig::openConfig("tabletprofilesrc", KConfig::SimpleConfig);
    KConfigGroup deviceGroup = KConfigGroup(profilesConfig, m_deviceName);
    KConfigGroup profileGroup = KConfigGroup(&deviceGroup, m_profileName);

    return KConfigGroup(&profileGroup, section);
}


Generated by  Doxygen 1.6.0   Back to index