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 // Broken, see https://bugreports.qt.io/browse/QTBUG-102811
//reuseItems: true //reuseItems: true
implicitWidth: listView.contentItem.childrenRect.width implicitWidth: Math.max(listView.contentItem.childrenRect.width, 20)
model: completer model: completer
pixelAligned: true pixelAligned: true
spacing: rowSpacing spacing: rowSpacing

View file

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

View file

@ -134,8 +134,8 @@ public slots:
void setVideoCallItem(); void setVideoCallItem();
QObject *completerFor(const QString &completerName, QAbstractItemModel *completerFor(const QString &completerName,
const QString &roomId = QLatin1String(QLatin1String(""))); const QString &roomId = QLatin1String(QLatin1String("")));
void forwardMessageToRoom(mtx::events::collections::TimelineEvents const *e, QString roomId); void forwardMessageToRoom(mtx::events::collections::TimelineEvents const *e, QString roomId);
RoomlistModel *rooms() { return rooms_; } RoomlistModel *rooms() { return rooms_; }