1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Move connectons from .ui to .cpp

This commit is contained in:
S. Razi Alavizadeh 2013-01-10 20:18:35 +03:30
parent 01cc581add
commit da13a65c35
2 changed files with 3 additions and 34 deletions

View File

@ -57,6 +57,8 @@ BookmarksManager::BookmarksManager(QupZilla* mainClass, QWidget* parent)
connect(ui->bookmarksTree, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(contextMenuRequested(const QPoint &))); connect(ui->bookmarksTree, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(contextMenuRequested(const QPoint &)));
connect(ui->bookmarksTree, SIGNAL(itemControlClicked(QTreeWidgetItem*)), this, SLOT(itemControlClicked(QTreeWidgetItem*))); connect(ui->bookmarksTree, SIGNAL(itemControlClicked(QTreeWidgetItem*)), this, SLOT(itemControlClicked(QTreeWidgetItem*)));
connect(ui->bookmarksTree, SIGNAL(itemMiddleButtonClicked(QTreeWidgetItem*)), this, SLOT(itemControlClicked(QTreeWidgetItem*))); connect(ui->bookmarksTree, SIGNAL(itemMiddleButtonClicked(QTreeWidgetItem*)), this, SLOT(itemControlClicked(QTreeWidgetItem*)));
connect(ui->collapseAll, SIGNAL(clicked()), ui->bookmarksTree, SLOT(collapseAll()));
connect(ui->expandAll, SIGNAL(clicked()), ui->bookmarksTree, SLOT(expandAll()));
connect(m_bookmarksModel, SIGNAL(bookmarkAdded(BookmarksModel::Bookmark)), this, SLOT(addBookmark(BookmarksModel::Bookmark))); connect(m_bookmarksModel, SIGNAL(bookmarkAdded(BookmarksModel::Bookmark)), this, SLOT(addBookmark(BookmarksModel::Bookmark)));
connect(m_bookmarksModel, SIGNAL(bookmarkDeleted(BookmarksModel::Bookmark)), this, SLOT(removeBookmark(BookmarksModel::Bookmark))); connect(m_bookmarksModel, SIGNAL(bookmarkDeleted(BookmarksModel::Bookmark)), this, SLOT(removeBookmark(BookmarksModel::Bookmark)));

View File

@ -118,38 +118,5 @@
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections> <connections/>
<connection>
<sender>collapseAll</sender>
<signal>clicked()</signal>
<receiver>bookmarksTree</receiver>
<slot>collapseAll()</slot>
<hints>
<hint type="sourcelabel">
<x>208</x>
<y>446</y>
</hint>
<hint type="destinationlabel">
<x>344</x>
<y>218</y>
</hint>
</hints>
</connection>
<connection>
<sender>expandAll</sender>
<signal>clicked()</signal>
<receiver>bookmarksTree</receiver>
<slot>expandAll()</slot>
<hints>
<hint type="sourcelabel">
<x>127</x>
<y>446</y>
</hint>
<hint type="destinationlabel">
<x>344</x>
<y>218</y>
</hint>
</hints>
</connection>
</connections>
</ui> </ui>