Fix warnings/reformat some code

This commit is contained in:
Rasmus Karlsson
2017-08-12 15:58:46 +02:00
parent ce61351fe3
commit a82774543c
16 changed files with 26 additions and 96 deletions
+6 -6
View File
@@ -6,13 +6,13 @@
#include "widgets/textinputdialog.hpp"
#include <QDebug>
#include <QFileInfo>
#include <QFont>
#include <QFontDatabase>
#include <QPainter>
#include <QProcess>
#include <QShortcut>
#include <QVBoxLayout>
#include <QFileInfo>
#include <QProcess>
#include <boost/signals2.hpp>
#include <functional>
@@ -40,12 +40,12 @@ ChatWidget::ChatWidget(ChannelManager &_channelManager, NotebookPage *parent)
: BaseWidget(parent)
, channelManager(_channelManager)
, completionManager(parent->completionManager)
, channelName("/chatWidgets/" + std::to_string(index++) + "/channelName")
, channel(_channelManager.emptyChannel)
, vbox(this)
, header(this)
, view(this)
, input(this)
, channelName("/chatWidgets/" + std::to_string(index++) + "/channelName")
{
this->vbox.setSpacing(0);
this->vbox.setMargin(1);
@@ -288,9 +288,9 @@ void ChatWidget::doOpenStreamlink()
// TODO(Confuseh): Add quality switcher
if (fileinfo.exists() && fileinfo.isExecutable()) {
// works on leenux, idk whether it would work on whindows or mehOS
QProcess::startDetached(path,
QStringList({"twitch.tv/" + QString::fromStdString(this->channelName.getValue()),
"best"}));
QProcess::startDetached(
path, QStringList({"twitch.tv/" + QString::fromStdString(this->channelName.getValue()),
"best"}));
}
}