mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-19 15:05:40 +02:00
qt6: fix startSearch usage
Overload incorrectly managed by Qt 6.5 and we must pass a const ref Change-Id: Ib0a85165b59f6cffd3f01815b803f666623e1b89
This commit is contained in:
parent
bb3011fe62
commit
5f98f7cdc6
3 changed files with 4 additions and 4 deletions
|
@ -47,13 +47,13 @@ ListView {
|
|||
property var prompt: MessagesAdapter.searchbarPrompt
|
||||
|
||||
onPromptChanged: {
|
||||
MessagesAdapter.startSearch(prompt);
|
||||
MessagesAdapter.startSearch(prompt, false);
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: researchTabBar
|
||||
function onFilterTabChange() {
|
||||
MessagesAdapter.startSearch(prompt);
|
||||
MessagesAdapter.startSearch(prompt, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -733,7 +733,7 @@ MessagesAdapter::getFormattedDay(const quint64 timestamp)
|
|||
}
|
||||
|
||||
void
|
||||
MessagesAdapter::startSearch(QString& text, bool isMedia)
|
||||
MessagesAdapter::startSearch(const QString& text, bool isMedia)
|
||||
{
|
||||
mediaInteractions_.reset(new MessageListModel(this));
|
||||
set_mediaMessageListModel(QVariant::fromValue(mediaInteractions_.get()));
|
||||
|
|
|
@ -132,7 +132,7 @@ protected:
|
|||
Q_INVOKABLE QVariantMap getTransferStats(const QString& messageId, int);
|
||||
Q_INVOKABLE QVariant dataForInteraction(const QString& interactionId,
|
||||
int role = Qt::DisplayRole) const;
|
||||
Q_INVOKABLE void startSearch(QString& text, bool isMedia = false);
|
||||
Q_INVOKABLE void startSearch(const QString& text, bool isMedia);
|
||||
Q_INVOKABLE int getMessageIndexFromId(QString& id);
|
||||
|
||||
// Run corrsponding js functions, c++ to qml.
|
||||
|
|
Loading…
Add table
Reference in a new issue