From 47011752d4457a1055894479e5bf855e100fddac Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sun, 03 Jul 2005 21:12:58 +0000 Subject: remove hard coded scaling of 'UnknownDocument' icon (and restore header, btw.) --- (limited to 'libopie2') 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_,=:_.      - - =. - .=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_,=:_.      -`: 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 +           .>+-= + _;:,     .>    :=|. 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_,=:_.      -`: 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, -- cgit v0.9.0.2