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

Method currentText

src/frontend/widgets/TreeViewComboBox.cpp:175–181  ·  view source on GitHub ↗

! \property QComboBox::currentText \brief the current text If the combo box is editable, the current text is the value displayed by the line edit. Otherwise, it is the value of the current item or an empty string if the combo box is empty or no current item is set. The setter setCurrentText() simply calls setEditText() if the combo box is editable. Otherwise, if there is a matching text in

Source from the content-addressed store, hash-verified

173 \sa editable, setEditText()
174*/
175QString TreeViewComboBox::currentText() const {
176 if (lineEdit())
177 return lineEdit()->text();
178 else if (currentModelIndex().isValid())
179 return itemText(currentIndex());
180 return m_currentText;
181}
182
183void TreeViewComboBox::setText(const QString& text) {
184 m_currentText = text;

Callers 15

applySettingsMethod · 0.80
applySettingsMethod · 0.80
curveChangedMethod · 0.80
saveConfigAsTemplateMethod · 0.80
showValueLabelsMethod · 0.80
addLabelMethod · 0.80
mqttSubscribeMethod · 0.80
mqttUnsubscribeMethod · 0.80
applyFilterSettingsMethod · 0.80
saveSettingsMethod · 0.80

Calls 2

textMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected