Add simple fontChanged signal

Delete copy/move constructor of FontManager :kkona:
Fix places that were using the copy constructor of the FontManager
This commit is contained in:
Rasmus Karlsson
2017-10-27 21:02:58 +02:00
parent 37571ae613
commit c08059c6a8
3 changed files with 13 additions and 4 deletions
+6
View File
@@ -3,11 +3,15 @@
#include <QFont>
#include <QFontMetrics>
#include <pajlada/settings/setting.hpp>
#include <pajlada/signals/signal.hpp>
namespace chatterino {
class FontManager
{
FontManager(const FontManager &) = delete;
FontManager(FontManager &&) = delete;
public:
enum Type : uint8_t {
Small,
@@ -42,6 +46,8 @@ public:
pajlada::Settings::Setting<std::string> currentFontFamily;
pajlada::Settings::Setting<int> currentFontSize;
pajlada::Signals::NoArgSignal fontChanged;
private:
FontManager();