Fix some broken connections.
This commit is contained in:
parent
7d10bcc229
commit
53e3ce8715
@ -613,6 +613,11 @@ void FormMain::createConnections() {
|
||||
connect(qApp->feedUpdateLock(), &Mutex::locked, this, &FormMain::updateFeedButtonsAvailability);
|
||||
connect(qApp->feedUpdateLock(), &Mutex::unlocked, this, &FormMain::updateFeedButtonsAvailability);
|
||||
|
||||
connect(tabWidget()->feedMessageViewer()->messagesView(), &MessagesView::currentMessageRemoved,
|
||||
this, &FormMain::updateMessageButtonsAvailability);
|
||||
connect(tabWidget()->feedMessageViewer()->messagesView(), &MessagesView::currentMessageChanged,
|
||||
this, &FormMain::updateMessageButtonsAvailability);
|
||||
|
||||
connect(qApp->feedReader(), &FeedReader::feedUpdatesStarted, this, &FormMain::onFeedUpdatesStarted);
|
||||
connect(qApp->feedReader(), &FeedReader::feedUpdatesProgress, this, &FormMain::onFeedUpdatesProgress);
|
||||
connect(qApp->feedReader(), &FeedReader::feedUpdatesFinished, this, &FormMain::onFeedUpdatesFinished);
|
||||
@ -660,14 +665,14 @@ void FormMain::createConnections() {
|
||||
SIGNAL(triggered()), tabWidget()->feedMessageViewer()->feedsView(), SLOT(openSelectedItemsInNewspaperMode()));
|
||||
connect(m_ui->m_actionDeleteSelectedItem,
|
||||
SIGNAL(triggered()), tabWidget()->feedMessageViewer()->feedsView(), SLOT(deleteSelectedItem()));
|
||||
connect(m_ui->m_actionSwitchFeedsList,
|
||||
SIGNAL(triggered()), this, SLOT(switchFeedComponentVisibility()));
|
||||
connect(m_ui->m_actionSwitchFeedsList, &QAction::triggered,
|
||||
tabWidget()->feedMessageViewer(), &FeedMessageViewer::switchFeedComponentVisibility);
|
||||
connect(m_ui->m_actionSelectNextItem,
|
||||
SIGNAL(triggered()), tabWidget()->feedMessageViewer()->feedsView(), SLOT(selectNextItem()));
|
||||
connect(m_ui->m_actionSwitchToolBars,
|
||||
SIGNAL(toggled(bool)), this, SLOT(setToolBarsEnabled(bool)));
|
||||
connect(m_ui->m_actionSwitchListHeaders,
|
||||
SIGNAL(toggled(bool)), this, SLOT(setListHeadersEnabled(bool)));
|
||||
connect(m_ui->m_actionSwitchToolBars, &QAction::toggled,
|
||||
tabWidget()->feedMessageViewer(), &FeedMessageViewer::setToolBarsEnabled);
|
||||
connect(m_ui->m_actionSwitchListHeaders, &QAction::toggled,
|
||||
tabWidget()->feedMessageViewer(), &FeedMessageViewer::setListHeadersEnabled);
|
||||
connect(m_ui->m_actionSelectPreviousItem,
|
||||
SIGNAL(triggered()), tabWidget()->feedMessageViewer()->feedsView(), SLOT(selectPreviousItem()));
|
||||
connect(m_ui->m_actionSelectNextMessage,
|
||||
@ -676,10 +681,10 @@ void FormMain::createConnections() {
|
||||
SIGNAL(triggered()), tabWidget()->feedMessageViewer()->messagesView(), SLOT(selectNextUnreadItem()));
|
||||
connect(m_ui->m_actionSelectPreviousMessage,
|
||||
SIGNAL(triggered()), tabWidget()->feedMessageViewer()->messagesView(), SLOT(selectPreviousItem()));
|
||||
connect(m_ui->m_actionSwitchMessageListOrientation, SIGNAL(triggered()),
|
||||
this, SLOT(switchMessageSplitterOrientation()));
|
||||
connect(m_ui->m_actionShowOnlyUnreadItems, SIGNAL(toggled(bool)),
|
||||
this, SLOT(toggleShowOnlyUnreadFeeds()));
|
||||
connect(m_ui->m_actionSwitchMessageListOrientation, &QAction::triggered,
|
||||
tabWidget()->feedMessageViewer(), &FeedMessageViewer::switchMessageSplitterOrientation);
|
||||
connect(m_ui->m_actionShowOnlyUnreadItems, &QAction::toggled,
|
||||
tabWidget()->feedMessageViewer(), &FeedMessageViewer::toggleShowOnlyUnreadFeeds);
|
||||
connect(m_ui->m_actionRestoreSelectedMessages, SIGNAL(triggered()),
|
||||
tabWidget()->feedMessageViewer()->messagesView(), SLOT(restoreSelectedMessages()));
|
||||
connect(m_ui->m_actionRestoreAllRecycleBins, SIGNAL(triggered()),
|
||||
|
@ -200,8 +200,6 @@ void FeedMessageViewer::createConnections() {
|
||||
// Message changers.
|
||||
connect(m_messagesView, SIGNAL(currentMessageRemoved()), m_messagesBrowser, SLOT(clear()));
|
||||
connect(m_messagesView, SIGNAL(currentMessageChanged(Message,RootItem*)), m_messagesBrowser, SLOT(loadMessage(Message,RootItem*)));
|
||||
connect(m_messagesView, SIGNAL(currentMessageRemoved()), this, SLOT(updateMessageButtonsAvailability()));
|
||||
connect(m_messagesView, SIGNAL(currentMessageChanged(Message,RootItem*)), this, SLOT(updateMessageButtonsAvailability()));
|
||||
connect(m_messagesBrowser, SIGNAL(markMessageRead(int,RootItem::ReadStatus)),
|
||||
m_messagesView->sourceModel(), SLOT(setMessageReadById(int,RootItem::ReadStatus)));
|
||||
connect(m_messagesBrowser, SIGNAL(markMessageImportant(int,RootItem::Importance)),
|
||||
|
@ -72,7 +72,6 @@ class FeedMessageViewer : public TabContent {
|
||||
// Reloads some changeable visual settings.
|
||||
void refreshVisualProperties();
|
||||
|
||||
private slots:
|
||||
// Switches visibility of feed list and related
|
||||
// toolbar.
|
||||
void switchFeedComponentVisibility();
|
||||
|
Loading…
x
Reference in New Issue
Block a user