mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix completer size
This commit is contained in:
parent
08d5980d40
commit
e0e5912b70
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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")) {
|
||||||
|
|
|
@ -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_; }
|
||||||
|
|
Loading…
Reference in a new issue