added qt version number to about tab

This commit is contained in:
fourtf
2018-08-09 06:22:55 +02:00
parent 94813fe3df
commit e1f180ac28
12 changed files with 57 additions and 11 deletions
+9
View File
@@ -0,0 +1,9 @@
#include "MessageContainer.hpp"
namespace chatterino {
MessageContainer::MessageContainer()
{
}
} // namespace chatterino
+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include <deque>
namespace chatterino {
class MessageContainer
{
public:
MessageContainer();
};
} // namespace chatterino
-2
View File
@@ -104,8 +104,6 @@ void BaseWindow::init()
QSizePolicy policy(QSizePolicy::Ignored,
QSizePolicy::Preferred);
policy.setHorizontalStretch(1);
// title->setBaseSize(0, 0);
// title->setScaledContents(true);
title->setSizePolicy(policy);
buttonLayout->addWidget(title);
this->ui_.titleLabel = title;
+13 -1
View File
@@ -17,7 +17,7 @@
namespace chatterino {
AboutPage::AboutPage()
: SettingsPage("About", ":/images/about.svg")
: SettingsPage("About", ":/settings/about.svg")
{
LayoutCreator<AboutPage> layoutCreator(this);
@@ -179,6 +179,18 @@ AboutPage::AboutPage()
}
}
auto buildInfo = QStringList();
buildInfo += "Qt " QT_VERSION_STR;
#ifdef USEWINSDK
buildInfo += "Windows SDK";
#endif
#ifdef _MSC_FULL_VER
buildInfo += "MSVC " + QString::number(_MSC_FULL_VER, 10);
#endif
auto buildText = QString("Built with " + buildInfo.join(", "));
layout.emplace<QLabel>(buildText);
layout->addStretch(1);
}
+1 -1
View File
@@ -17,7 +17,7 @@
namespace chatterino {
AccountsPage::AccountsPage()
: SettingsPage("Accounts", ":/images/accounts.svg")
: SettingsPage("Accounts", ":/settings/accounts.svg")
{
auto *app = getApp();
+1 -1
View File
@@ -27,7 +27,7 @@
namespace chatterino {
CommandPage::CommandPage()
: SettingsPage("Commands", ":/images/commands.svg")
: SettingsPage("Commands", ":/settings/commands.svg")
{
auto app = getApp();
+1 -1
View File
@@ -5,7 +5,7 @@
namespace chatterino {
EmotesPage::EmotesPage()
: SettingsPage("Emotes", ":/images/emote.svg")
: SettingsPage("Emotes", ":/settings/emote.svg")
{
// SettingManager &settings = SettingManager::getInstance();
// LayoutCreator<EmotesPage> layoutCreator(this);
+1 -1
View File
@@ -18,7 +18,7 @@
namespace chatterino {
FeelPage::FeelPage()
: SettingsPage("Feel", ":/images/behave.svg")
: SettingsPage("Feel", ":/settings/behave.svg")
{
auto app = getApp();
LayoutCreator<FeelPage> layoutCreator(this);
@@ -30,7 +30,7 @@
namespace chatterino {
HighlightingPage::HighlightingPage()
: SettingsPage("Highlights", ":/images/notifications.svg")
: SettingsPage("Highlights", ":/settings/notifications.svg")
{
auto app = getApp();
LayoutCreator<HighlightingPage> layoutCreator(this);
+1 -1
View File
@@ -37,7 +37,7 @@
namespace chatterino {
LookPage::LookPage()
: SettingsPage("Look", ":/images/theme.svg")
: SettingsPage("Look", ":/settings/theme.svg")
{
this->initializeUi();
}