From 59e064effc34f877a276d67d2db5892471c60b88 Mon Sep 17 00:00:00 2001 From: Just Wonder Date: Sat, 9 May 2020 20:48:52 -0700 Subject: [PATCH] WIP: A temporary fix for value displaying on Mac. --- src/qt/kevadialog.cpp | 3 +++ src/qt/kevatablemodel.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/qt/kevadialog.cpp b/src/qt/kevadialog.cpp index f73853f8a..de4c7701c 100644 --- a/src/qt/kevadialog.cpp +++ b/src/qt/kevadialog.cpp @@ -58,6 +58,9 @@ KevaDialog::KevaDialog(const PlatformStyle *_platformStyle, QWidget *parent) : bookmarks = new KevaBookmarksModel(NULL, NULL); bookmarks->loadBookmarks(); + ui->kevaView->setTextElideMode(Qt::ElideRight); + ui->kevaView->setWordWrap(false); + // context menu contextMenu = new QMenu(this); contextMenu->addAction(copyURIAction); diff --git a/src/qt/kevatablemodel.cpp b/src/qt/kevatablemodel.cpp index 08327be60..c3ea7e9f0 100644 --- a/src/qt/kevatablemodel.cpp +++ b/src/qt/kevatablemodel.cpp @@ -75,6 +75,8 @@ QVariant KevaTableModel::data(const QModelIndex &index, int role) const { if (index.column() == Block) return (int)(Qt::AlignRight|Qt::AlignVCenter); + else if (index.column() == Value) + return (int)(Qt::AlignLeft|Qt::AlignTop); } return QVariant(); }