Only grow filter input up to 250px width, then stick to the right

This commit is contained in:
Mike Gelfand 2016-03-15 21:25:46 +00:00
parent cc1f6f3a5c
commit 7fb8708efd
1 changed files with 4 additions and 2 deletions

View File

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