summaryrefslogtreecommitdiffstats
path: root/kio/kfile
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-14 09:41:26 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-14 09:42:57 -0500
commit01c619973ed440a457a8a3b38684506743ad72b8 (patch)
treece4e4b8916b652c3e2930fb70ae065a9ed76589f /kio/kfile
parent2b586b805722f55f80155cd1df5ece2e79747964 (diff)
downloadtdelibs-01c619973ed440a457a8a3b38684506743ad72b8.tar.gz
tdelibs-01c619973ed440a457a8a3b38684506743ad72b8.zip
Make KFileDialog fit on the screen when a large filter string or URL is provided
Diffstat (limited to 'kio/kfile')
-rw-r--r--kio/kfile/kfiledialog.cpp2
1 files changed, 2 insertions, 0 deletions
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);