diff --git a/include/ros_packager.hxx b/include/ros_packager.hxx index a69b614..55e0bce 100644 --- a/include/ros_packager.hxx +++ b/include/ros_packager.hxx @@ -71,7 +71,7 @@ class Packager { QList doc_files_; QList ttb_files_; QList img_files_; - QList graphics_files_; + QList graphic_files_; QString toml_file_ = ""; public: /*! ************************************************************************** diff --git a/src/ros_packager.cxx b/src/ros_packager.cxx index 39692a0..2abb161 100644 --- a/src/ros_packager.cxx +++ b/src/ros_packager.cxx @@ -54,6 +54,13 @@ QString ROSPkg::Packager::buildTOML() { } } stream_ << "]" << Qt::endl; + stream_ << "graphic_files = ["; + if(!img_files_.empty()) { + for(const QString& graphic_file : graphic_files_) { + stream_ << "\"" << QFileInfo(graphic_file).fileName() << "\","; + } + } + stream_ << "]" << Qt::endl; if(year_ > 0) stream_ << "year = \"" << year_ << "\"" << Qt::endl; if(!factual_.isEmpty()) stream_ << "factual = \"" << factual_ << "\"" << Qt::endl; stream_ << "author = \"" << author_ << "\"" << Qt::endl;