minor style changes

This commit is contained in:
fourtf 2018-01-29 13:22:22 +01:00
parent 2391ad7d16
commit 0d417dfa2d
5 changed files with 2 additions and 28 deletions

View file

@ -115,7 +115,6 @@ SOURCES += \
src/singletons/emotemanager.cpp \
src/messages/messagebuilder.cpp \
src/twitch/twitchmessagebuilder.cpp \
src/widgets/titlebar.cpp \
src/singletons/accountmanager.cpp \
src/twitch/twitchuser.cpp \
src/ircaccount.cpp \

View file

@ -1,4 +1,5 @@
#include "widgets/split.hpp"
#include "singletons/channelmanager.hpp"
#include "singletons/settingsmanager.hpp"
#include "singletons/thememanager.hpp"
@ -137,11 +138,6 @@ ChannelPtr Split::getChannel() const
return this->channel;
}
ChannelPtr &Split::getChannelRef()
{
return this->channel;
}
void Split::setChannel(ChannelPtr _newChannel)
{
this->view.setChannel(_newChannel);

View file

@ -56,7 +56,6 @@ public:
const std::string &getUUID() const;
ChannelPtr getChannel() const;
ChannelPtr &getChannelRef();
void setFlexSizeX(double x);
double getFlexSizeX();
void setFlexSizeY(double y);

View file

@ -1,13 +0,0 @@
#include "titlebar.hpp"
namespace chatterino {
namespace widgets {
TitleBar::TitleBar(QWidget *parent)
: QWidget(parent)
{
setFixedHeight(32);
}
} // namespace widgets
} // namespace chatterino

View file

@ -47,11 +47,6 @@ Window::Window(const QString &windowName, singletons::ThemeManager &_themeManage
QVBoxLayout *layout = new QVBoxLayout(this);
// add titlebar
// if (SettingsManager::getInstance().useCustomWindowFrame.get()) {
// layout->addWidget(&_titleBar);
// }
layout->addWidget(&this->notebook);
this->getLayoutContainer()->setLayout(layout);
@ -64,9 +59,7 @@ Window::Window(const QString &windowName, singletons::ThemeManager &_themeManage
/// Initialize program-wide hotkeys
// CTRL+P: Open Settings Dialog
CreateWindowShortcut(this, "CTRL+P", [] {
SettingsDialog::showDialog(); //
});
CreateWindowShortcut(this, "CTRL+P", [] { SettingsDialog::showDialog(); });
// CTRL+Number: Switch to n'th tab
CreateWindowShortcut(this, "CTRL+1", [this] { this->notebook.selectIndex(0); });