1
0
Fork 0
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:
Mike Gelfand 2016-03-15 21:25:46 +00:00
parent cc1f6f3a5c
commit 7fb8708efd

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