MCPcopy Create free account
hub / github.com/KDE/labplot / navigateTo

Method navigateTo

src/frontend/SettingsDialog.cpp:111–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void SettingsDialog::navigateTo(Settings::Type type) {
112 switch (type) {
113 case Settings::Type::General:
114 case Settings::Type::General_Number_Format:
115 case Settings::Type::General_Units:
116 // "general" is selected initially
117 break;
118 case Settings::Type::Worksheet:
119 setCurrentPage(m_worksheetPageItem);
120 break;
121 case Settings::Type::Spreadsheet:
122 setCurrentPage(m_spreadsheetPageItem);
123 break;
124#ifdef HAVE_CANTOR_LIBS
125 case Settings::Type::Notebook:
126 setCurrentPage(m_notebookPageItem);
127 break;
128#endif
129 case Settings::Type::Datasets:
130 setCurrentPage(m_datasetsPageItem);
131 break;
132#ifdef HAVE_KUSERFEEDBACK
133 case Settings::Type::Feedback:
134 setCurrentPage(m_userFeedbackPageItem);
135 break;
136#endif
137 }
138}
139
140void SettingsDialog::slotButtonClicked(QAbstractButton* button) {
141 if ((button == buttonBox()->button(QDialogButtonBox::Ok)) || (button == buttonBox()->button(QDialogButtonBox::Apply))) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected