aboutsummaryrefslogtreecommitdiff
path: root/src/InputMediator.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-23 19:48:53 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-23 21:47:03 +0530
commit346c16b4e2ea26f47e0e370a490b7794492a9ebb (patch)
tree277a30ac8b0c82a9c9736985385d0d150a55fcb5 /src/InputMediator.hpp
parent9cc72e8ea9f59f9a9627d05528d54a559ebd412c (diff)
downloadnull-browser-346c16b4e2ea26f47e0e370a490b7794492a9ebb.tar.gz
null-browser-346c16b4e2ea26f47e0e370a490b7794492a9ebb.zip
Apply clang-tidy suggestions
Diffstat (limited to '')
-rw-r--r--src/InputMediator.hpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/InputMediator.hpp b/src/InputMediator.hpp
index 87395d5..2cd34f2 100644
--- a/src/InputMediator.hpp
+++ b/src/InputMediator.hpp
@@ -12,23 +12,23 @@ class InputMediator : public QObject {
Q_OBJECT
public:
- InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime,
- KeymapEvaluator *keymapEvaluator);
- ~InputMediator();
+ InputMediator(WebViewStack *web_view_stack, LuaRuntime *lua_runtime,
+ KeymapEvaluator *keymap_evaluator);
+ ~InputMediator() override;
- DELEGATE(webViewStack, openUrl, openUrl)
- DELEGATE(webViewStack, currentUrl, currentUrl)
- DELEGATE(webViewStack, next, nextWebView)
- DELEGATE(webViewStack, previous, previousWebView)
- DELEGATE(webViewStack, closeCurrent, closeCurrentWebView)
- DELEGATE(keymapEvaluator, evaluate, evaluateKeymap)
+ DELEGATE(web_view_stack, open_url, open_url)
+ DELEGATE(web_view_stack, current_url, current_url)
+ DELEGATE(web_view_stack, next, next_web_view)
+ DELEGATE(web_view_stack, previous, previous_web_view)
+ DELEGATE(web_view_stack, close_current, close_current_web_view)
+ DELEGATE(keymap_evaluator, evaluate, evaluate_keymap)
protected:
- void evaluateCommand(QString command);
- void addKeymap(QString mode, QString keyseq, std::function<void()> action);
+ void add_keymap(const QString &mode_string, const QString &keyseq,
+ std::function<void()> action);
private:
- WebViewStack *webViewStack;
- LuaRuntime *luaRuntime;
- KeymapEvaluator *keymapEvaluator;
+ WebViewStack *web_view_stack;
+ LuaRuntime *lua_runtime;
+ KeymapEvaluator *keymap_evaluator;
};