diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-08-25 17:51:58 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-08-26 12:54:54 +0200 |
commit | f7a29d379e3ba01d4a73c7cf5db8c4f1a32d6837 (patch) | |
tree | 02d107041c1f70500cf362d0da7daf99d3a97cb4 /fpicker | |
parent | 35c0fb32cca60376bc55871eb04948b86870d04d (diff) |
fpicker-kde-too-wide.diff: Fix a too wide dialog.
"Menu -> Insert -> Picture -> From File..." dialog - n#72010.
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/unx/kde/kdefilepicker.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fpicker/source/unx/kde/kdefilepicker.cxx b/fpicker/source/unx/kde/kdefilepicker.cxx index 2f55a29d8101..4416cfbb7107 100644 --- a/fpicker/source/unx/kde/kdefilepicker.cxx +++ b/fpicker/source/unx/kde/kdefilepicker.cxx @@ -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 |