Browse Source

WIP: A temporary fix for value displaying on Mac.

keva-gui
Just Wonder 5 years ago
parent
commit
59e064effc
  1. 3
      src/qt/kevadialog.cpp
  2. 2
      src/qt/kevatablemodel.cpp

3
src/qt/kevadialog.cpp

@ -58,6 +58,9 @@ KevaDialog::KevaDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
bookmarks = new KevaBookmarksModel(NULL, NULL); bookmarks = new KevaBookmarksModel(NULL, NULL);
bookmarks->loadBookmarks(); bookmarks->loadBookmarks();
ui->kevaView->setTextElideMode(Qt::ElideRight);
ui->kevaView->setWordWrap(false);
// context menu // context menu
contextMenu = new QMenu(this); contextMenu = new QMenu(this);
contextMenu->addAction(copyURIAction); contextMenu->addAction(copyURIAction);

2
src/qt/kevatablemodel.cpp

@ -75,6 +75,8 @@ QVariant KevaTableModel::data(const QModelIndex &index, int role) const
{ {
if (index.column() == Block) if (index.column() == Block)
return (int)(Qt::AlignRight|Qt::AlignVCenter); return (int)(Qt::AlignRight|Qt::AlignVCenter);
else if (index.column() == Value)
return (int)(Qt::AlignLeft|Qt::AlignTop);
} }
return QVariant(); return QVariant();
} }

Loading…
Cancel
Save