Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
#include "addAndEditPostersHiring.h"#include "workWithTheTable.h"class EditMyPosterHiring: public QDialog, public WorkWithTheTable<PosterHiring, AddAndEditPostersHiring>{ Q_OBJECTprivate slots: void addPoster() { addObject(); } void editPoster() { editObject(); } void removePoster() { removeObject(); }public: EditMyPosterHiring() { stringTitleColumn << "city" << "area" << "number_phone" << "sum_room" << "price" << "furtiture" << "animal" << "who tetant" ; tablePoster->setColumnCount( 8 ); tablePoster->setHorizontalHeaderLabels(stringTitleColumn); QObject::connect( addButton, SIGNAL(clicked()), this, SLOT(addPoster()) ); QObject::connect( editButton, SIGNAL(clicked()), this, SLOT(editPoster()) ); QObject::connect( tablePoster, SIGNAL(cellDoubleClicked(int,int)), this, SLOT(editPoster()) ); QObject::connect( removeButton,SIGNAL(clicked()) ,this, SLOT(removePoster()) ); mainLayout = new QHBoxLayout; mainLayout->addWidget(tablePoster); mainLayout->addLayout(buttonLayout); setLayout(mainLayout); setWindowTitle("My Poster Hiring"); }};
template <class Obj, class AddAndEdit>class WorkWithTheTable: public ButtonsEding, public TableSelection{protected: Obj *top; Obj *last; void displayFullTable(); void setTop(Obj *topList); Obj *getTop(); Obj *activeRow(); virtual void addObjectInTable(Obj *_obj, int row); virtual void editRowTable(Obj *_insertedObj, int row ); void addObject(); void editObject(); void removeObject();public: WorkWithTheTable();};
Страница сгенерирована за 0.014 секунд. Запросов: 18.