Message ID | 20190724154039.23705-3-y.karadz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | a9afc4d2f3fc2ec9a6a727d458f3c3b85ffe4169 |
Headers | show |
Series | Fixes for Capture needed befor KS 1.0 | expand |
diff --git a/kernel-shark/src/KsCaptureDialog.cpp b/kernel-shark/src/KsCaptureDialog.cpp index 888ffea..6e526ff 100644 --- a/kernel-shark/src/KsCaptureDialog.cpp +++ b/kernel-shark/src/KsCaptureDialog.cpp @@ -437,6 +437,9 @@ void KsCaptureMonitor::connectMe(QProcess *proc, KsCaptureControl *ctrl) connect(ctrl, &KsCaptureControl::argsReady, this, &KsCaptureMonitor::_argsReady); + + connect(ctrl, &KsCaptureControl::print, + this, &KsCaptureMonitor::print); } void KsCaptureMonitor::_captureStarted() diff --git a/kernel-shark/src/KsCaptureDialog.hpp b/kernel-shark/src/KsCaptureDialog.hpp index b168a2b..f8ddf4a 100644 --- a/kernel-shark/src/KsCaptureDialog.hpp +++ b/kernel-shark/src/KsCaptureDialog.hpp @@ -40,6 +40,12 @@ signals: /** This signal is emitted when the "Apply" button is pressed. */ void argsReady(const QString &args); + /** + * This signal is emitted when text has to be printed on the + * KsCaptureMonitor widget. + */ + void print(const QString &message); + private: tep_handle *_localTEP;
This will be used to show Warning messages. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com> --- kernel-shark/src/KsCaptureDialog.cpp | 3 +++ kernel-shark/src/KsCaptureDialog.hpp | 6 ++++++ 2 files changed, 9 insertions(+)