mirror of
https://github.com/transmission/transmission
synced 2025-01-01 12:35:22 +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);
|
h->addWidget (myCountLabel);
|
||||||
|
|
||||||
myActivityCombo = createActivityCombo ();
|
myActivityCombo = createActivityCombo ();
|
||||||
myActivityCombo->setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
|
|
||||||
h->addWidget (myActivityCombo);
|
h->addWidget (myActivityCombo);
|
||||||
|
|
||||||
myTrackerModel = new QStandardItemModel (this);
|
myTrackerModel = new QStandardItemModel (this);
|
||||||
myTrackerCombo = createTrackerCombo (myTrackerModel);
|
myTrackerCombo = createTrackerCombo (myTrackerModel);
|
||||||
h->addWidget (myTrackerCombo);
|
h->addWidget (myTrackerCombo);
|
||||||
|
|
||||||
|
h->addStretch ();
|
||||||
|
|
||||||
myLineEdit = new FilterBarLineEdit (this);
|
myLineEdit = new FilterBarLineEdit (this);
|
||||||
h->addWidget (myLineEdit);
|
myLineEdit->setMaximumWidth (250);
|
||||||
|
h->addWidget (myLineEdit, 1);
|
||||||
connect (myLineEdit, SIGNAL (textChanged (QString)), this, SLOT (onTextChanged (QString)));
|
connect (myLineEdit, SIGNAL (textChanged (QString)), this, SLOT (onTextChanged (QString)));
|
||||||
|
|
||||||
// listen for changes from the other players
|
// listen for changes from the other players
|
||||||
|
|
Loading…
Reference in a new issue