merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0288-fpicker-kde-too-wide.diff
blob46362dc812e84465ee842fcb2f9953c7400de3bd
1 --- fpicker/source/unx/kde/kdefilepicker.cxx 2006-02-03 13:40:38.838645436 +0100
2 +++ fpicker/source/unx/kde/kdefilepicker.cxx 2006-02-03 13:55:55.918717497 +0100
3 @@ -70,6 +70,7 @@
4 #include <qlayout.h>
5 #include <qobjectlist.h>
6 #include <qpushbutton.h>
7 +#include <qregexp.h>
8 #include <qvbox.h>
10 #ifdef QT_NO_EMIT
11 @@ -553,7 +554,11 @@ void FileDialog::appendFilter( const QSt
12 QString qFilter( rFilter );
13 qFilter.replace( QChar( ';' ), QChar( ' ' ) ).replace( "*.*", "*" );
15 - m_aFilters.push_back( qMakePair( rTitle, qFilter ) );
16 + // Workaround for too wide <All formats> (*.bmp;...) entry
17 + QString qTitle( rTitle );
18 + qTitle.replace( QRegExp( "^<([^>]*)> \\(.*" ), "<\\1>" );
20 + m_aFilters.push_back( qMakePair( qTitle, qFilter ) );
23 QString FileDialog::filters() const