Skip to content

Commit

Permalink
Fix package creation tab ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
artemis-beta committed Mar 24, 2022
1 parent 3c18f92 commit 24a9f3a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/ros_pkgmanager.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "ros_pkgmanager.hxx"
#include <fstream>

void ROSPkg::Manager::buildPackageForm_() {

Expand Down Expand Up @@ -74,6 +75,28 @@ void ROSPkg::Manager::buildPackageForm_() {
package_form_labels_[entry.first]->setText(entry.second);
}

const QList<QString> tab_order_ = {
"package_name",
"display_name",
"version",
"description",
"author",
"contributors",
"rly_file_path",
"ttb_file_paths",
"ssn_file_paths",
"doc_file_paths",
"img_file_paths",
"graphic_file_paths",
};

for(int i{0}; i < tab_order_.size()-1; ++i) {
setTabOrder(package_form_entry_[tab_order_[i]], package_form_entry_[tab_order_[i+1]]);
}

setTabOrder(package_form_entry_[tab_order_[tab_order_.size()-1]], country_code_label_);
setTabOrder(country_code_label_, year_box_);

package_form_labels_["package_name"]->move(
package_form_->width()/11,
package_form_->height()/(package_form_entry_.size()+7)
Expand Down

0 comments on commit 24a9f3a

Please sign in to comment.