Пример #1
0
StackZone::StackZone(Player *_p, int _zoneHeight, QGraphicsItem *parent)
	: SelectZone(_p, "stack", false, false, true, parent), zoneHeight(_zoneHeight)
{
	connect(settingsCache, SIGNAL(stackBgPathChanged()), this, SLOT(updateBgPixmap()));
	updateBgPixmap();
	setCacheMode(DeviceCoordinateCache);
}
Пример #2
0
void SettingsCache::setStackBgPath(const QString &_stackBgPath)
{
    stackBgPath = _stackBgPath;
    settings->setValue("zonebg/stack", stackBgPath);
    emit stackBgPathChanged();
}