Move code to set headline label font to EditWidget.

This commit is contained in:
Felix Geyer 2012-05-27 10:35:49 +02:00
parent 4751f40c2b
commit 9fc62a1d81
3 changed files with 5 additions and 10 deletions

View File

@ -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)));

View File

@ -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);

View File

@ -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");