mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
potential fix for stuff
This commit is contained in:
parent
801e7b8a1e
commit
bbcbc4e3d7
|
@ -33,30 +33,31 @@ ChatWidgetHeader::ChatWidgetHeader()
|
||||||
leftLabel.label().setText(
|
leftLabel.label().setText(
|
||||||
"<img src=':/images/tool_moreCollapser_off16.png' />");
|
"<img src=':/images/tool_moreCollapser_off16.png' />");
|
||||||
|
|
||||||
QObject::connect(&leftLabel, ChatWidgetHeaderButton::clicked, this,
|
QObject::connect(&leftLabel, &ChatWidgetHeaderButton::clicked, this,
|
||||||
leftButtonClicked);
|
&ChatWidgetHeader::leftButtonClicked);
|
||||||
|
|
||||||
leftMenu.addAction("Add new split", this, ChatWidgetHeader::menuAddSplit,
|
leftMenu.addAction("Add new split", this, &ChatWidgetHeader::menuAddSplit,
|
||||||
QKeySequence(tr("Ctrl+T")));
|
QKeySequence(tr("Ctrl+T")));
|
||||||
leftMenu.addAction("Close split", this, ChatWidgetHeader::menuCloseSplit,
|
leftMenu.addAction("Close split", this, &ChatWidgetHeader::menuCloseSplit,
|
||||||
QKeySequence(tr("Ctrl+W")));
|
QKeySequence(tr("Ctrl+W")));
|
||||||
leftMenu.addAction("Move split", this, ChatWidgetHeader::menuMoveSplit);
|
leftMenu.addAction("Move split", this, &ChatWidgetHeader::menuMoveSplit);
|
||||||
leftMenu.addSeparator();
|
leftMenu.addSeparator();
|
||||||
leftMenu.addAction("Change channel", this,
|
leftMenu.addAction("Change channel", this,
|
||||||
ChatWidgetHeader::menuChangeChannel,
|
&ChatWidgetHeader::menuChangeChannel,
|
||||||
QKeySequence(tr("Ctrl+R")));
|
QKeySequence(tr("Ctrl+R")));
|
||||||
leftMenu.addAction("Clear chat", this, ChatWidgetHeader::menuClearChat);
|
leftMenu.addAction("Clear chat", this, &ChatWidgetHeader::menuClearChat);
|
||||||
leftMenu.addAction("Open channel", this, ChatWidgetHeader::menuOpenChannel);
|
leftMenu.addAction("Open channel", this,
|
||||||
|
&ChatWidgetHeader::menuOpenChannel);
|
||||||
leftMenu.addAction("Open pop-out player", this,
|
leftMenu.addAction("Open pop-out player", this,
|
||||||
ChatWidgetHeader::menuPopupPlayer);
|
&ChatWidgetHeader::menuPopupPlayer);
|
||||||
leftMenu.addSeparator();
|
leftMenu.addSeparator();
|
||||||
leftMenu.addAction("Reload channel emotes", this,
|
leftMenu.addAction("Reload channel emotes", this,
|
||||||
ChatWidgetHeader::menuReloadChannelEmotes);
|
&ChatWidgetHeader::menuReloadChannelEmotes);
|
||||||
leftMenu.addAction("Manual reconnect", this,
|
leftMenu.addAction("Manual reconnect", this,
|
||||||
ChatWidgetHeader::menuManualReconnect);
|
&ChatWidgetHeader::menuManualReconnect);
|
||||||
leftMenu.addSeparator();
|
leftMenu.addSeparator();
|
||||||
leftMenu.addAction("Show changelog", this,
|
leftMenu.addAction("Show changelog", this,
|
||||||
ChatWidgetHeader::menuShowChangelog);
|
&ChatWidgetHeader::menuShowChangelog);
|
||||||
|
|
||||||
// middle
|
// middle
|
||||||
middleLabel.setAlignment(Qt::AlignCenter);
|
middleLabel.setAlignment(Qt::AlignCenter);
|
||||||
|
|
|
@ -18,10 +18,10 @@ ChatWidgetHeaderButton::ChatWidgetHeaderButton()
|
||||||
hbox.addWidget(&m_label);
|
hbox.addWidget(&m_label);
|
||||||
hbox.addSpacing(6);
|
hbox.addSpacing(6);
|
||||||
|
|
||||||
QObject::connect(&m_label, ChatWidgetHeaderButtonLabel::mouseUp, this,
|
QObject::connect(&m_label, &ChatWidgetHeaderButtonLabel::mouseUp, this,
|
||||||
labelMouseUp);
|
&ChatWidgetHeaderButton::labelMouseUp);
|
||||||
QObject::connect(&m_label, ChatWidgetHeaderButtonLabel::mouseDown, this,
|
QObject::connect(&m_label, &ChatWidgetHeaderButtonLabel::mouseDown, this,
|
||||||
labelMouseDown);
|
&ChatWidgetHeaderButton::labelMouseDown);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue