refactored Window

This commit is contained in:
fourtf
2018-07-06 17:02:26 +02:00
parent 314c15bb87
commit 741c1f7820
8 changed files with 229 additions and 214 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
namespace chatterino {
template <typename WidgetType, typename Func>
inline void CreateShortcut(WidgetType *w, const char *key, Func func)
inline void createShortcut(WidgetType *w, const char *key, Func func)
{
auto s = new QShortcut(QKeySequence(key), w);
s->setContext(Qt::WidgetWithChildrenShortcut);
@@ -14,7 +14,7 @@ inline void CreateShortcut(WidgetType *w, const char *key, Func func)
}
template <typename WidgetType, typename Func>
inline void CreateWindowShortcut(WidgetType *w, const char *key, Func func)
inline void createWindowShortcut(WidgetType *w, const char *key, Func func)
{
auto s = new QShortcut(QKeySequence(key), w);
s->setContext(Qt::WindowShortcut);