-> setChecked (true), animal-> setChecked (false), tenant-> setCurrentIndex (0); price-> clear ();} void FunctionGuest :: clearPosterRent (QLineEdit * city, QLineEdit * area, QLineEdit * street, QLineEdit * home, QSpinBox * floor, QLineEdit * nPhone, QComboBox * nRoom, QCheckBox * furtiture, QCheckBox * animal, QComboBox * tenant, QLineEdit * price) {clearPosterHiring (city, area, nPhone , nRoom, furtiture, animal, tenant, price); street-> clear (); home-> clear (); floor-> setValue (0);} void FunctionGuest :: clearPosterHiring () {clearPosterHiring (uiHiring. cityLineEdit, uiHiring.areaLineEdit, uiHiring.nPhoneLineEdit, uiHiring.sRoomComboBox, uiHiring.furtitureCheckBox, uiHiring.animalCheckBox, uiHiring.tenantComboBox, uiHiring.priceLineEdit);} void FunctionGuest :: clearPosterRent () {clearPosterRent (uiRent.cityLineEdit, uiRent.areaLineEdit, uiRent.streetLineEdit, uiRent.nHomeLineEdit, uiRent.floorSpinBox, uiRent.nPhoneLineEdit, uiRent.sRoomComboBox, uiRent.furtitureCheckBox, uiRent.animalCheckBox, uiRent.tenantComboBox, uiRent.priceLineEdit);}
Лістинг functionUser.h
functionUser.h # ifndef FUNCTIONUSER_H # define FUNCTIONUSER_H # include "functionGuest.h" # include "ui_tabPostersHiring.h" # include "ui_tabPostersRent.h" # include "ui_functionTabPosterHiring.h" # include "ui_functionTabPosterRent.h" class FunctionUser: public FunctionGuest {Q_OBJECT protected: QWidget * windowFunctionTabPostersHiring; QWidget * windowFunctionTabPostersRent; User * current; Ui :: functionTabPosterHiring uiMyTabPostersHiring; Ui :: functionTabPosterRent uiMyTabPostersRent; Ui :: tabPostersHiring uiTabPostersHiring; Ui :: tabPostersRent uiTabPostersRent; protected: void fillPosterTableHiring (); void fillPosterTableRent (); void setPosterHiringInFile (PosterHiring * poster, QDataStream & in); void setPosterRentInFile (PosterRent * poster, QDataStream & in); public: FunctionUser (QLinkedList * _users, User * _current, QWidget * parent = 0); ~ FunctionUser (); void viewButtonHiring (const bool & fl); void viewButtonRent (const bool & fl); void readPosterHiring (PosterHiring * poster, const QString & login, const QLineEdit * city, const QLineEdit * area, const QLineEdit * nPhone, const QComboBox * nRoom, const QCheckBox * furtiture, const QCheckBox * animal, const QComboBox * tenant, const QLineEdit * price); void readPosterRent (PosterRent * poster, const QString & login, const QLineEdit * city, const QLineEdit * area, const QLineEdit * street, const QLineEdit * home, const QSpinBox * floor, const QLineEdit * nPhone, const QComboBox * nRoom, const QCheckBox * furtiture, const QCheckBox * animal , const QComboBox * tenant, const QLineEdit * price); void writePosterTiItemsHiring (PosterHiring * poster, QLineEdit * city, QLineEdit * area, QLineEdit * nPhone, QComboBox * nRoom, QCheckBox * furtiture, QCheckBox * animal, QComboBox * tenant, QLineEdit * price ); void writePosterTiItemsRent (PosterRent...