author | mickeyl <mickeyl> | 2005-07-03 21:12:58 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-07-03 21:12:58 (UTC) |
commit | 47011752d4457a1055894479e5bf855e100fddac (patch) (side-by-side diff) | |
tree | d986b103f0023b990c02c208fc527d90f7c79ce3 /libopie2/opieui | |
parent | 27bee477e2689d9b37d2d4cabce05c8d55295ebd (diff) | |
download | opie-47011752d4457a1055894479e5bf855e100fddac.zip opie-47011752d4457a1055894479e5bf855e100fddac.tar.gz opie-47011752d4457a1055894479e5bf855e100fddac.tar.bz2 |
remove hard coded scaling of 'UnknownDocument' icon (and restore header, btw.)
-rw-r--r-- | libopie2/opieui/fileselector/ofiledialog.cpp | 4 | ||||
-rw-r--r-- | libopie2/opieui/fileselector/ofileselector.cpp | 56 |
2 files changed, 26 insertions, 34 deletions
diff --git a/libopie2/opieui/fileselector/ofiledialog.cpp b/libopie2/opieui/fileselector/ofiledialog.cpp index 2d38961..11a9e33 100644 --- a/libopie2/opieui/fileselector/ofiledialog.cpp +++ b/libopie2/opieui/fileselector/ofiledialog.cpp @@ -6,8 +6,8 @@ .> <`_, > . <= redistribute it and/or modify it under :`=1 )Y*s>-.-- : the terms of the GNU Library General Public .="- .-=="i, .._ License as published by the Free Software - - . .-<_> .<> Foundation; either version 2 of the License, - ._= =} : or (at your option) any later version. + - . .-<_> .<> Foundation; version 2 of the License. + ._= =} : .%`+i> _;_. .i_,=:_. -<s. This library is distributed in the hope that + . -:. = it will be useful, but WITHOUT ANY WARRANTY; diff --git a/libopie2/opieui/fileselector/ofileselector.cpp b/libopie2/opieui/fileselector/ofileselector.cpp index 02404e5..5b5dc2f 100644 --- a/libopie2/opieui/fileselector/ofileselector.cpp +++ b/libopie2/opieui/fileselector/ofileselector.cpp @@ -1,31 +1,29 @@ /* - Â Â Â Â Â Â Â Â This file is part of the Opie Project - - Copyright (C) 2002,2003 Holger Freyther <zecke@handhelds.org> - =. - .=l. -Â Â Â Â Â Â .>+-= -Â _;:, Â Â .> Â Â :=|. This program is free software; you can -.> <`_, Â > Â . Â <= redistribute it and/or modify it under -:`=1 )Y*s>-.-- Â : the terms of the GNU Library General Public -.="- .-=="i, Â Â .._ License as published by the Free Software -Â - . Â .-<_> Â Â .<> Foundation; either version 2 of the License, -Â Â Â ._= =} Â Â Â : or (at your option) any later version. -Â Â .%`+i> Â Â Â _;_. -Â Â .i_,=:_. Â Â Â -<s. This program is distributed in the hope that -Â Â Â + Â . Â -:. Â Â Â = it will be useful, but WITHOUT ANY WARRANTY; - : .. Â Â .:, Â Â . . . without even the implied warranty of -Â Â =_ Â Â Â Â + Â Â =;=|` MERCHANTABILITY or FITNESS FOR A -Â _.=:. Â Â Â : Â Â :=>`: PARTICULAR PURPOSE. See the GNU -..}^=.= Â Â Â = Â Â Â ; Library General Public License for more -++= Â -. Â Â .` Â Â .: details. - : Â Â = Â ...= . :.=- -Â -. Â .:....=;==+<; You should have received a copy of the GNU -Â -_. . . Â )=. Â = Library General Public License along with -Â Â -- Â Â Â Â :-=` this library; see the file COPYING.LIB. + =. This file is part of the OPIE Project + .=l. Copyright (C) Holger Freyther <freyther@handhelds.org> + .>+-= + _;:, .> :=|. This library is free software; you can +.> <`_, > . <= redistribute it and/or modify it under + :`=1 )Y*s>-.-- : the terms of the GNU Library General Public +.="- .-=="i, .._ License as published by the Free Software + - . .-<_> .<> Foundation; version 2 of the License. + ._= =} : + .%`+i> _;_. + .i_,=:_. -<s. This library is distributed in the hope that + + . -:. = it will be useful, but WITHOUT ANY WARRANTY; + : .. .:, . . . without even the implied warranty of + =_ + =;=|` MERCHANTABILITY or FITNESS FOR A + _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU +..}^=.= = ; Library General Public License for more +++= -. .` .: details. + : = ...= . :.=- + -. .:....=;==+<; You should have received a copy of the GNU + -_. . . )=. = Library General Public License along with + -- :-=` this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ /* hacky but we need to get FileSelector::filter */ @@ -631,13 +629,7 @@ void OFileViewFileListView::addFile( QFileInfo* info, bool symlink ) QPixmap pix = type.pixmap(); QString dir, name; bool locked; - if ( pix.isNull() ) - { - QWMatrix matrix; - QPixmap pixer( Opie::Core::OResource::loadPixmap( "UnknownDocument" ) ); - matrix.scale( .4, .4 ); - pix = pixer.xForm( matrix ); - } + if ( pix.isNull() ) pix = Opie::Core::OResource::loadPixmap( "UnknownDocument", Opie::Core::OResource::SmallIcon ); dir = info->dirPath( true ); locked = false; if ( symlink ) @@ -649,7 +641,7 @@ void OFileViewFileListView::addFile( QFileInfo* info, bool symlink ) ( (selector()->mode() == OFileSelector::Save)&& !info->isWritable() ) ) { locked = true; - pix = Opie::Core::OResource::loadPixmap( "locked" ); + pix = Opie::Core::OResource::loadPixmap( "locked", Opie::Core::OResource::SmallIcon ); } } (void)new OFileSelectorItem( m_view, pix, name, |