| 858 | } |
| 859 | |
| 860 | void GeometrySettings::saveToolbars(const QMainWindow* w) |
| 861 | { |
| 862 | const auto tbs = w->findChildren<QToolBar*>(); |
| 863 | |
| 864 | // save visibility for all |
| 865 | for (auto* tb : tbs) { |
| 866 | saveVisibility(tb); |
| 867 | } |
| 868 | |
| 869 | // all toolbars have the same size and button style settings, just save the |
| 870 | // first one |
| 871 | if (!tbs.isEmpty()) { |
| 872 | const auto* tb = tbs[0]; |
| 873 | |
| 874 | set(m_Settings, "Geometry", "toolbar_size", tb->iconSize()); |
| 875 | set(m_Settings, "Geometry", "toolbar_button_style", |
| 876 | static_cast<int>(tb->toolButtonStyle())); |
| 877 | } |
| 878 | } |
| 879 | |
| 880 | QStringList GeometrySettings::modInfoTabOrder() const |
| 881 | { |
no test coverage detected