renamed *Manager classes

This commit is contained in:
fourtf
2018-06-28 19:51:07 +02:00
parent 2df142bd50
commit 8ced5a1e25
30 changed files with 131 additions and 131 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
namespace chatterino {
class ThemeManager;
class Themes;
class BaseWindow;
class BaseWidget : public QWidget
@@ -41,7 +41,7 @@ protected:
void setScale(float value);
ThemeManager *themeManager;
Themes *themeManager;
private:
void init();
+1 -1
View File
@@ -77,7 +77,7 @@ void TooltipWidget::updateFont()
auto app = getApp();
this->setFont(
app->fonts->getFont(FontManager::Type::ChatMediumSmall, this->getScale()));
app->fonts->getFont(Fonts::Type::ChatMediumSmall, this->getScale()));
}
void TooltipWidget::setText(QString text)
+1 -1
View File
@@ -13,7 +13,7 @@
namespace chatterino {
class ThemeManager;
class Themes;
class Window : public BaseWindow
{
+1 -1
View File
@@ -16,7 +16,7 @@ LastRunCrashDialog::LastRunCrashDialog()
this->setWindowFlag(Qt::WindowContextHelpButtonHint, false);
this->setWindowTitle("Chatterino");
auto &updateManager = UpdateManager::getInstance();
auto &updateManager = Updates::getInstance();
auto layout = LayoutCreator<LastRunCrashDialog>(this).setLayoutType<QVBoxLayout>();
+2 -2
View File
@@ -221,8 +221,8 @@ void NotebookTab::paintEvent(QPaintEvent *)
// int fullHeight = (int)(scale * 48);
// select the right tab colors
ThemeManager::TabColors colors;
ThemeManager::TabColors regular = this->themeManager->tabs.regular;
Themes::TabColors colors;
Themes::TabColors regular = this->themeManager->tabs.regular;
if (this->selected_) {
colors = this->themeManager->tabs.selected;
+1 -1
View File
@@ -226,7 +226,7 @@ QLayout *AppearancePage::createFontChanger()
button->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Policy::Fixed);
QObject::connect(button, &QPushButton::clicked, [=]() {
QFontDialog dialog(app->fonts->getFont(FontManager::ChatMedium, 1.));
QFontDialog dialog(app->fonts->getFont(Fonts::ChatMedium, 1.));
dialog.setWindowFlag(Qt::WindowStaysOnTopHint);
+2 -2
View File
@@ -67,11 +67,11 @@ void SplitInput::initLayout()
// set edit font
this->ui_.textEdit->setFont(
app->fonts->getFont(FontManager::Type::ChatMedium, this->getScale()));
app->fonts->getFont(Fonts::Type::ChatMedium, this->getScale()));
this->managedConnections_.push_back(app->fonts->fontChanged.connect([=]() {
this->ui_.textEdit->setFont(
app->fonts->getFont(FontManager::Type::ChatMedium, this->getScale()));
app->fonts->getFont(Fonts::Type::ChatMedium, this->getScale()));
}));
// open emote popup