User Tools

Site Tools


qt:mainwindow-buildicon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
qt:mainwindow-buildicon [2011/05/13 12:24] mithatqt:mainwindow-buildicon [2011/05/13 12:32] (current) mithat
Line 16: Line 16:
  *  *
  * Does NOT check whether the referenced resources actually exist.  * Does NOT check whether the referenced resources actually exist.
 + *
 + * @param theIcon Pointer to the icon that will be built/appened to.
 + * @param iconRscTemplate A tag-based template string for the icon resource.
 +                        Two tags are recognized in iconRscTemplate: \%size\%
 +                        and \%dim\%. When the iconRscTemplate is expanded, the
 +                        tag \%dim\% will be replaced by {iconSize} and
 +                        \%size\% will be replaced by {iconSize}x{iconSize},
 +                        where {iconSize} is a string cast of an element in
 +                        sizeList.
 + * @param sizeList A list of single-dimension sizes to be added to the icon.
  *  *
  * @return void  * @return void
  */  */
-void MainWindow::buildIcon(QIcon* const theIcon,           ///< Pointer to the icon that will be built/appened to. +void MainWindow::buildIcon(QIcon* const theIcon, 
-                           QString const &iconRscTemplate, ///< A tag-based template string for the icon resource. Two tags are recognized in iconRscTemplate: \%size\% and \%dim\%. When the iconRscTemplate is expanded, the tag \%dim\% will be replaced by {iconSize} and \%size\% will be replaced by {iconSize}x{iconSize}, where {iconSize} is a string cast of an element in sizeList. +                           QString const &iconRscTemplate, 
-                           QList<int> const &sizeList      ///< A list of single-dimension sizes to be added to the icon. +                           QList<int> const &sizeList)
-                          )+
 { {
     foreach (const int iconSize, sizeList)     foreach (const int iconSize, sizeList)
qt/mainwindow-buildicon.1305289486.txt.gz · Last modified: 2011/05/13 12:24 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki