MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / writePreview

Method writePreview

source/mod_uploader/StarModUploader.cpp:243–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void ModUploader::writePreview() {
244 if (m_modPreview.isNull())
245 return;
246
247 String modPreviewFile = File::relativeTo(*m_modDirectory, "_previewimage");
248 m_modPreview.save(toQString(modPreviewFile), "PNG");
249}
250
251void ModUploader::resetModId() {
252 m_modIdLabel->setText("");

Callers

nothing calls this directly

Calls 3

toQStringFunction · 0.85
saveMethod · 0.80
isNullMethod · 0.45

Tested by

no test coverage detected