mirror of
https://github.com/transmission/transmission
synced 2024-12-29 11:06:23 +00:00
Only grow filter input up to 250px width, then stick to the right
This commit is contained in:
parent
cc1f6f3a5c
commit
7fb8708efd
1 changed files with 4 additions and 2 deletions
|
@ -234,15 +234,17 @@ FilterBar::FilterBar (Prefs& prefs, const TorrentModel& torrents, const TorrentF
|
|||
h->addWidget (myCountLabel);
|
||||
|
||||
myActivityCombo = createActivityCombo ();
|
||||
myActivityCombo->setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
|
||||
h->addWidget (myActivityCombo);
|
||||
|
||||
myTrackerModel = new QStandardItemModel (this);
|
||||
myTrackerCombo = createTrackerCombo (myTrackerModel);
|
||||
h->addWidget (myTrackerCombo);
|
||||
|
||||
h->addStretch ();
|
||||
|
||||
myLineEdit = new FilterBarLineEdit (this);
|
||||
h->addWidget (myLineEdit);
|
||||
myLineEdit->setMaximumWidth (250);
|
||||
h->addWidget (myLineEdit, 1);
|
||||
connect (myLineEdit, SIGNAL (textChanged (QString)), this, SLOT (onTextChanged (QString)));
|
||||
|
||||
// listen for changes from the other players
|
||||
|
|
Loading…
Reference in a new issue