Changeset View
Changeset View
Standalone View
Standalone View
src/panels/terminal/terminalpanel.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 48 | public: | |||
---|---|---|---|---|---|
51 | 51 | | |||
52 | /** | 52 | /** | ||
53 | * @brief This function is used to set the terminal panels's cwd to | 53 | * @brief This function is used to set the terminal panels's cwd to | ||
54 | * home when an unmounting request is received. | 54 | * home when an unmounting request is received. | ||
55 | */ | 55 | */ | ||
56 | void goHome(); | 56 | void goHome(); | ||
57 | QString currentWorkingDirectory(); | 57 | QString currentWorkingDirectory(); | ||
58 | bool isHiddenInVisibleWindow() const; | 58 | bool isHiddenInVisibleWindow() const; | ||
59 | bool terminalHasFocus() const; | ||||
elvisangelaccio: Should be `const` | |||||
59 | bool hasProgramRunning() const; | 60 | bool hasProgramRunning() const; | ||
60 | QString runningProgramName() const; | 61 | QString runningProgramName() const; | ||
61 | 62 | | |||
62 | public slots: | 63 | public slots: | ||
63 | void terminalExited(); | 64 | void terminalExited(); | ||
64 | void dockVisibilityChanged(); | 65 | void dockVisibilityChanged(); | ||
QWidget::setFocus(), QWidget::hasFocus() and QWidget::setFocus(Qt::FocusReason reason) are not virtual, I'm not sure this is a good idea. elvisangelaccio: `QWidget::setFocus()`, `QWidget::hasFocus()` and `QWidget::setFocus(Qt::FocusReason reason)`… | |||||
I've tried to use focusProxy but it didn't work (maybe it's just me). What do you propose? rominf: I've tried to use `focusProxy` but it didn't work (maybe it's just me). What do you propose? | |||||
65 | 66 | | |||
66 | signals: | 67 | signals: | ||
67 | void hideTerminalPanel(); | 68 | void hideTerminalPanel(); | ||
68 | 69 | | |||
69 | /** | 70 | /** | ||
70 | * Is emitted if the an URL change is requested. | 71 | * Is emitted if the an URL change is requested. | ||
71 | */ | 72 | */ | ||
72 | void changeUrl(const QUrl& url); | 73 | void changeUrl(const QUrl& url); | ||
Show All 33 Lines |
Should be const