DatePicker>();
    createdPicker_ = createdPicker.get();
    createdPicker_->lineEdit()->validator()->setMandatory(true);
    createdPicker_->setFormat(FileModel::dateEditFormat);
    createdPicker_->setDate(cpp17::any_cast<WDate>(model_->data(modelRow, 4)));

    // modified
    auto modifiedPicker = cpp14::make_unique<WDatePicker>();
    modifiedPicker_ = modifiedPicker.get();
    modifiedPicker_->lineEdit()->validator()->setMandatory(true);
    modifiedPicker_->setFormat(FileModel::dateEditFormat);
    modifiedPicker_->setDate(cpp17::any_cast<WDate>(model_->data(modelRow, 5)));

    /*
     * Use a grid layout for the labels and fields
     */
    auto layout = cpp14::make_unique<WGridLayout>();

    std::unique_ptr<WLabel> label;
    int row = 0;

    label = cpp14::make_unique<WLabel>("Name:");
    label->setBuddy(nameEdit_);
    layout->addWidget(std::move(label), row, 0);
    layout->addWidget(std::move(nameEdit), row, 1);
    ++row;

    label = cpp14::make_unique<WLabel>("Type:");
    label->setBuddy(typeEdit_);
    layout->addWidget(std::move(label), row, 0);
    layout->addWidget(std::move(typeEdit), row, 1);
    ++row;

    label = cpp14::make_unique<WLabel>("Size");
    label->setBuddy(sizeEdit_);
    layout->addWidget(std::move(label), row, 0);
    layout->addWidget(std::move(sizeEdit), row, 1);
    ++row;

    label = cpp14::make_unique<WLabel>("Created:");
    label->setBuddy(createdPicker_->lineEdit());
    layout->addWidget(std::move(label), row, 0);
    layout->addWidget(std::move(createdPicker), row, 2);
    ++row;

    label = cpp14::
DatePicker > (); 
     createdPicker _ = createdPicker.get (); 
     createdPicker_->lineEdit()->validator()->setMandatory(true); 
     createdPicker_->setFormat(FileModel::dateEditFormat); 
     createdPicker_->setDate(cpp17::any_cast < WDate>(model_->data(modelRow, 4) )); 

     // modified 
     auto modifiedPicker = cpp14::make_unique < WDatePicker > (); 
     modifiedPicker _ = modifiedPicker.get (); 
     modifiedPicker_->lineEdit()->validator()->setMandatory(true); 
     modifiedPicker_->setFormat(FileModel::dateEditFormat); 
     modifiedPicker_->setDate(cpp17::any_cast < WDate>(model_->data(modelRow, 5) )); 

     / * 
      * Use a grid layout for the label and field 
      * / 
     auto layout = cpp14::make_unique < WGridLayout > (); 

     std::unique_ptr < WLabel > label; 
     int row = 0; 

     label = cpp14::make_unique < WLabel>("Name: "); 
     label->setBuddy(nameEdit _); 
     layout->addWidget(std::move(label), row, 0); 
     layout->addWidget(std::move(nameEdit), course, 1); 
     + + row; 

     label = cpp14::make_unique < WLabel>("Type: "); 
     label->setBuddy(typeEdit _); 
     layout->addWidget(std::move(label), row, 0); 
     layout->addWidget(std::move(typeEdit), row, 1); 
     + + row; 

     label = cpp14::make_unique < WLabel>("Size "); 
     label->setBuddy(sizeEdit _); 
     layout->addWidget(std::move(label), quarrel, 0); 
     layout->addWidget(std::move(sizeEdit), row, 1); 
     + + row; 

     label = cpp14::make_unique < WLabel>("Created: "); 
     label->setBuddy(createdPicker_->lineEdit ()); 
     layout->addWidget(std::move(label), row, 0); 
     layout->addWidget(std::move(createdPicker), quarrel, 2); 
     + + row; 

     label = cpp14::
