Project

General

Profile

How to use Signals? // How to communicate between Objects? » TLayout.cpp

Quirin Schwanse, 11/07/2018 10:21 PM

 
#include "TLayout.h"

TLayout::TLayout() : WTemplate { tr("tpl.LAYOUT") }
{
Section = 0; //Default-Value for Section

//Binding Widgets to Page:
mPageHead = bindWidget("PAGEHEAD", make_unique<WPageHead>());
mNavigation = bindWidget("NAVIGATION", make_unique<WNavigation>(this));

}

void TLayout::switchSection(int aSec) {
*Section = aSec;
std::cout << "The Section is: " << aSec << std::endl;
}

TLayout::~TLayout()
{
//Free da Memory!! :D

}
(2-2/4)