25 std::cout << __FILE__ <<
":" << __LINE__
26 <<
"(): " << _index.row() <<
"," << _index.column()
27 <<
" BalanceDelegate::" << __FUNCTION__
33 auto retVal = std::make_unique< Wt::WContainerWidget >();
34 retVal-> setSelectable(
false );
51 auto balanceEdit = std::make_unique< Wt::WText >();
52 balanceEdit-> setText( balance );
57 balanceEdit-> setAttributeValue(
"style",
"background-color:yellow;border-radius:4px;border:1px solid rgb(204,204,204)" );
63 retVal-> setLayout( std::make_unique< Wt::WHBoxLayout >() );
64 retVal-> layout()-> setContentsMargins( 0,0,0,0 );
65 retVal-> layout()-> addWidget( std::move( balanceEdit ) );
71 auto lineEdit =
dynamic_cast< Wt::WLineEdit*
>( cw-> widget(0) );
72 lineEdit-> setReadOnly(
true );
73 lineEdit-> setAttributeValue(
"style",
"text-align:right;" );