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(
|
||||
"<img src=':/images/tool_moreCollapser_off16.png' />");
|
||||
|
||||
QObject::connect(&leftLabel, ChatWidgetHeaderButton::clicked, this,
|
||||
leftButtonClicked);
|
||||
QObject::connect(&leftLabel, &ChatWidgetHeaderButton::clicked, this,
|
||||
&ChatWidgetHeader::leftButtonClicked);
|
||||
|
||||
leftMenu.addAction("Add new split", this, ChatWidgetHeader::menuAddSplit,
|
||||
leftMenu.addAction("Add new split", this, &ChatWidgetHeader::menuAddSplit,
|
||||
QKeySequence(tr("Ctrl+T")));
|
||||
leftMenu.addAction("Close split", this, ChatWidgetHeader::menuCloseSplit,
|
||||
leftMenu.addAction("Close split", this, &ChatWidgetHeader::menuCloseSplit,
|
||||
QKeySequence(tr("Ctrl+W")));
|
||||
leftMenu.addAction("Move split", this, ChatWidgetHeader::menuMoveSplit);
|
||||
leftMenu.addAction("Move split", this, &ChatWidgetHeader::menuMoveSplit);
|
||||
leftMenu.addSeparator();
|
||||
leftMenu.addAction("Change channel", this,
|
||||
ChatWidgetHeader::menuChangeChannel,
|
||||
&ChatWidgetHeader::menuChangeChannel,
|
||||
QKeySequence(tr("Ctrl+R")));
|
||||
leftMenu.addAction("Clear chat", this, ChatWidgetHeader::menuClearChat);
|
||||
leftMenu.addAction("Open channel", this, ChatWidgetHeader::menuOpenChannel);
|
||||
leftMenu.addAction("Clear chat", this, &ChatWidgetHeader::menuClearChat);
|
||||
leftMenu.addAction("Open channel", this,
|
||||
&ChatWidgetHeader::menuOpenChannel);
|
||||
leftMenu.addAction("Open pop-out player", this,
|
||||
ChatWidgetHeader::menuPopupPlayer);
|
||||
&ChatWidgetHeader::menuPopupPlayer);
|
||||
leftMenu.addSeparator();
|
||||
leftMenu.addAction("Reload channel emotes", this,
|
||||
ChatWidgetHeader::menuReloadChannelEmotes);
|
||||
&ChatWidgetHeader::menuReloadChannelEmotes);
|
||||
leftMenu.addAction("Manual reconnect", this,
|
||||
ChatWidgetHeader::menuManualReconnect);
|
||||
&ChatWidgetHeader::menuManualReconnect);
|
||||
leftMenu.addSeparator();
|
||||
leftMenu.addAction("Show changelog", this,
|
||||
ChatWidgetHeader::menuShowChangelog);
|
||||
&ChatWidgetHeader::menuShowChangelog);
|
||||
|
||||
// middle
|
||||
middleLabel.setAlignment(Qt::AlignCenter);
|
||||
|
|
|
@ -18,10 +18,10 @@ ChatWidgetHeaderButton::ChatWidgetHeaderButton()
|
|||
hbox.addWidget(&m_label);
|
||||
hbox.addSpacing(6);
|
||||
|
||||
QObject::connect(&m_label, ChatWidgetHeaderButtonLabel::mouseUp, this,
|
||||
labelMouseUp);
|
||||
QObject::connect(&m_label, ChatWidgetHeaderButtonLabel::mouseDown, this,
|
||||
labelMouseDown);
|
||||
QObject::connect(&m_label, &ChatWidgetHeaderButtonLabel::mouseUp, this,
|
||||
&ChatWidgetHeaderButton::labelMouseUp);
|
||||
QObject::connect(&m_label, &ChatWidgetHeaderButtonLabel::mouseDown, this,
|
||||
&ChatWidgetHeaderButton::labelMouseDown);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue