mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
made buildable on linux
This commit is contained in:
parent
d924f5bd8d
commit
5681879e1e
4 changed files with 25 additions and 28 deletions
|
@ -36,28 +36,28 @@ ChatWidgetHeader::ChatWidgetHeader()
|
|||
QObject::connect(&leftLabel, &ChatWidgetHeaderButton::clicked, this,
|
||||
&ChatWidgetHeader::leftButtonClicked);
|
||||
|
||||
leftMenu.addAction("Add new split", this, &ChatWidgetHeader::menuAddSplit,
|
||||
QKeySequence(tr("Ctrl+T")));
|
||||
leftMenu.addAction("Close split", this, &ChatWidgetHeader::menuCloseSplit,
|
||||
QKeySequence(tr("Ctrl+W")));
|
||||
leftMenu.addAction("Move split", this, &ChatWidgetHeader::menuMoveSplit);
|
||||
leftMenu.addSeparator();
|
||||
leftMenu.addAction("Change channel", this,
|
||||
&ChatWidgetHeader::menuChangeChannel,
|
||||
QKeySequence(tr("Ctrl+R")));
|
||||
leftMenu.addAction("Clear chat", this, &ChatWidgetHeader::menuClearChat);
|
||||
leftMenu.addAction("Open channel", this,
|
||||
&ChatWidgetHeader::menuOpenChannel);
|
||||
leftMenu.addAction("Open pop-out player", this,
|
||||
&ChatWidgetHeader::menuPopupPlayer);
|
||||
leftMenu.addSeparator();
|
||||
leftMenu.addAction("Reload channel emotes", this,
|
||||
&ChatWidgetHeader::menuReloadChannelEmotes);
|
||||
leftMenu.addAction("Manual reconnect", this,
|
||||
&ChatWidgetHeader::menuManualReconnect);
|
||||
leftMenu.addSeparator();
|
||||
leftMenu.addAction("Show changelog", this,
|
||||
&ChatWidgetHeader::menuShowChangelog);
|
||||
// leftMenu.addAction("Add new split", this, &ChatWidgetHeader::menuAddSplit,
|
||||
// QKeySequence(tr("Ctrl+T")));
|
||||
// leftMenu.addAction("Close split", this, &ChatWidgetHeader::menuCloseSplit,
|
||||
// QKeySequence(tr("Ctrl+W")));
|
||||
// leftMenu.addAction("Move split", this, &ChatWidgetHeader::menuMoveSplit);
|
||||
// leftMenu.addSeparator();
|
||||
// leftMenu.addAction("Change channel", this,
|
||||
// &ChatWidgetHeader::menuChangeChannel,
|
||||
// QKeySequence(tr("Ctrl+R")));
|
||||
// leftMenu.addAction("Clear chat", this, &ChatWidgetHeader::menuClearChat);
|
||||
// leftMenu.addAction("Open channel", this,
|
||||
// &ChatWidgetHeader::menuOpenChannel);
|
||||
// leftMenu.addAction("Open pop-out player", this,
|
||||
// &ChatWidgetHeader::menuPopupPlayer);
|
||||
// leftMenu.addSeparator();
|
||||
// leftMenu.addAction("Reload channel emotes", this,
|
||||
// &ChatWidgetHeader::menuReloadChannelEmotes);
|
||||
// leftMenu.addAction("Manual reconnect", this,
|
||||
// &ChatWidgetHeader::menuManualReconnect);
|
||||
// leftMenu.addSeparator();
|
||||
// leftMenu.addAction("Show changelog", this,
|
||||
// &ChatWidgetHeader::menuShowChangelog);
|
||||
|
||||
// middle
|
||||
middleLabel.setAlignment(Qt::AlignCenter);
|
||||
|
|
|
@ -32,7 +32,6 @@ ChatWidgetView::resizeEvent(QResizeEvent *)
|
|||
auto messages = c->getMessagesClone();
|
||||
|
||||
for (std::shared_ptr<Message> &message : messages) {
|
||||
qInfo(QString::number(width()).toStdString().c_str());
|
||||
message.get()->layout(this->width(), true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ IrcManager::disconnect()
|
|||
void
|
||||
IrcManager::messageReceived(IrcMessage *message)
|
||||
{
|
||||
qInfo(message->command().toStdString().c_str());
|
||||
// qInfo(message->command().toStdString().c_str());
|
||||
|
||||
// if (message->command() == "")
|
||||
}
|
||||
|
@ -163,9 +163,9 @@ IrcManager::messageReceived(IrcMessage *message)
|
|||
void
|
||||
IrcManager::privateMessageReceived(IrcPrivateMessage *message)
|
||||
{
|
||||
qInfo(message->content().toStdString().c_str());
|
||||
// qInfo(message->content().toStdString().c_str());
|
||||
|
||||
qInfo(message->target().toStdString().c_str());
|
||||
// qInfo(message->target().toStdString().c_str());
|
||||
auto c = Channel::getChannel(message->target().mid(1));
|
||||
|
||||
if (c != NULL) {
|
||||
|
|
|
@ -572,8 +572,6 @@ Message::layout(int width, bool enableEmoteMargins)
|
|||
|
||||
alignParts();
|
||||
|
||||
qInfo("words: %d, parts: %d", m_words.size(), parts->size());
|
||||
|
||||
auto tmp = m_wordParts;
|
||||
m_wordParts = parts;
|
||||
delete tmp;
|
||||
|
|
Loading…
Reference in a new issue