MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / saveToolbars

Method saveToolbars

src/settings.cpp:860–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860void 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
880QStringList GeometrySettings::modInfoTabOrder() const
881{

Callers 1

storeSettingsMethod · 0.80

Calls 2

setFunction · 0.70
isEmptyMethod · 0.45

Tested by

no test coverage detected