Fix completer size

pull/1500/head
Nicolas Werner 1 year ago
parent 08d5980d40
commit e0e5912b70
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      resources/qml/Completer.qml
  2. 2
      src/timeline/TimelineViewManager.cpp
  3. 4
      src/timeline/TimelineViewManager.h

@ -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

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

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

Loading…
Cancel
Save