[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#593626: [libqt4-dev] QT bug? "printer" icon too large when loaded from gnome icon theme (minimal source sample included)



Package: libqt4-dev
Version: 4:4.6.3-1
Severity: normal

--- Please enter the report below this line. ---
I get an icon which is too large when loading the printer icon from the gnome 
default theme. I'm asking for a 64x64 icon but get 256x256. 

Source code:

#include <QtGui/QApplication>
#include <QtGui/QIcon>
#include <cstdio>
int main(int argc, char ** argv)
{
  QApplication* app = new QApplication(argc, argv);
  QIcon::setThemeName("gnome");
  QIcon iconPrinter = QIcon::fromTheme("printer");
  QPixmap picPrinter = iconPrinter.pixmap(64);
  printf("Pixmap size is %d x %d.\n",picPrinter.width(),picPrinter.height());
}

Compile with: g++ -I/usr/include/qt4/ -lQtCore -lQtGui testcode.cpp

I get the result: "Pixmap size is 256 x 256."

While documentation promises...
"QPixmap QIcon::pixmap ( int extent, Mode mode = Normal, State state = Off ) 
const [...] Returns a pixmap of size QSize(extent, extent). The pixmap might 
be smaller than requested, but never larger."

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.32-4-amd64

Debian Release: squeeze/sid
   50 unstable        ftp.uni-kl.de 
   50 unstable        ftp.de.debian.org 
  150 testing         security.eu.debian.org 
  150 testing         ftp.uni-kl.de 
  150 testing         ftp.de.debian.org 
  150 stable          security.eu.debian.org 
  150 stable          ftp.uni-kl.de 

--- Package information. ---
Depends                    (Version) | Installed
====================================-+-==============
libc6                       (>= 2.3) | 2.11.2-2
libgcc1                 (>= 1:4.1.1) | 1:4.4.4-8
libqt4-dbus            (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-qt3support      (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-xml             (= 4:4.6.3-1) | 4:4.6.3-1
libqtcore4             (= 4:4.6.3-1) | 4:4.6.3-1
libqtgui4              (= 4:4.6.3-1) | 4:4.6.3-1
libstdc++6                (>= 4.2.1) | 4.4.4-8
zlib1g                  (>= 1:1.1.4) | 1:1.2.3.4.dfsg-3
libqt4-network         (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-svg             (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-webkit          (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-sql             (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-script          (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-scripttools     (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-xmlpatterns     (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-designer        (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-help            (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-assistant       (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-test            (= 4:4.6.3-1) | 4:4.6.3-1
libqt4-multimedia      (= 4:4.6.3-1) | 4:4.6.3-1
qt4-qmake              (= 4:4.6.3-1) | 4:4.6.3-1


Recommends                (Version) | Installed
===================================-+-==============
libqt4-opengl-dev     (= 4:4.6.3-1) | 4:4.6.3-1


Suggests                (Version) | Installed
=================================-+-===========
qt4-dev-tools                     | 4:4.6.3-1
qt4-doc                           | 
libmysqlclient-dev                | 5.1.49-1
libsqlite0-dev                    | 2.8.17-6
libsqlite3-dev                    | 3.7.0-1.1
libpq-dev                         | 
unixodbc-dev                      | 
firebird2.1-dev                   | 




Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: