diff --git a/src/qt/forms/kevabookmarksdialog.ui b/src/qt/forms/kevabookmarksdialog.ui index e0cb77ed2..b237d450d 100644 --- a/src/qt/forms/kevabookmarksdialog.ui +++ b/src/qt/forms/kevabookmarksdialog.ui @@ -33,7 +33,7 @@ Qt::Horizontal - QDialogButtonBox::Save|QDialogButtonBox::Ok|QDialogButtonBox::Cancel + QDialogButtonBox::Save|QDialogButtonBox::Ok|QDialogButtonBox::Close diff --git a/src/qt/kevabookmarksdialog.cpp b/src/qt/kevabookmarksdialog.cpp index 1891274bf..5a91f0862 100644 --- a/src/qt/kevabookmarksdialog.cpp +++ b/src/qt/kevabookmarksdialog.cpp @@ -21,7 +21,7 @@ KevaBookmarksDialog::KevaBookmarksDialog(QWidget *parent) : ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(false); ui->buttonBox->button(QDialogButtonBox::Save)->setText(tr("&Edit")); - connect(ui->buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(reject())); + connect(ui->buttonBox->button(QDialogButtonBox::Close), SIGNAL(clicked()), this, SLOT(reject())); connect(ui->buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(apply())); connect(ui->buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), this, SLOT(rename())); } diff --git a/src/qt/kevadialog.cpp b/src/qt/kevadialog.cpp index de4c7701c..2891aac01 100644 --- a/src/qt/kevadialog.cpp +++ b/src/qt/kevadialog.cpp @@ -60,6 +60,9 @@ KevaDialog::KevaDialog(const PlatformStyle *_platformStyle, QWidget *parent) : ui->kevaView->setTextElideMode(Qt::ElideRight); ui->kevaView->setWordWrap(false); + QHeaderView *verticalHeader = ui->kevaView->verticalHeader(); + verticalHeader->setSectionResizeMode(QHeaderView::Fixed); + verticalHeader->setDefaultSectionSize(36); // context menu contextMenu = new QMenu(this); diff --git a/src/qt/kevatablemodel.cpp b/src/qt/kevatablemodel.cpp index 8fdcddcf0..ea9ce1aa5 100644 --- a/src/qt/kevatablemodel.cpp +++ b/src/qt/kevatablemodel.cpp @@ -76,9 +76,7 @@ QVariant KevaTableModel::data(const QModelIndex &index, int role) const if (index.column() == Block) return (int)(Qt::AlignRight|Qt::AlignVCenter); else if (index.column() == Value) { -#if (QT_VERSION <= QT_VERSION_CHECK(5, 12, 0)) - return (int)(Qt::AlignLeft|Qt::AlignVCenter); -#else +#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) return (int)(Qt::AlignLeft|Qt::AlignTop); #endif }