# This file is generated by rbkconfig_compiler from test8a.kcfg.
# All changes you do to this file will be lost.

class Test8a < KDE::ConfigSkeleton

  #
  # Set Font
  #
  def setFont(v)
    item = findItem("Font")
    if !item.immutable?
      item.property = @font = Qt::Variant.fromValue(v)
    end
  end

  def font=(v)
    setFont(v)
  end

  #
  # Get Font
  #
  def font
    @font = findItem("Font").property
    return @font.value
  end

  #
  # Set TitleFont
  #
  def setTitleFont(v)
    item = findItem("TitleFont")
    if !item.immutable?
      item.property = @titleFont = Qt::Variant.fromValue(v)
    end
  end

  def titleFont=(v)
    setTitleFont(v)
  end

  #
  # Get TitleFont
  #
  def titleFont
    @titleFont = findItem("TitleFont").property
    return @titleFont.value
  end

  def initialize(config = KDE::Global.config)
    super(config)

    # Group
    @font = Qt::Variant.fromValue(Qt::Font.new)
    @titleFont = Qt::Variant.fromValue(Qt::Font.new)
    setCurrentGroup("Group")

    itemFont = ItemFont.new(currentGroup(), "Font", @font.value, Qt::Font.new)
    itemFont.property = @font
    addItem(itemFont)
    itemTitleFont = ItemFont.new(currentGroup(), "TitleFont", @titleFont.value, Qt::Font.new)
    itemTitleFont.property = @titleFont
    addItem(itemTitleFont)
  end

end
