fixed header actions for qt 4.7

This commit is contained in:
daniel 2017-01-16 12:41:17 -05:00
parent ad87075743
commit f227b998a3
2 changed files with 27 additions and 26 deletions

View file

@ -37,32 +37,32 @@ ChatWidgetHeader::ChatWidgetHeader(ChatWidget *parent)
QObject::connect(&m_leftLabel, &ChatWidgetHeaderButton::clicked, this, QObject::connect(&m_leftLabel, &ChatWidgetHeaderButton::clicked, this,
&ChatWidgetHeader::leftButtonClicked); &ChatWidgetHeader::leftButtonClicked);
// leftMenu.addAction("Add new split", this, m_leftMenu.addAction("Add new split", this,
// &ChatWidgetHeader::menuAddSplit, SLOT(menuAddSplit()),
// QKeySequence(tr("Ctrl+T"))); QKeySequence(tr("Ctrl+T")));
// leftMenu.addAction("Close split", this, m_leftMenu.addAction("Close split", this,
// &ChatWidgetHeader::menuCloseSplit, SLOT(menuCloseSplit()),
// QKeySequence(tr("Ctrl+W"))); QKeySequence(tr("Ctrl+W")));
// leftMenu.addAction("Move split", this, m_leftMenu.addAction("Move split", this,
// &ChatWidgetHeader::menuMoveSplit); SLOT(menuMoveSplit()));
// leftMenu.addSeparator(); m_leftMenu.addSeparator();
// leftMenu.addAction("Change channel", this, m_leftMenu.addAction("Change channel", this,
// &ChatWidgetHeader::menuChangeChannel, SLOT(menuChangeChannel()),
// QKeySequence(tr("Ctrl+R"))); QKeySequence(tr("Ctrl+R")));
// leftMenu.addAction("Clear chat", this, m_leftMenu.addAction("Clear chat", this,
// &ChatWidgetHeader::menuClearChat); SLOT(menuClearChat()));
// leftMenu.addAction("Open channel", this, m_leftMenu.addAction("Open channel", this,
// &ChatWidgetHeader::menuOpenChannel); SLOT(menuOpenChannel()));
// leftMenu.addAction("Open pop-out player", this, m_leftMenu.addAction("Open pop-out player", this,
// &ChatWidgetHeader::menuPopupPlayer); SLOT(menuPopupPlayer()));
// leftMenu.addSeparator(); m_leftMenu.addSeparator();
// leftMenu.addAction("Reload channel emotes", this, m_leftMenu.addAction("Reload channel emotes", this,
// &ChatWidgetHeader::menuReloadChannelEmotes); SLOT(menuReloadChannelEmotes()));
// leftMenu.addAction("Manual reconnect", this, m_leftMenu.addAction("Manual reconnect", this,
// &ChatWidgetHeader::menuManualReconnect); SLOT(menuManualReconnect()));
// leftMenu.addSeparator(); m_leftMenu.addSeparator();
// leftMenu.addAction("Show changelog", this, m_leftMenu.addAction("Show changelog", this,
// &ChatWidgetHeader::menuShowChangelog); SLOT(menuShowChangelog()));
// middle // middle
m_middleLabel.setAlignment(Qt::AlignCenter); m_middleLabel.setAlignment(Qt::AlignCenter);

View file

@ -52,6 +52,7 @@ private:
void leftButtonClicked(); void leftButtonClicked();
void rightButtonClicked(); void rightButtonClicked();
private slots:
void menuAddSplit(); void menuAddSplit();
void menuCloseSplit(); void menuCloseSplit();
void menuMoveSplit(); void menuMoveSplit();