forked from qt-creator/qt-creator
Terminal: Add shell integration
Change-Id: Ic1e226b56f0103e5a6e7764073ab7ab241b67baa Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -72,8 +72,13 @@ public:
|
||||
|
||||
QString shellName() const;
|
||||
|
||||
Utils::FilePath cwd() const;
|
||||
Utils::CommandLine currentCommand() const;
|
||||
|
||||
signals:
|
||||
void started(qint64 pid);
|
||||
void cwdChanged(const Utils::FilePath &cwd);
|
||||
void commandChanged(const Utils::CommandLine &cmd);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
@@ -158,6 +163,7 @@ protected:
|
||||
private:
|
||||
std::unique_ptr<Utils::QtcProcess> m_process;
|
||||
std::unique_ptr<Internal::TerminalSurface> m_surface;
|
||||
std::unique_ptr<ShellIntegration> m_shellIntegration;
|
||||
|
||||
QString m_shellName;
|
||||
|
||||
@@ -201,6 +207,9 @@ private:
|
||||
Internal::Cursor m_cursor;
|
||||
QTimer m_cursorBlinkTimer;
|
||||
bool m_cursorBlinkState{true};
|
||||
|
||||
Utils::FilePath m_cwd;
|
||||
Utils::CommandLine m_currentCommand;
|
||||
};
|
||||
|
||||
} // namespace Terminal
|
||||
|
||||
Reference in New Issue
Block a user