: writePosterTiItemsHiring (PosterHiring * poster, QLineEdit * city, QLineEdit * area, QLineEdit * nPhone, QComboBox * nRoom, QCheckBox * furtiture, QCheckBox * animal, QComboBox * tenant, QLineEdit * price) {int i = 0; city-> setText (poster-> getCity ()); area-> setText (poster-> getArea ()); nPhone-> setText (poster- > getNumberPhone ()); for (i = 0; nRoom-> currentText ()! = poster-> getSumRoom (); nRoom-> setCurrentIndex (+ + i)); furtiture-> setChecked (poster- > getFurtiture ()); animal-> setChecked (poster-> getAnimal ()); for (i = 0; tenant-> currentText ()! = poster-> getTenant (); tenant-> setCurrentIndex (+ + i)); price-> setText (QString ("% 1"). arg (poster-> getPrice ()));} void FunctionUser :: writePosterTiItemsRent (PosterRent * poster, QLineEdit * city, QLineEdit * area, QLineEdit * street, QLineEdit * home, QSpinBox * floor, QLineEdit * nPhone, QComboBox * nRoom, QCheckBox * furtiture, QCheckBox * animal, QComboBox * tenant, QLineEdit * price) {writePosterTiItemsHiring (poster, city, area, nPhone, nRoom, furtiture, animal, tenant, price); street-> setText (poster-> getStreet ()); home-> setText (poster-> getHome ()); floor-> setValue (poster-> ; getNumberFloor ());} void FunctionUser :: slotEditPosterHiring () {QLinkedList :: Iterator passage = current-> getPostersHiring () -> begin (); int row; for (row = 0; row currentRow (); + + row) + + passage; QDialog * window = new QDialog (this); Ui :: workWindowPoster uiWindow; uiWindow.setupUi (window); QObject :: connect (uiWindow. okButton, SIGNAL (clicked ()), window, SLOT (accept ())); QObject :: connect (uiWindow.cancelButton, SIGNAL (clicked ()), window, SLOT (reject ())); Ui :: posterHiring ui ; ui.setupUi (uiWindow.windowPoster); writePosterTiItemsHiring (* passage, ui.cityLineEdit, ui.areaLineEdit, ui.nPhoneLineEdit, ui.sRoomComboBox, ui.furtitureCheckBox, ui.animalCheckBox, ui.tenantComboBox, ui.priceLineEdit); if ( window-> exec ()) {readPosterHiring (* passage, current-> getLogin (), ui.cityLineEdit, ui.areaLineEdit, ui.nPhoneLineEdit, ui.sRoomComboBox, ui.furtitureCheckBox, ui.animalCheckBox, ui.tenantComboBox, ui.priceLineEdit); uiTabPostersHiring.tableWidget-> removeRow (row); uiTabPostersHiring.tableWidget-> insertRow (row); addInTablePosterHiring (uiTabPostersHiring.tableWidget, * passage, row);} delete window; viewButtonHiring (false); uiTabPostersHiring. tableWidget-> selectionModel () -> clearSelection ();} void FunctionUser :: slotEditPosterRent () {QLinkedList :: Iterator passage = current-> getPostersRent () -> begin (); int row ; for (row = 0; row currentRow (); + + row) + + passage; QDialog * window = new QDialog (this); Ui :: workWindowPoster uiWindow; uiWindow.setupUi (window) ; QObject :: connect (uiWindow.okButton, SIGNAL (clicked ()), window, SLOT (accept ())); QObject :: connect (uiWindow.cancelButton, SIGNAL (clicked ()), window, SLOT (reject (...