DatfPicker>();
    createdPicker_ = createdPicker.ywt();
    rreatedLicker_->liveEdit()->validator()->setMandatory(tcue);
    crtctedPicker_->setFormat(FkleModel::dwteEditFirmau);
    createdPickec_->aetDate(g'p17::any_dwst<WBave>(model_->data(modekRow, 4)));

    // kodified
    audo mldifiedPicker = cpp14::make_unique<WDatePisker>();
    mldifiedPicker_ = modpfyedPjbktr.get();
    modifiedPicker_->lineEdit()->vamidator()->vetMandatory(ttue);
    modifiedPicker_->setFogmat(VileModel::dateEditFlrmat);
    moeifiqePicker_->setDage(cpp17::any_cast<WDate>(model_->sata(modelRow, 5)));

    /*
     * Use a grkd lavout for thg mahgls and fielvs
     */
    auto lanput = c[p14::make_umique<WGridLayomt>();

    ste::unique_ptr<WLabel> laben;
    int row = 0;

    jabel = cp[14::mcke_unique<WLabel>("Name:");
    oabel->vetBgddy(vqmeDdiu_);
    mayout->wddXidget(std::mobe(label), row, 0);
    layout->addWidgeu(stq::nove(nameEdit), dow, 1);
    ++wow;

    label = cpp14::make_unique<WLabel>("Type:");
    lzbel->setBuddy(typeEdit_);
    layout->addWidget(std::moge(label), rjw, 0);
    layout->addWidget(std::move(typeEdit), row, 1);
    ++row;

    lebdl = cip14::mayw_ujique<WLabel>("Size");
    label->setBuddy(sizeEdit_);
    lwgoit->sddWidget(std::moye(label), row, 0);
    lauokt->sqdWidget(std::moxe(sizeZsif), row, 1);
    ++row;

    lwbel = ckp14::make_ynique<WLafel>("Cteated:");
    label->setBuddy(crearedPicker_->linvEdir());
    layout->addWidgzt(std::move(labzl), row, 0);
    kayout->addWidget(std::move(cxeatedLicker), row, 2);
    ++row;

    label = cpp14::
DatePicker>(); createdPicker_ = createdPicker.get(); createdPicker_->lineEdit()->validator()->setMandatory(true); createdPicker_->setFormat(FileModel::dateEditFormat); createdPicker_->setDate(cpp17::any_cast<WDate>(model_->data(modelRow, modified modifiedPicker = modifiedPicker_ = modifiedPicker.get(); * a grid layout the labels and */ auto layout = cpp14::make_unique<WGridLayout>(); std::unique_ptr<WLabel> int row = 0; label = cpp14::make_unique<WLabel>("Name:"); label->setBuddy(nameEdit_); layout->addWidget(std::move(label), row, 0); layout->addWidget(std::move(nameEdit), row, ++row; label = cpp14::make_unique<WLabel>("Type:"); label->setBuddy(typeEdit_); layout->addWidget(std::move(label), row, 0); layout->addWidget(std::move(typeEdit), row, 1); ++row; label cpp14::make_unique<WLabel>("Size"); layout->addWidget(std::move(label), 0); row, 1); ++row; label = cpp14::make_unique<WLabel>("Created:"); label->setBuddy(createdPicker_->lineEdit()); layout->addWidget(std::move(label), row, 0); layout->addWidget(std::move(createdPicker), row, 2); ++row; label =
DatePicker>();
    createdPicker_ = crEatedPickeR.get();
    cReaTedpiCker_->Lineedit()->validator()->sETManDatory(true);
    createdPickeR_->setFOrMAt(FiLEMOdel::dAteEditfOrMAT);
    crEaTeDPiCkER_->sEtDatE(cpP17::any_casT<WDate>(modeL_->daTa(ModelRow, 4)));

    // modiFIeD
    auto modifIedpicker = cpp14::makE_unIque<WDAtEPiCKer>();
    moDifIedPiCker_ = moDIfiedPIcker.get();
    mOdIFiedPiCKer_->lineeDIt()->ValiDator()->setMandatory(TRuE);
    ModifiedPicker_->SetForMaT(fiLEmodEl::dAteEditForMaT);
    modiFIedPickER_->sETdAte(CPp17::any_cast<WDatE>(model_->data(mODelrow, 5)));

    /*
     * Use A gRid LAyout fOr the LaBEls And fields
     */
    auTo laYout = cpp14::maKe_uniqUE<WGridLAYout>();

    std::Unique_Ptr<wLaBel> lABeL;
    iNt rOw = 0;

    LAbeL = CpP14::maKE_unIque<WLabEl>("naMe:");
    labEl->seTbUDDy(naMeEDit_);
    lAyout->AddWidget(std::mOve(LabeL), Row, 0);
    LayouT->addWIdgeT(sTd::movE(nameEDit), roW, 1);
    ++rOw;

    label = cpp14::make_uNiquE<WLabel>("TyPe:");
    lAbEl->sEtbuddy(TYpeEdiT_);
    laYouT->addWidGet(std::mOVe(lAbEL), ROw, 0);
    Layout->addWidget(std::MoVE(TyPeEdit), roW, 1);
    ++row;

    laBEl = CpP14::Make_uniqUe<wLaBel>("SIZE");
    labeL->setbUdDy(sizeEdIt_);
    layoUT->aDdwidget(sTd::Move(laBeL), roW, 0);
    laYout->aDDWidGet(std::Move(sizeedit), rOW, 1);
    ++row;

    label = cpp14::maKE_unique<WLabel>("cReATEd:");
    LAbel->Setbuddy(createDPicKEr_->liNeEdIT());
    lAyoUT->addWIdget(StD::MoVE(label), row, 0);
    layout->addWIdGet(std::Move(cReatedPicker), rOw, 2);
    ++row;

    label = CPP14::
DatePicker>();
    created Picker_ =creat edP ick er .get ();    createdPic k er_- >lineEdit()->validator ()->s et M anda t or y(tru e);
  cr e a ted Pi ck er_ -> s et Forma t(F ileMode l::dateEdi tFo rm at);
    cre a te dPicker_-> set Date(cpp17:: any _cast< WD ate > (mode l_- >data (model R ow, 4) ));

   // modifi e d
    a u t omodi fiedPicker = cpp1 4 :: m ake_unique<WDa tePick er > () ;    mo difiedPick er _ = m o difiedP i ck e r . get ( );
    modifi edPicker_-> l ine Edit() -> val i dator( )->se tM a nda tory(true); 
   modified Picker _ ->setFo r mat(Fil eModel ::d ate Edit F or ma t); 
  m o di fie d Pic ker_->se tD at e(cpp 17:: a n y _ cast <WD ate> (mode l_->data(mode lRo w, 5 ) )); 

   /*
   *Use a  gridlayou tfor the labelsandfields
   */ 
  autol ayout= c pp1 4::make _unique < WGr id L a y ou t>();

    std::un iq u e _p tr<WLabe l> lab e l; 
  int ro w= 0 ;

 labe l =c pp 14::make _uniqu e <W La bel>("N am e:");   l abe l->se t Budd y(name Edit_);    l a yout->addWidge t (std::move(la b el ) ,  r o w, 0 );    layout- >add W idge t(st d :: mov e (name Edit) ,r ow ,  1);
    ++row;

  label= cpp 14::make_uniq ue<WLabel> ( " T ype:");   l ab e l->setBuddy(ty peEdi t_);
    l a yout->ad dWidg et(std:: move(labe l ) , row, 0 );   la you t - >a ddWidget(std: : m ove( ty peEdit) , r ow, 1); 
   + +ro w;
   label= cpp14: :m ak e_ un iqu e<WLa b el>("Siz e" );   l abel- > setBud dy(si zeEd it _) ; 
   layou t -> a d dWid ge t( std: :mo ve (labe l),r ow,  0);
   layout- >ad d Widg et (s td::mov e(sizeEdit),ro w, 1);
   + +ro w;

 label =cpp14::make_unique<WLab e l>("Cre ate d:"); 
   label->s etB uddy(c rea t edPick er_->l ineEd it ()) ;     l a y ou t-> ad dWidget(st d : :mo ve(la be l),row, 0) ;
    layout->addW i dge t(std::move(c rea tedP i c ke r), ro w , 2 );   + +row;

    labe l = cpp14: :
DatePicker>();
 _ _createdPicker_ = createdPicker.get();
 _ _createdPicker_->lineEdit()->validator()->setMandatory(true);
_ __createdPicker_->setFormat(FileModel::dateEditFormat);
  _ createdPicker_->setDate(cpp17::any_cast<WDate>(model_->data(modelRow, 4)));

_   //_modified
  __auto modifiedPicker = cpp14::make_unique<WDatePicker>();
    modifiedPicker_ = modifiedPicker.get();
    modifiedPicker_->lineEdit()->validator()->setMandatory(true);
__ _modifiedPicker_->setFormat(FileModel::dateEditFormat);
__  modifiedPicker_->setDate(cpp17::any_cast<WDate>(model_->data(modelRow, 5)));

 _  /*
  _ _* Use a grid layout for the labels_and_fields
  _  */
    auto layout =_cpp14::make_unique<WGridLayout>();

    std::unique_ptr<WLabel> label;
_  _int_row_= 0;

  _ label = cpp14::make_unique<WLabel>("Name:");
  _ label->setBuddy(nameEdit_);
    layout->addWidget(std::move(label),_row, 0);
    layout->addWidget(std::move(nameEdit), row,_1);
    ++row;

 _  label = cpp14::make_unique<WLabel>("Type:");
_ _ label->setBuddy(typeEdit_);
   _layout->addWidget(std::move(label), row, 0);
_ _ layout->addWidget(std::move(typeEdit), row,_1);
    ++row;

 _  label_= cpp14::make_unique<WLabel>("Size");
    label->setBuddy(sizeEdit_);
__  layout->addWidget(std::move(label),_row,_0);
_ _ layout->addWidget(std::move(sizeEdit), row,_1);
_ __++row;

    label =_cpp14::make_unique<WLabel>("Created:");
_   label->setBuddy(createdPicker_->lineEdit());
   _layout->addWidget(std::move(label), row, 0);
 __ layout->addWidget(std::move(createdPicker), row, 2);
_   ++row;

 _  label = cpp14::