mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Move code to set headline label font to EditWidget.
This commit is contained in:
parent
4751f40c2b
commit
9fc62a1d81
@ -24,6 +24,11 @@ EditWidget::EditWidget(QWidget* parent)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
QFont headerLabelFont = m_ui->headerLabel->font();
|
||||
headerLabelFont.setBold(true);
|
||||
headerLabelFont.setPointSize(headerLabelFont.pointSize() + 2);
|
||||
headlineLabel()->setFont(headerLabelFont);
|
||||
|
||||
connect(m_ui->categoryList, SIGNAL(currentRowChanged(int)),
|
||||
m_ui->stackedWidget, SLOT(setCurrentIndex(int)));
|
||||
|
||||
|
@ -50,11 +50,6 @@ EditEntryWidget::EditEntryWidget(QWidget* parent)
|
||||
, m_iconsWidget(new EditWidgetIcons())
|
||||
, m_historyWidget(new QWidget())
|
||||
{
|
||||
QFont headerLabelFont = headlineLabel()->font();
|
||||
headerLabelFont.setBold(true);
|
||||
headerLabelFont.setPointSize(headerLabelFont.pointSize() + 2);
|
||||
headlineLabel()->setFont(headerLabelFont);
|
||||
|
||||
m_mainUi->setupUi(m_mainWidget);
|
||||
add(tr("Entry"), m_mainWidget);
|
||||
|
||||
|
@ -39,11 +39,6 @@ EditGroupWidget::EditGroupWidget(QWidget* parent)
|
||||
add(tr("Icon"), m_editGroupWidgetIcons);
|
||||
add(tr("Advanced"), m_editGroupWidgetAdvanced);
|
||||
|
||||
QFont labelHeaderFont = headlineLabel()->font();
|
||||
labelHeaderFont.setBold(true);
|
||||
labelHeaderFont.setPointSize(labelHeaderFont.pointSize() + 2);
|
||||
headlineLabel()->setFont(labelHeaderFont);
|
||||
|
||||
m_mainUi->searchComboBox->addItem("Inherit");
|
||||
m_mainUi->searchComboBox->addItem("Enable");
|
||||
m_mainUi->searchComboBox->addItem("Disable");
|
||||
|
Loading…
Reference in New Issue
Block a user