updated messages

This commit is contained in:
fourtf
2017-01-15 16:38:30 +01:00
parent 4dbe2b0254
commit 801e7b8a1e
32 changed files with 698 additions and 148 deletions
+35
View File
@@ -0,0 +1,35 @@
#ifndef WINDOWS_H
#define WINDOWS_H
#include "mainwindow.h"
#include <QMutex>
class Windows
{
public:
static void invalidateEmotes();
static MainWindow &
mainWindow()
{
m_windowMutex.lock();
if (m_mainWindow == NULL) {
m_mainWindow = new MainWindow();
}
m_windowMutex.unlock();
return *m_mainWindow;
}
private:
Windows()
{
}
static QMutex m_windowMutex;
static MainWindow *m_mainWindow;
};
#endif // WINDOWS_H