From 01c619973ed440a457a8a3b38684506743ad72b8 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 14 Sep 2012 09:41:26 -0500 Subject: Make KFileDialog fit on the screen when a large filter string or URL is provided --- kio/kfile/kfiledialog.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kio') diff --git a/kio/kfile/kfiledialog.cpp b/kio/kfile/kfiledialog.cpp index f9086cff7..1d364e9b7 100644 --- a/kio/kfile/kfiledialog.cpp +++ b/kio/kfile/kfiledialog.cpp @@ -992,6 +992,7 @@ void KFileDialog::init(const TQString& startDir, const TQString& filter, TQWidge d->locationLabel = new TQLabel(i18n("&Location:"), d->mainWidget); locationEdit = new KURLComboBox(KURLComboBox::Files, true, d->mainWidget, "LocationEdit"); + locationEdit->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); connect( locationEdit, TQT_SIGNAL( textChanged( const TQString& ) ), TQT_SLOT( slotLocationChanged( const TQString& )) ); @@ -1024,6 +1025,7 @@ void KFileDialog::init(const TQString& startDir, const TQString& filter, TQWidge TQWhatsThis::add(d->filterLabel, whatsThisText); filterWidget = new KFileFilterCombo(d->mainWidget, "KFileDialog::filterwidget"); + filterWidget->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); TQWhatsThis::add(filterWidget, whatsThisText); setFilter(filter); d->filterLabel->setBuddy(filterWidget); -- cgit v1.2.1