mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
37 lines
565 B
C++
37 lines
565 B
C++
#ifndef WINDOWS_H
|
|
#define WINDOWS_H
|
|
|
|
#include "mainwindow.h"
|
|
|
|
#include <QMutex>
|
|
|
|
class Windows
|
|
{
|
|
public:
|
|
static void layoutVisibleChatWidgets();
|
|
static void repaintVisibleChatWidgets();
|
|
|
|
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
|