fpicker-kde-too-wide.diff: Fix a too wide dialog.

"Menu -> Insert -> Picture -> From File..." dialog - n#72010.
This commit is contained in:
Jan Holesovsky 2010-08-25 17:51:58 +02:00
parent 35c0fb32cc
commit f7a29d379e

View file

@ -36,6 +36,7 @@
#include <qlayout.h>
#include <qobjectlist.h>
#include <qpushbutton.h>
#include <qregexp.h>
#include <qvbox.h>
#ifdef QT_NO_EMIT
@ -517,7 +518,11 @@ void FileDialog::appendFilter( const QString &rTitle, const QString &rFilter )
QString qFilter( rFilter );
qFilter.replace( QChar( ';' ), QChar( ' ' ) ).replace( "*.*", "*" );
m_aFilters.push_back( qMakePair( rTitle, qFilter ) );
// Workaround for too wide <All formats> (*.bmp;...) entry
QString qTitle( rTitle );
qTitle.replace( QRegExp( "^<([^>]*)> \\(.*" ), "<\\1>" );
m_aFilters.push_back( qMakePair( qTitle, qFilter ) );
}
QString FileDialog::filters() const