refactored irc

This commit is contained in:
fourtf
2018-02-05 15:11:50 +01:00
parent 12b30eb2ed
commit b351c40d29
56 changed files with 1397 additions and 1154 deletions
+4
View File
@@ -9,6 +9,8 @@
#define async_exec(a) QThreadPool::globalInstance()->start(new LambdaRunnable(a));
namespace chatterino {
namespace util {
class LambdaRunnable : public QRunnable
{
public:
@@ -52,3 +54,5 @@ static void postToThread(F &&fun, QObject *obj = qApp)
};
QCoreApplication::postEvent(obj, new Event(std::forward<F>(fun)));
}
} // namespace util
} // namespace chatterino