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