/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the documentation of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercial Usage ** This file contains pre-release code and may not be distributed. ** You may use this file in accordance with the terms and conditions ** contained in the Technology Preview License Agreement accompanying ** this package. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain additional ** rights. These rights are described in the Nokia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** If you have questions regarding the use of this file, please contact ** Nokia at qt-info@nokia.com. ** ** ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ //! [0] QPixmap* pp; QPixmap p; if ((pp=QPixmapCache::find("my_big_image", pm))) { p = *pp; } else { p.load("bigimage.png"); QPixmapCache::insert("my_big_image", new QPixmap(p)); } painter->drawPixmap(0, 0, p); //! [0] //! [1] QPixmap pm; if (!QPixmapCache::find("my_big_image", &pm)) { pm.load("bigimage.png"); QPixmapCache::insert("my_big_image", pm); } painter->drawPixmap(0, 0, pm); //! [1] 3.6.5&id=7e19337ebcc3f1aa0e9697c06d5f778c7b60f588'>diffstats
path: root/Lib
Commit message (Expand)AuthorAgeFilesLines
* Normalize whitespaceAntoine Pitrou2012-06-162-2/+0
* Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels.Antoine Pitrou2012-06-168-426/+1079
* Make the test more resilient to test-run order (closes #15075)Eli Bendersky2012-06-161-8/+20
* Fix "%f" format of str%args if the result is not an ASCII or latin1 stringVictor Stinner2012-06-161-0/+2
* Issue #15006: Allow equality comparison between naive and aware timeAlexander Belopolsky2012-06-162-14/+20
* Issue #14938: importlib.abc.SourceLoader.is_package() now takes theBrett Cannon2012-06-162-3/+6
* Issue #13959: Add to imp.find_module() and load_module's docstringsBrett Cannon2012-06-151-4/+6
* MergeBrett Cannon2012-06-1520-285/+708
|\
| * Removed redundant codeAlexander Belopolsky2012-06-151-4/+2
| * Fix _TestListener.ALLOWED_TYPES and add sanity checkRichard Oudkerk2012-06-151-1/+3
| * Increase timeout used when waiting for manager to shutdown cleanlyRichard Oudkerk2012-06-152-1/+6
| * Fix for 2d2f206d040e so that test_multiprocessing does not depend on ctypesRichard Oudkerk2012-06-151-5/+9
| * #15036: Make a repeated changes and flushes work with single-file mailboxesPetri Lehtinen2012-06-152-0/+12
| |\
| | * #15036: Make a repeated changes and flushes work with single-file mailboxesPetri Lehtinen2012-06-152-0/+12
| * | Issue #14059: Implement multiprocessing.BarrierRichard Oudkerk2012-06-155-7/+406
| * | Issue #15061: Don't oversell the capabilities of the new non-shortcircuiting ...Nick Coghlan2012-06-152-35/+37
| * | Skip XincludeTest entirely instead of just ignoring failures, because it may ...Eli Bendersky2012-06-151-1/+1
| * | Removed _SimpleElementPath and its flaky test. The test monkey-patches the mo...Eli Bendersky2012-06-152-48/+1
| * | mark problematic test as expected failure - investigatingEli Bendersky2012-06-151-2/+6
| * | Replace the iter/itertext methods of Element in _elementtree with true C impl...Eli Bendersky2012-06-153-139/+142
| * | Issue #13841: Make child processes exit using sys.exit() on WindowsRichard Oudkerk2012-06-145-55/+52
| * | merge 3.2Martin v. Löwis2012-06-141-1/+1
| |\ \ | | |/
| | * Issue #14937: Fix typo. Patch by Roger Serwy.Martin v. Löwis2012-06-141-1/+1
| * | Issue #1667546: On platforms supporting tm_zone and tm_gmtoff fieldsAlexander Belopolsky2012-06-143-6/+58
| * | Fix test_time for adjusted/adjustable changesVictor Stinner2012-06-121-6/+2
| * | PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() resultVictor Stinner2012-06-121-6/+6
| * | Issue #3518: Remove references to non-existent BaseManager.from_address()Richard Oudkerk2012-06-111-4/+0
* | | Make a test easier to read.Brett Cannon2012-06-111-4/+3
|/ /
* | Close #13857: Added textwrap.indent() function (initial patch by EzraNick Coghlan2012-06-112-3/+158
* | #15015: Fix accessing an non-existing attribute.Brian Quinlan2012-06-111-2/+2
* | Adding patch.stopall method to unittest.mockMichael Foord2012-06-102-2/+38
* | Small cleanup and optimizationRaymond Hettinger2012-06-101-2/+2
* | Minor reformatting (wrap fat lines, etc.) and create an __main__ fileRaymond Hettinger2012-06-102-51/+53
* | Fix exception when calling reset_mock on a mock created with autospecMichael Foord2012-06-093-0/+18
* | Now that Defects are Exception subclasses, call super.R David Murray2012-06-091-0/+5
* | Relax datetime.timestamp() test around DST changeAlexander Belopolsky2012-06-081-1/+1
* | Relax datetime.timestamp() test around DST changeAlexander Belopolsky2012-06-081-3/+3
* | Issue #2736: Added datetime.timestamp() method.Alexander Belopolsky2012-06-082-1/+46
* | #14814: Remove redundant code from ipaddress.IPv6NetworkHynek Schlawack2012-06-081-13/+1
* | Merge from 3.2, #12510Terry Jan Reedy2012-06-082-70/+131
|\ \ | |/
| * Issue #12510: Revise and triple # of calltip tests, with an eye to unittestTerry Jan Reedy2012-06-072-70/+131
* | Merge fixes for #13854 and #12157.Richard Oudkerk2012-06-073-6/+49
|\ \ | |/
| * Issue #13854: Properly handle non-integer, non-string arg to SystemExitRichard Oudkerk2012-06-06