mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2026-09-15 03:42:30 +00:00
The line height of decoder select pannel
This commit is contained in:
@@ -102,6 +102,9 @@ void SearchComboBox::ShowDlg(QWidget *editline)
|
||||
listLay->setSpacing(0);
|
||||
listLay->setAlignment(Qt::AlignTop);
|
||||
|
||||
QFont font = this->font();
|
||||
font.setPointSizeF(AppConfig::Instance().appOptions.fontSize);
|
||||
|
||||
for(auto o : _items)
|
||||
{
|
||||
ComboButtonItem *bt = new ComboButtonItem(panel, this, o);
|
||||
@@ -110,7 +113,9 @@ void SearchComboBox::ShowDlg(QWidget *editline)
|
||||
bt->setMaximumWidth(w - 20);
|
||||
bt->setMinimumWidth(w - 20);
|
||||
o->_control = bt;
|
||||
listLay->addWidget(bt);
|
||||
bt->setFont(font);
|
||||
|
||||
listLay->addWidget(bt);
|
||||
}
|
||||
|
||||
_scroll = new QScrollArea(panel);
|
||||
@@ -133,10 +138,6 @@ void SearchComboBox::ShowDlg(QWidget *editline)
|
||||
connect(edit, SIGNAL(textEdited(const QString &)),
|
||||
this, SLOT(on_keyword_changed(const QString &)));
|
||||
|
||||
QFont font = this->font();
|
||||
font.setPointSizeF(AppConfig::Instance().appOptions.fontSize);
|
||||
ui::set_form_font(this, font);
|
||||
|
||||
this->show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user