Fix some compilation issues.
This commit is contained in:
parent
b293ae3008
commit
f55c9bad56
@ -213,10 +213,17 @@ void FeedMessageViewer::createConnections() {
|
|||||||
connect(m_messagesView, &MessagesView::currentMessageRemoved, m_messagesBrowser, &MessagePreviewer::clear);
|
connect(m_messagesView, &MessagesView::currentMessageRemoved, m_messagesBrowser, &MessagePreviewer::clear);
|
||||||
connect(m_messagesView, &MessagesView::currentMessageChanged, m_messagesBrowser, &MessagePreviewer::loadMessage);
|
connect(m_messagesView, &MessagesView::currentMessageChanged, m_messagesBrowser, &MessagePreviewer::loadMessage);
|
||||||
|
|
||||||
|
#if defined(USE_WEBENGINE)
|
||||||
|
connect(m_messagesBrowser, &WebBrowser::markMessageRead,
|
||||||
|
m_messagesView->sourceModel(), &MessagesModel::setMessageReadById);
|
||||||
|
connect(m_messagesBrowser, &WebBrowser::markMessageImportant,
|
||||||
|
m_messagesView->sourceModel(), &MessagesModel::setMessageImportantById);
|
||||||
|
#else
|
||||||
connect(m_messagesBrowser, &MessagePreviewer::markMessageRead,
|
connect(m_messagesBrowser, &MessagePreviewer::markMessageRead,
|
||||||
m_messagesView->sourceModel(), &MessagesModel::setMessageReadById);
|
m_messagesView->sourceModel(), &MessagesModel::setMessageReadById);
|
||||||
connect(m_messagesBrowser, &MessagePreviewer::markMessageImportant,
|
connect(m_messagesBrowser, &MessagePreviewer::markMessageImportant,
|
||||||
m_messagesView->sourceModel(), &MessagesModel::setMessageImportantById);
|
m_messagesView->sourceModel(), &MessagesModel::setMessageImportantById);
|
||||||
|
#endif
|
||||||
|
|
||||||
// If user selects feeds, load their messages.
|
// If user selects feeds, load their messages.
|
||||||
connect(m_feedsView, &FeedsView::itemSelected, m_messagesView, &MessagesView::loadItem);
|
connect(m_feedsView, &FeedsView::itemSelected, m_messagesView, &MessagesView::loadItem);
|
||||||
|
@ -76,7 +76,7 @@ GoogleSuggest::GoogleSuggest(LocationLineEdit *editor, QObject *parent)
|
|||||||
|
|
||||||
connect(popup.data(), &QListWidget::itemClicked, this, &GoogleSuggest::doneCompletion);
|
connect(popup.data(), &QListWidget::itemClicked, this, &GoogleSuggest::doneCompletion);
|
||||||
connect(timer, &QTimer::timeout, this, &GoogleSuggest::autoSuggest);
|
connect(timer, &QTimer::timeout, this, &GoogleSuggest::autoSuggest);
|
||||||
connect(editor, &LocationLineEdit::textEdited, timer, &QTimer::start);
|
connect(editor, &LocationLineEdit::textEdited, timer, static_cast<void (QTimer::*)()>(&QTimer::start));
|
||||||
}
|
}
|
||||||
|
|
||||||
GoogleSuggest::~GoogleSuggest() {
|
GoogleSuggest::~GoogleSuggest() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user