From ec0d3dc49a10b27a6bf760a19b5d63c7d826ab22 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Wed, 11 Nov 2020 08:50:01 +0100 Subject: [PATCH] deprecated calls removed --- src/layouts/QskGridBox.h | 22 ---------------------- src/layouts/QskLinearBox.h | 4 ---- 2 files changed, 26 deletions(-) diff --git a/src/layouts/QskGridBox.h b/src/layouts/QskGridBox.h index 59fb2088..cf81f500 100644 --- a/src/layouts/QskGridBox.h +++ b/src/layouts/QskGridBox.h @@ -48,10 +48,6 @@ class QSK_EXPORT QskGridBox : public QskBox int count() const; -#ifdef QSK_LAYOUT_COMPAT - int itemCount() const { return count(); } // items and spacers -#endif - QQuickItem* itemAtIndex( int index ) const; int indexOf( const QQuickItem* ) const; @@ -72,24 +68,6 @@ class QSK_EXPORT QskGridBox : public QskBox void setSpacing( qreal spacing ); -#ifdef QSK_LAYOUT_COMPAT - - void setVerticalSpacing( qreal spacing ) { setSpacing( Qt::Vertical, spacing ); } - qreal verticalSpacing() const { return spacing( Qt::Vertical ); } - - void setHorizontalSpacing( qreal spacing ) { setSpacing( Qt::Horizontal, spacing ); } - qreal horizontalSpacing() const { return spacing( Qt::Horizontal ); } - - void setActive( bool ) {} - bool isActive() const { return true; } - - void setRowMinimumHeight( int row, qreal height ) - { setRowSizeHint( row, Qt::MinimumSize, height ); } - - void setColumnMaximumWidth( int column, qreal width ) - { setColumnSizeHint( column, Qt::MaximumSize, width ); } -#endif - // stretch factors Q_INVOKABLE void setRowStretchFactor( int row, int stretch ); Q_INVOKABLE int rowStretchFactor( int row ) const; diff --git a/src/layouts/QskLinearBox.h b/src/layouts/QskLinearBox.h index 900f72c5..4b329320 100644 --- a/src/layouts/QskLinearBox.h +++ b/src/layouts/QskLinearBox.h @@ -42,10 +42,6 @@ class QSK_EXPORT QskLinearBox : public QskIndexedLayoutBox bool isEmpty() const; int count() const; // items and spacers -#ifdef QSK_LAYOUT_COMPAT - int itemCount() const { return count(); } -#endif - qreal spacingAtIndex( int index ) const; QQuickItem* itemAtIndex( int index ) const;