Fix completer size

This commit is contained in:
Nicolas Werner 2023-06-19 20:08:10 +02:00
parent 08d5980d40
commit e0e5912b70
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ Control {
// Broken, see https://bugreports.qt.io/browse/QTBUG-102811
//reuseItems: true
implicitWidth: listView.contentItem.childrenRect.width
implicitWidth: Math.max(listView.contentItem.childrenRect.width, 20)
model: completer
pixelAligned: true
spacing: rowSpacing

View file

@ -436,7 +436,7 @@ TimelineViewManager::focusMessageInput()
emit focusInput();
}
QObject *
QAbstractItemModel *
TimelineViewManager::completerFor(const QString &completerName, const QString &roomId)
{
if (completerName == QLatin1String("user")) {

View file

@ -134,7 +134,7 @@ public slots:
void setVideoCallItem();
QObject *completerFor(const QString &completerName,
QAbstractItemModel *completerFor(const QString &completerName,
const QString &roomId = QLatin1String(QLatin1String("")));
void forwardMessageToRoom(mtx::events::collections::TimelineEvents const *e, QString roomId);