MCPcopy Create free account
hub / github.com/KDE/kdiff3 / setText

Method setText

src/optiondialog.cpp:360–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 qint32 m_defaultVal;
359
360 void setText(const QString& s)
361 {
362 // Find the string in the combobox-list, don't change the value if nothing fits.
363 for(qint32 i = 0; i < count(); ++i)
364 {
365 if(itemText(i) == s)
366 {
367 if(m_pVarNum != nullptr) *m_pVarNum = i;
368 if(m_pVarStr != nullptr) *m_pVarStr = s;
369 setCurrentIndex(i);
370 return;
371 }
372 }
373 }
374};
375
376class OptionEncodingComboBox: public QComboBox, public OptionCodec

Callers 15

setInformationImpMethod · 0.80
enterEventLoopMethod · 0.80
delayedHideMethod · 0.80
timerEventMethod · 0.80
initMethod · 0.80
slotRecalcMethod · 0.80
KDiff3AppMethod · 0.80
initActionsMethod · 0.80
slotCutMethod · 0.80
slotCopyMethod · 0.80
WindowTitleWidgetMethod · 0.80
setFileNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected