コード例 #1
0
KisFavoriteResourceManager::KisFavoriteResourceManager(KisPaintopBox *paintopBox)
    : m_paintopBox(paintopBox)
    , m_colorList(0)
    , m_blockUpdates(false)
    , m_initialized(false)
{
    KisConfig cfg;
    m_maxPresets = cfg.favoritePresets();
    m_colorList = new ColorDataList();
    connect(KisConfigNotifier::instance(), SIGNAL(configChanged()), SLOT(configChanged()));
    KisPaintOpPresetResourceServer * rServer = KisResourceServerProvider::instance()->paintOpPresetServer(false);
    rServer->addObserver(this);
}
コード例 #2
0
void KisFavoriteResourceManager::configChanged()
{
    KisConfig cfg;
    m_maxPresets = cfg.favoritePresets();
    updateFavoritePresets();
}