src/libqtcad/QtCADQuad.cpp
QGridLayout *
QtCADQuad::createLayout()
{
    QGridLayout *layout = new QGridLayout(this);
    layout->setSpacing(0);
    layout->setContentsMargins(0, 0, 0, 0);
    layout->setAlignment(Qt::AlignTop | Qt::AlignLeft);

    this->setLayout(layout);

    if (currentLayout != nullptr) {
	delete currentLayout;
    }
    currentLayout = layout;

    return layout;
}
/**
 * @brief Convenience method to create the layout and set common parameters.
 *
 * @return QGridLayout*
 */
@brief Convenience method to create the layout and set common parameters.
@brief Convenience method to create the layout and set common parameters .
QGridLayout *
QtCADQuad::createLayout()
{
    QGridLayout *layout = new QGridLayout(this);
    layout->setSpacing(0);
    layout->setContentsMargins(0, 0, 0, 0);
    layout->setAlignment(Qt::AlignTop | Qt::AlignLeft);
    this->setLayout(layout);
    if (currentLayout != nullptr) {
	delete currentLayout;
    }
    currentLayout = layout;
    return layout;
}
QGridLayout * QtCADQuad :: createLayout ( ) { QGridLayout * layout = new QGridLayout ( this ) ; layout -> setSpacing ( 0 ) ; layout -> setContentsMargins ( 0 , 0 , 0 , 0 ) ; layout -> setAlignment ( Qt :: AlignTop | Qt :: AlignLeft ) ; this -> setLayout ( layout ) ; if ( currentLayout != nullptr ) { delete currentLayout ; } currentLayout = layout ; return layout ; }
@brief Convenience method to create the layout and set common parameters.
@brief Convenience method to create the layout and set common parameters .