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

Method slotBrowseButtonClicked

src/difftextwindow.cpp:2108–2117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2106}
2107
2108void DiffTextWindowFrame::slotBrowseButtonClicked()
2109{
2110 QString current = m_pFileSelection->text();
2111
2112 QUrl newURL = QFileDialog::getOpenFileUrl(this, i18n("Open File"), QUrl::fromUserInput(current, QString(), QUrl::AssumeLocalFile));
2113 if(!newURL.isEmpty())
2114 {
2115 Q_EMIT fileNameChanged(newURL.url(), m_pDiffTextWindow->getWindowIndex());
2116 }
2117}
2118
2119void DiffTextWindowFrame::slotEncodingChanged(const QByteArray& name)
2120{

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.45
getWindowIndexMethod · 0.45

Tested by

no test coverage detected