| 63 | } |
| 64 | |
| 65 | void |
| 66 | BookmarkManagerDialog::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 | |
| 93 | BookmarkManagerDialog::~BookmarkManagerDialog() |
| 94 | { |
| 95 | delete ui; |
| 96 | } |
| 97 | |
| 98 | void |
| 99 | BookmarkManagerDialog::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 | |
| 108 | void |
| 109 | BookmarkManagerDialog::notifyChanged(void) |
no test coverage detected