qskinny/playground/grids/GridWidgets.h
2019-07-22 17:21:33 +02:00

39 lines
1.2 KiB
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef GRID_WIDGETS_H
#define GRID_WIDGETS_H
#include "GridAccessor.h"
#include <QWidget>
class QGridLayout;
class GridWidgets : public QWidget, public GridAccessor
{
public:
GridWidgets( QWidget* parent = nullptr );
~GridWidgets() override;
void insert( const QByteArray& colorName,
int row, int column, int rowSpan, int columnSpan ) override;
void setSpacing( Qt::Orientations, int spacing ) override;
void setRowSizeHint( int row, Qt::SizeHint, int height ) override;
void setColumnSizeHint( int column, Qt::SizeHint, int width ) override;
void setSizeHint( int index, Qt::Orientation, Qt::SizeHint, int hint ) override;
void setSizePolicy( int index, Qt::Orientation, int policy ) override;
void setAlignment( int index, Qt::Alignment ) override;
void setRetainSizeWhenHidden( int, bool on ) override;
private:
QGridLayout* m_layout;
};
#endif