mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-28 15:54:27 +00:00
Minor UI tweak.
This commit is contained in:
parent
e240dd4dac
commit
38ce352130
@ -33,7 +33,7 @@
|
|||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons">
|
<property name="standardButtons">
|
||||||
<set>QDialogButtonBox::Save|QDialogButtonBox::Ok|QDialogButtonBox::Cancel</set>
|
<set>QDialogButtonBox::Save|QDialogButtonBox::Ok|QDialogButtonBox::Close</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -21,7 +21,7 @@ KevaBookmarksDialog::KevaBookmarksDialog(QWidget *parent) :
|
|||||||
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||||
ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(false);
|
ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(false);
|
||||||
ui->buttonBox->button(QDialogButtonBox::Save)->setText(tr("&Edit"));
|
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::Ok), SIGNAL(clicked()), this, SLOT(apply()));
|
||||||
connect(ui->buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), this, SLOT(rename()));
|
connect(ui->buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), this, SLOT(rename()));
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,9 @@ KevaDialog::KevaDialog(const PlatformStyle *_platformStyle, QWidget *parent) :
|
|||||||
|
|
||||||
ui->kevaView->setTextElideMode(Qt::ElideRight);
|
ui->kevaView->setTextElideMode(Qt::ElideRight);
|
||||||
ui->kevaView->setWordWrap(false);
|
ui->kevaView->setWordWrap(false);
|
||||||
|
QHeaderView *verticalHeader = ui->kevaView->verticalHeader();
|
||||||
|
verticalHeader->setSectionResizeMode(QHeaderView::Fixed);
|
||||||
|
verticalHeader->setDefaultSectionSize(36);
|
||||||
|
|
||||||
// context menu
|
// context menu
|
||||||
contextMenu = new QMenu(this);
|
contextMenu = new QMenu(this);
|
||||||
|
@ -76,9 +76,7 @@ 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) {
|
else if (index.column() == Value) {
|
||||||
#if (QT_VERSION <= QT_VERSION_CHECK(5, 12, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
|
||||||
return (int)(Qt::AlignLeft|Qt::AlignVCenter);
|
|
||||||
#else
|
|
||||||
return (int)(Qt::AlignLeft|Qt::AlignTop);
|
return (int)(Qt::AlignLeft|Qt::AlignTop);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user