Changeset View
Changeset View
Standalone View
Standalone View
src/panels/terminal/terminalpanel.cpp
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Line(s) | 217 | while (!m_sendCdToTerminalHistory.empty()) { | |||
---|---|---|---|---|---|
218 | if (m_konsolePartCurrentDirectory == m_sendCdToTerminalHistory.dequeue()) { | 218 | if (m_konsolePartCurrentDirectory == m_sendCdToTerminalHistory.dequeue()) { | ||
219 | return; | 219 | return; | ||
220 | } | 220 | } | ||
221 | } | 221 | } | ||
222 | 222 | | |||
223 | const QUrl url(QUrl::fromLocalFile(dir)); | 223 | const QUrl url(QUrl::fromLocalFile(dir)); | ||
224 | emit changeUrl(url); | 224 | emit changeUrl(url); | ||
225 | } | 225 | } | ||
226 | | ||||
227 | void TerminalPanel::setFocus(Qt::FocusReason reason) { | ||||
228 | QWidget::setFocus(reason); | ||||
229 | m_terminalWidget->setFocus(reason); | ||||
230 | } | ||||
231 | | ||||
232 | void TerminalPanel::setFocus() { | ||||
233 | setFocus(Qt::FocusReason::OtherFocusReason); | ||||
234 | } | ||||
235 | | ||||
236 | bool TerminalPanel::hasFocus() { | ||||
237 | return m_terminalWidget->hasFocus(); | ||||
238 | } |