Commit 99be7550 authored by Alexander Volkov's avatar Alexander Volkov
Browse files

Always adjust IntMapComboBox to contents

Summary:
By default combobox adjusts to its contents the first time it is shown.
IntMapComboBox is used, for example, to show available speeds to burn,
which are added to the combobox after it is shown, and thus can be
displayed cropped.

Reviewers: aacid

Reviewed By: aacid

Differential Revision: https://phabricator.kde.org/D26209
parent c4547ef5
...@@ -71,6 +71,8 @@ K3b::IntMapComboBox::IntMapComboBox( QWidget* parent ) ...@@ -71,6 +71,8 @@ K3b::IntMapComboBox::IntMapComboBox( QWidget* parent )
this, SLOT(slotItemHighlighted(int)) ); this, SLOT(slotItemHighlighted(int)) );
connect( this, SIGNAL(activated(int)), connect( this, SIGNAL(activated(int)),
this, SLOT(slotItemActivated(int)) ); this, SLOT(slotItemActivated(int)) );
setSizeAdjustPolicy(QComboBox::AdjustToContents);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment