1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 02:52:12 +01:00

Fixed width of combo box in Add User Agent dialog.

closes #523
This commit is contained in:
nowrep 2012-08-24 14:55:06 +02:00
parent 7f2bc706de
commit 20c03ba459

View File

@ -183,7 +183,6 @@ bool UserAgentDialog::showEditDialog(const QString &title, QString* rSite, QStri
QComboBox* editAgent = new QComboBox(dialog); QComboBox* editAgent = new QComboBox(dialog);
editAgent->setEditable(true); editAgent->setEditable(true);
editAgent->addItems(m_knownUserAgents); editAgent->addItems(m_knownUserAgents);
editAgent->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength);
QDialogButtonBox* box = new QDialogButtonBox(dialog); QDialogButtonBox* box = new QDialogButtonBox(dialog);
box->addButton(QDialogButtonBox::Ok); box->addButton(QDialogButtonBox::Ok);
@ -206,6 +205,7 @@ bool UserAgentDialog::showEditDialog(const QString &title, QString* rSite, QStri
dialog->setWindowTitle(title); dialog->setWindowTitle(title);
dialog->setMinimumSize(550, 100); dialog->setMinimumSize(550, 100);
dialog->setMaximumWidth(550);
if (dialog->exec()) { if (dialog->exec()) {
*rSite = editSite->text(); *rSite = editSite->text();