Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (3 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_dyngrid_layout.cpp

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    99
    1010#include "qwt_dyngrid_layout.h"
    11 #include "qwt_math.h"
     11
    1212#include <qvector.h>
    1313#include <qlist.h>
    … …  
    1515class QwtDynGridLayout::PrivateData
    1616{
    17 public:
    18     PrivateData():
    19         isDirty( true )
     17  public:
     18    PrivateData()
     19        : isDirty( true )
    2020    {
    2121    }
    … …  
    2323    void updateLayoutCache();
    2424
    25     mutable QList<QLayoutItem*> itemList;
     25    mutable QList< QLayoutItem* > itemList;
    2626
    2727    uint maxColumns;
    … …  
    3232
    3333    bool isDirty;
    34     QVector<QSize> itemSizeHints;
     34    QVector< QSize > itemSizeHints;
    3535};
    3636
    … …  
    4141    int index = 0;
    4242
    43     for ( QList<QLayoutItem*>::iterator it = itemList.begin();
    44         it != itemList.end(); ++it, index++ )
     43    for ( QList< QLayoutItem* >::const_iterator it = itemList.constBegin();
     44        it != itemList.constEnd(); ++it, index++ )
    4545    {
    4646        itemSizeHints[ index ] = ( *it )->sizeHint();
    … …  
    5151
    5252/*!
    53   \param parent Parent widget
    54   \param margin Margin
    55   \param spacing Spacing
    56 */
    57 
    58 QwtDynGridLayout::QwtDynGridLayout( QWidget *parent,
    59         int margin, int spacing ):
    60     QLayout( parent )
     53   \param parent Parent widget
     54   \param margin Margin
     55   \param spacing Spacing
     56 */
     57
     58QwtDynGridLayout::QwtDynGridLayout( QWidget* parent, int margin, int spacing )
     59    : QLayout( parent )
    6160{
    6261    init();
    6362
    6463    setSpacing( spacing );
    65     setMargin( margin );
    66 }
    67 
    68 /*!
    69   \param spacing Spacing
    70 */
     64    setContentsMargins( margin, margin, margin, margin );
     65}
     66
     67/*!
     68   \param spacing Spacing
     69 */
    7170
    7271QwtDynGridLayout::QwtDynGridLayout( int spacing )
    … …  
    7776
    7877/*!
    79   Initialize the layout with default values.
    80 */
     78   Initialize the layout with default values.
     79 */
    8180void QwtDynGridLayout::init()
    8281{
    83     d_data = new QwtDynGridLayout::PrivateData;
    84     d_data->maxColumns = d_data->numRows = d_data->numColumns = 0;
    85     d_data->expanding = 0;
     82    m_data = new QwtDynGridLayout::PrivateData;
     83    m_data->maxColumns = m_data->numRows = m_data->numColumns = 0;
    8684}
    8785
    … …  
    9088QwtDynGridLayout::~QwtDynGridLayout()
    9189{
    92     for ( int i = 0; i < d_data->itemList.size(); i++ )
    93         delete d_data->itemList[i];
    94 
    95     delete d_data;
     90    qDeleteAll( m_data->itemList );
     91    delete m_data;
    9692}
    9793
    … …  
    9995void QwtDynGridLayout::invalidate()
    10096{
    101     d_data->isDirty = true;
     97    m_data->isDirty = true;
    10298    QLayout::invalidate();
    10399}
    104100
    105101/*!
    106   Limit the number of columns.
    107   \param maxColumns upper limit, 0 means unlimited
    108   \sa maxColumns()
    109 */
     102   Limit the number of columns.
     103   \param maxColumns upper limit, 0 means unlimited
     104   \sa maxColumns()
     105 */
    110106void QwtDynGridLayout::setMaxColumns( uint maxColumns )
    111107{
    112     d_data->maxColumns = maxColumns;
    113 }
    114 
    115 /*!
    116   \brief Return the upper limit for the number of columns.
    117 
    118   0 means unlimited, what is the default.
    119 
    120   \return Upper limit for the number of columns
    121   \sa setMaxColumns()
    122 */
     108    m_data->maxColumns = maxColumns;
     109}
     110
     111/*!
     112   \brief Return the upper limit for the number of columns.
     113
     114   0 means unlimited, what is the default.
     115
     116   \return Upper limit for the number of columns
     117   \sa setMaxColumns()
     118 */
    123119uint QwtDynGridLayout::maxColumns() const
    124120{
    125     return d_data->maxColumns;
    126 }
    127 
    128 /*!
    129   \brief Add an item to the next free position.
    130   \param item Layout item
    131  */
    132 void QwtDynGridLayout::addItem( QLayoutItem *item )
    133 {
    134     d_data->itemList.append( item );
     121    return m_data->maxColumns;
     122}
     123
     124/*!
     125   \brief Add an item to the next free position.
     126   \param item Layout item
     127 */
     128void QwtDynGridLayout::addItem( QLayoutItem* item )
     129{
     130    m_data->itemList.append( item );
    135131    invalidate();
    136132}
    137133
    138134/*!
    139   \return true if this layout is empty.
    140 */
     135   \return true if this layout is empty.
     136 */
    141137bool QwtDynGridLayout::isEmpty() const
    142138{
    143     return d_data->itemList.isEmpty();
    144 }
    145 
    146 /*!
    147   \return number of layout items
    148 */
     139    return m_data->itemList.isEmpty();
     140}
     141
     142/*!
     143   \return number of layout items
     144 */
    149145uint QwtDynGridLayout::itemCount() const
    150146{
    151     return d_data->itemList.count();
    152 }
    153 
    154 /*!
    155   Find the item at a specific index
    156 
    157   \param index Index
    158   \return Item at a specific index
    159   \sa takeAt()
    160 */
    161 QLayoutItem *QwtDynGridLayout::itemAt( int index ) const
    162 {
    163     if ( index < 0 || index >= d_data->itemList.count() )
     147    return m_data->itemList.count();
     148}
     149
     150/*!
     151   Find the item at a specific index
     152
     153   \param index Index
     154   \return Item at a specific index
     155   \sa takeAt()
     156 */
     157QLayoutItem* QwtDynGridLayout::itemAt( int index ) const
     158{
     159    if ( index < 0 || index >= m_data->itemList.count() )
    164160        return NULL;
    165161
    166     return d_data->itemList.at( index );
    167 }
    168 
    169 /*!
    170   Find the item at a specific index and remove it from the layout
    171 
    172   \param index Index
    173   \return Layout item, removed from the layout
    174   \sa itemAt()
    175 */
    176 QLayoutItem *QwtDynGridLayout::takeAt( int index )
    177 {
    178     if ( index < 0 || index >= d_data->itemList.count() )
     162    return m_data->itemList.at( index );
     163}
     164
     165/*!
     166   Find the item at a specific index and remove it from the layout
     167
     168   \param index Index
     169   \return Layout item, removed from the layout
     170   \sa itemAt()
     171 */
     172QLayoutItem* QwtDynGridLayout::takeAt( int index )
     173{
     174    if ( index < 0 || index >= m_data->itemList.count() )
    179175        return NULL;
    180176
    181     d_data->isDirty = true;
    182     return d_data->itemList.takeAt( index );
     177    m_data->isDirty = true;
     178    return m_data->itemList.takeAt( index );
    183179}
    184180
    … …  
    186182int QwtDynGridLayout::count() const
    187183{
    188     return d_data->itemList.count();
    189 }
    190 
    191 /*!
    192   Set whether this layout can make use of more space than sizeHint().
    193   A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only
    194   one dimension, while Qt::Vertical | Qt::Horizontal means that it wants
    195   to grow in both dimensions. The default value is 0.
    196 
    197   \param expanding Or'd orientations
    198   \sa expandingDirections()
    199 */
     184    return m_data->itemList.count();
     185}
     186
     187/*!
     188   Set whether this layout can make use of more space than sizeHint().
     189   A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only
     190   one dimension, while Qt::Vertical | Qt::Horizontal means that it wants
     191   to grow in both dimensions. The default value is 0.
     192
     193   \param expanding Or'd orientations
     194   \sa expandingDirections()
     195 */
    200196void QwtDynGridLayout::setExpandingDirections( Qt::Orientations expanding )
    201197{
    202     d_data->expanding = expanding;
    203 }
    204 
    205 /*!
    206   \brief Returns whether this layout can make use of more space than sizeHint().
    207 
    208   A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only
    209   one dimension, while Qt::Vertical | Qt::Horizontal means that it wants
    210   to grow in both dimensions.
    211 
    212   \return Orientations, where the layout expands
    213   \sa setExpandingDirections()
    214 */
     198    m_data->expanding = expanding;
     199}
     200
     201/*!
     202   \brief Returns whether this layout can make use of more space than sizeHint().
     203
     204   A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only
     205   one dimension, while Qt::Vertical | Qt::Horizontal means that it wants
     206   to grow in both dimensions.
     207
     208   \return Orientations, where the layout expands
     209   \sa setExpandingDirections()
     210 */
    215211Qt::Orientations QwtDynGridLayout::expandingDirections() const
    216212{
    217     return d_data->expanding;
    218 }
    219 
    220 /*!
    221   Reorganizes columns and rows and resizes managed items within
    222   a rectangle.
    223 
    224   \param rect Layout geometry
    225 */
    226 void QwtDynGridLayout::setGeometry( const QRect &rect )
     213    return m_data->expanding;
     214}
     215
     216/*!
     217   Reorganizes columns and rows and resizes managed items within
     218   a rectangle.
     219
     220   \param rect Layout geometry
     221 */
     222void QwtDynGridLayout::setGeometry( const QRect& rect )
    227223{
    228224    QLayout::setGeometry( rect );
    … …  
    231227        return;
    232228
    233     d_data->numColumns = columnsForWidth( rect.width() );
    234     d_data->numRows = itemCount() / d_data->numColumns;
    235     if ( itemCount() % d_data->numColumns )
    236         d_data->numRows++;
    237 
    238     QList<QRect> itemGeometries = layoutItems( rect, d_data->numColumns );
     229    m_data->numColumns = columnsForWidth( rect.width() );
     230    m_data->numRows = itemCount() / m_data->numColumns;
     231    if ( itemCount() % m_data->numColumns )
     232        m_data->numRows++;
     233
     234    const QList< QRect > itemGeometries = layoutItems( rect, m_data->numColumns );
    239235
    240236    int index = 0;
    241     for ( QList<QLayoutItem*>::iterator it = d_data->itemList.begin();
    242         it != d_data->itemList.end(); ++it )
     237    for ( QList< QLayoutItem* >::const_iterator it = m_data->itemList.constBegin();
     238        it != m_data->itemList.constEnd(); ++it )
    243239    {
    244240        ( *it )->setGeometry( itemGeometries[index] );
    … …  
    248244
    249245/*!
    250   \brief Calculate the number of columns for a given width.
    251 
    252   The calculation tries to use as many columns as possible
    253   ( limited by maxColumns() )
    254 
    255   \param width Available width for all columns
    256   \return Number of columns for a given width
    257 
    258   \sa maxColumns(), setMaxColumns()
    259 */
     246   \brief Calculate the number of columns for a given width.
     247
     248   The calculation tries to use as many columns as possible
     249   ( limited by maxColumns() )
     250
     251   \param width Available width for all columns
     252   \return Number of columns for a given width
     253
     254   \sa maxColumns(), setMaxColumns()
     255 */
    260256uint QwtDynGridLayout::columnsForWidth( int width ) const
    261257{
    … …  
    264260
    265261    uint maxColumns = itemCount();
    266     if ( d_data->maxColumns > 0 )
    267         maxColumns = qMin( d_data->maxColumns, maxColumns );
     262    if ( m_data->maxColumns > 0 )
     263        maxColumns = qMin( m_data->maxColumns, maxColumns );
    268264
    269265    if ( maxRowWidth( maxColumns ) <= width )
    … …  
    281277
    282278/*!
    283   Calculate the width of a layout for a given number of
    284   columns.
    285 
    286   \param numColumns Given number of columns
    287   \param itemWidth Array of the width hints for all items
    288 */
     279   Calculate the width of a layout for a given number of
     280   columns.
     281
     282   \param numColumns Given number of columns
     283   \param itemWidth Array of the width hints for all items
     284 */
    289285int QwtDynGridLayout::maxRowWidth( int numColumns ) const
    290286{
    291287    int col;
    292288
    293     QVector<int> colWidth( numColumns );
     289    QVector< int > colWidth( numColumns );
    294290    for ( col = 0; col < numColumns; col++ )
    295291        colWidth[col] = 0;
    296292
    297     if ( d_data->isDirty )
    298         d_data->updateLayoutCache();
     293    if ( m_data->isDirty )
     294        m_data->updateLayoutCache();
    299295
    300296    for ( int index = 0;
    301         index < d_data->itemSizeHints.count(); index++ )
     297        index < m_data->itemSizeHints.count(); index++ )
    302298    {
    303299        col = index % numColumns;
    304300        colWidth[col] = qMax( colWidth[col],
    305             d_data->itemSizeHints[int( index )].width() );
    306     }
    307 
    308     int rowWidth = 2 * margin() + ( numColumns - 1 ) * spacing();
     301            m_data->itemSizeHints[index].width() );
     302    }
     303
     304    const QMargins m = contentsMargins();
     305
     306    int rowWidth = m.left() + m.right() + ( numColumns - 1 ) * spacing();
    309307    for ( col = 0; col < numColumns; col++ )
    310308        rowWidth += colWidth[col];
    … …  
    314312
    315313/*!
    316   \return the maximum width of all layout items
    317 */
     314   \return the maximum width of all layout items
     315 */
    318316int QwtDynGridLayout::maxItemWidth() const
    319317{
    … …  
    321319        return 0;
    322320
    323     if ( d_data->isDirty )
    324         d_data->updateLayoutCache();
     321    if ( m_data->isDirty )
     322        m_data->updateLayoutCache();
    325323
    326324    int w = 0;
    327     for ( int i = 0; i < d_data->itemSizeHints.count(); i++ )
    328     {
    329         const int itemW = d_data->itemSizeHints[i].width();
     325    for ( int i = 0; i < m_data->itemSizeHints.count(); i++ )
     326    {
     327        const int itemW = m_data->itemSizeHints[i].width();
    330328        if ( itemW > w )
    331329            w = itemW;
    … …  
    336334
    337335/*!
    338   Calculate the geometries of the layout items for a layout
    339   with numColumns columns and a given rectangle.
    340 
    341   \param rect Rect where to place the items
    342   \param numColumns Number of columns
    343   \return item geometries
    344 */
    345 
    346 QList<QRect> QwtDynGridLayout::layoutItems( const QRect &rect,
     336   Calculate the geometries of the layout items for a layout
     337   with numColumns columns and a given rectangle.
     338
     339   \param rect Rect where to place the items
     340   \param numColumns Number of columns
     341   \return item geometries
     342 */
     343
     344QList< QRect > QwtDynGridLayout::layoutItems( const QRect& rect,
    347345    uint numColumns ) const
    348346{
    349     QList<QRect> itemGeometries;
     347    QList< QRect > itemGeometries;
    350348    if ( numColumns == 0 || isEmpty() )
    351349        return itemGeometries;
    … …  
    358356        return itemGeometries;
    359357
    360     QVector<int> rowHeight( numRows );
    361     QVector<int> colWidth( numColumns );
     358    QVector< int > rowHeight( numRows );
     359    QVector< int > colWidth( numColumns );
    362360
    363361    layoutGrid( numColumns, rowHeight, colWidth );
    … …  
    370368        stretchGrid( rect, numColumns, rowHeight, colWidth );
    371369
    372     const int maxColumns = d_data->maxColumns;
    373     d_data->maxColumns = numColumns;
     370    const int maxColumns = m_data->maxColumns;
     371    m_data->maxColumns = numColumns;
    374372    const QRect alignedRect = alignmentRect( rect );
    375     d_data->maxColumns = maxColumns;
     373    m_data->maxColumns = maxColumns;
    376374
    377375    const int xOffset = expandH ? 0 : alignedRect.x();
    378376    const int yOffset = expandV ? 0 : alignedRect.y();
    379377
    380     QVector<int> colX( numColumns );
    381     QVector<int> rowY( numRows );
     378    QVector< int > colX( numColumns );
     379    QVector< int > rowY( numRows );
    382380
    383381    const int xySpace = spacing();
    384382
    385     rowY[0] = yOffset + margin();
     383    const QMargins m = contentsMargins();
     384
     385    rowY[0] = yOffset + m.top();
    386386    for ( uint r = 1; r < numRows; r++ )
    387         rowY[r] = rowY[r-1] + rowHeight[r-1] + xySpace;
    388 
    389     colX[0] = xOffset + margin();
     387        rowY[r] = rowY[r - 1] + rowHeight[r - 1] + xySpace;
     388
     389    colX[0] = xOffset + m.left();
    390390    for ( uint c = 1; c < numColumns; c++ )
    391         colX[c] = colX[c-1] + colWidth[c-1] + xySpace;
    392 
    393     const int itemCount = d_data->itemList.size();
     391        colX[c] = colX[c - 1] + colWidth[c - 1] + xySpace;
     392
     393    const int itemCount = m_data->itemList.size();
     394    itemGeometries.reserve( itemCount );
     395
    394396    for ( int i = 0; i < itemCount; i++ )
    395397    {
    … …  
    397399        const int col = i % numColumns;
    398400
    399         QRect itemGeometry( colX[col], rowY[row],
     401        const QRect itemGeometry( colX[col], rowY[row],
    400402            colWidth[col], rowHeight[row] );
    401403        itemGeometries.append( itemGeometry );
    … …  
    407409
    408410/*!
    409   Calculate the dimensions for the columns and rows for a grid
    410   of numColumns columns.
    411 
    412   \param numColumns Number of columns.
    413   \param rowHeight Array where to fill in the calculated row heights.
    414   \param colWidth Array where to fill in the calculated column widths.
    415 */
     411   Calculate the dimensions for the columns and rows for a grid
     412   of numColumns columns.
     413
     414   \param numColumns Number of columns.
     415   \param rowHeight Array where to fill in the calculated row heights.
     416   \param colWidth Array where to fill in the calculated column widths.
     417 */
    416418
    417419void QwtDynGridLayout::layoutGrid( uint numColumns,
    418     QVector<int>& rowHeight, QVector<int>& colWidth ) const
     420    QVector< int >& rowHeight, QVector< int >& colWidth ) const
    419421{
    420422    if ( numColumns <= 0 )
    421423        return;
    422424
    423     if ( d_data->isDirty )
    424         d_data->updateLayoutCache();
    425 
    426     for ( int index = 0; index < d_data->itemSizeHints.count(); index++ )
     425    if ( m_data->isDirty )
     426        m_data->updateLayoutCache();
     427
     428    for ( int index = 0; index < m_data->itemSizeHints.count(); index++ )
    427429    {
    428430        const int row = index / numColumns;
    429431        const int col = index % numColumns;
    430432
    431         const QSize &size = d_data->itemSizeHints[int( index )];
     433        const QSize& size = m_data->itemSizeHints[index];
    432434
    433435        rowHeight[row] = ( col == 0 )
    … …  
    439441
    440442/*!
    441   \return true: QwtDynGridLayout implements heightForWidth().
    442   \sa heightForWidth()
    443 */
     443   \return true: QwtDynGridLayout implements heightForWidth().
     444   \sa heightForWidth()
     445 */
    444446bool QwtDynGridLayout::hasHeightForWidth() const
    445447{
    … …  
    448450
    449451/*!
    450   \return The preferred height for this layout, given a width.
    451   \sa hasHeightForWidth()
    452 */
     452   \return The preferred height for this layout, given a width.
     453   \sa hasHeightForWidth()
     454 */
    453455int QwtDynGridLayout::heightForWidth( int width ) const
    454456{
    … …  
    461463        numRows++;
    462464
    463     QVector<int> rowHeight( numRows );
    464     QVector<int> colWidth( numColumns );
     465    QVector< int > rowHeight( numRows );
     466    QVector< int > colWidth( numColumns );
    465467
    466468    layoutGrid( numColumns, rowHeight, colWidth );
    467469
    468     int h = 2 * margin() + ( numRows - 1 ) * spacing();
     470    const QMargins m = contentsMargins();
     471
     472    int h = m.top() + m.bottom() + ( numRows - 1 ) * spacing();
    469473    for ( uint row = 0; row < numRows; row++ )
    470474        h += rowHeight[row];
    … …  
    474478
    475479/*!
    476   Stretch columns in case of expanding() & QSizePolicy::Horizontal and
    477   rows in case of expanding() & QSizePolicy::Vertical to fill the entire
    478   rect. Rows and columns are stretched with the same factor.
    479 
    480   \param rect Bounding rectangle
    481   \param numColumns Number of columns
    482   \param rowHeight Array to be filled with the calculated row heights
    483   \param colWidth Array to be filled with the calculated column widths
    484 
    485   \sa setExpanding(), expanding()
    486 */
    487 void QwtDynGridLayout::stretchGrid( const QRect &rect,
    488     uint numColumns, QVector<int>& rowHeight, QVector<int>& colWidth ) const
     480   Stretch columns in case of expanding() & QSizePolicy::Horizontal and
     481   rows in case of expanding() & QSizePolicy::Vertical to fill the entire
     482   rect. Rows and columns are stretched with the same factor.
     483
     484   \param rect Bounding rectangle
     485   \param numColumns Number of columns
     486   \param rowHeight Array to be filled with the calculated row heights
     487   \param colWidth Array to be filled with the calculated column widths
     488
     489   \sa setExpanding(), expanding()
     490 */
     491void QwtDynGridLayout::stretchGrid( const QRect& rect,
     492    uint numColumns, QVector< int >& rowHeight, QVector< int >& colWidth ) const
    489493{
    490494    if ( numColumns == 0 || isEmpty() )
    … …  
    495499    expandV = expandingDirections() & Qt::Vertical;
    496500
     501    const QMargins m = contentsMargins();
     502
    497503    if ( expandH )
    498504    {
    499         int xDelta = rect.width() - 2 * margin() - ( numColumns - 1 ) * spacing();
     505        int xDelta = rect.width() - m.left() - m.right() - ( numColumns - 1 ) * spacing();
    500506        for ( uint col = 0; col < numColumns; col++ )
    501507            xDelta -= colWidth[col];
    … …  
    518524            numRows++;
    519525
    520         int yDelta = rect.height() - 2 * margin() - ( numRows - 1 ) * spacing();
     526        int yDelta = rect.height() - m.top() - m.bottom() - ( numRows - 1 ) * spacing();
    521527        for ( uint row = 0; row < numRows; row++ )
    522528            yDelta -= rowHeight[row];
    … …  
    541547   \return Size hint
    542548   \sa maxColumns(), setMaxColumns()
    543 */
     549 */
    544550QSize QwtDynGridLayout::sizeHint() const
    545551{
    … …  
    548554
    549555    uint numColumns = itemCount();
    550     if ( d_data->maxColumns > 0 )
    551         numColumns = qMin( d_data->maxColumns, numColumns );
     556    if ( m_data->maxColumns > 0 )
     557        numColumns = qMin( m_data->maxColumns, numColumns );
    552558
    553559    uint numRows = itemCount() / numColumns;
    … …  
    555561        numRows++;
    556562
    557     QVector<int> rowHeight( numRows );
    558     QVector<int> colWidth( numColumns );
     563    QVector< int > rowHeight( numRows );
     564    QVector< int > colWidth( numColumns );
    559565
    560566    layoutGrid( numColumns, rowHeight, colWidth );
    561567
    562     int h = 2 * margin() + ( numRows - 1 ) * spacing();
     568    const QMargins m = contentsMargins();
     569
     570    int h = m.top() + m.bottom() + ( numRows - 1 ) * spacing();
    563571    for ( uint row = 0; row < numRows; row++ )
    564572        h += rowHeight[row];
    565573
    566     int w = 2 * margin() + ( numColumns - 1 ) * spacing();
     574    int w = m.left() + m.right() + ( numColumns - 1 ) * spacing();
    567575    for ( uint col = 0; col < numColumns; col++ )
    568576        w += colWidth[col];
    … …  
    572580
    573581/*!
    574   \return Number of rows of the current layout.
    575   \sa numColumns()
    576   \warning The number of rows might change whenever the geometry changes
    577 */
     582   \return Number of rows of the current layout.
     583   \sa numColumns()
     584   \warning The number of rows might change whenever the geometry changes
     585 */
    578586uint QwtDynGridLayout::numRows() const
    579587{
    580     return d_data->numRows;
    581 }
    582 
    583 /*!
    584   \return Number of columns of the current layout.
    585   \sa numRows()
    586   \warning The number of columns might change whenever the geometry changes
    587 */
     588    return m_data->numRows;
     589}
     590
     591/*!
     592   \return Number of columns of the current layout.
     593   \sa numRows()
     594   \warning The number of columns might change whenever the geometry changes
     595 */
    588596uint QwtDynGridLayout::numColumns() const
    589597{
    590     return d_data->numColumns;
    591 }
     598    return m_data->numColumns;
     599}
     600
     601#include "moc_qwt_dyngrid_layout.cpp"
Note: See TracChangeset for help on using the changeset viewer.