MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / connectAll

Method connectAll

Components/BookmarkManagerDialog.cpp:65–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void
66BookmarkManagerDialog::connectAll(void)
67{
68 connect(
69 this->editDelegate,
70 SIGNAL(clicked(QModelIndex)),
71 this,
72 SLOT(onEditBookmark(QModelIndex)));
73
74 connect(
75 this->removeDelegate,
76 SIGNAL(clicked(QModelIndex)),
77 this,
78 SLOT(onRemoveBookmark(QModelIndex)));
79
80 connect(
81 this->editDialog,
82 SIGNAL(accepted(void)),
83 this,
84 SLOT(onEditAccepted(void)));
85
86 connect(
87 this->ui->bookmarkView,
88 SIGNAL(activated(QModelIndex const &)),
89 this,
90 SLOT(onCellActivated(QModelIndex const &)));
91}
92
93BookmarkManagerDialog::~BookmarkManagerDialog()
94{
95 delete ui;
96}
97
98void
99BookmarkManagerDialog::showEvent(QShowEvent *)
100{
101 this->notifyChanged();
102
103 this->ui->bookmarkView->resizeColumnsToContents();
104 this->ui->bookmarkView->setColumnWidth(3, this->editDelegate->width());
105 this->ui->bookmarkView->setColumnWidth(4, this->removeDelegate->width());
106}
107
108void
109BookmarkManagerDialog::notifyChanged(void)

Callers 1

BookmarkManagerDialogMethod · 0.95

Calls 2

widthMethod · 0.80
notifyChangedMethod · 0.45

Tested by

no test coverage detected