void ELineEdit::resourceMenuActivated(QAction *x) { if(x->data().toString().isNull()) return; url.clear(); changeResource(x->data().toString()); }
bool Game::Rendering::Image::updateImage(const std::string& file_path, int x, int y, int rotation, int align, bool bShow) { setFilePath(file_path); setPos(x, y); setRotation(rotation); setAlign(align); setShown(bShow); changeResource(); return true; }
ResourceType ResourceManagement::changeResource(Resource *resource, ResourceType amount) { return changeResource(resource->getShortName(), amount); }