Ignore:
Timestamp:
Oct 28, 2009, 10:05:37 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

examples: desktop/systray: Add a test icon containing 16 and 32 px pixmaps for checking that the system tray selects the correct size and doesn't unnecessarily scale icons.

Location:
trunk/examples/desktop/systray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/desktop/systray/systray.qrc

    r2 r263  
    44   <file>images/heart.svg</file>
    55   <file>images/trash.svg</file>
     6   <file>images/test16.xpm</file>
     7   <file>images/test32.xpm</file>
    68</qresource>
    79</RCC>
  • trunk/examples/desktop/systray/window.cpp

    r2 r263  
    161161    iconComboBox->addItem(QIcon(":/images/trash.svg"), tr("Trash"));
    162162
     163    {
     164        QIcon test;
     165        test.addFile(":/images/test16.xpm");
     166        test.addFile(":/images/test32.xpm");
     167        iconComboBox->addItem(test, tr("Test"));
     168    }
     169   
    163170    showIconCheckBox = new QCheckBox(tr("Show icon"));
    164171    showIconCheckBox->setChecked(true);
Note: See TracChangeset for help on using the changeset viewer.