Commit 5d98491b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove it. Menu is not implemented here

parent 79e9d3ff
Pipeline #77618 passed with stage
in 56 minutes and 14 seconds
...@@ -29,11 +29,6 @@ FolderConfigureTreeWidget::FolderConfigureTreeWidget(QWidget *parent) ...@@ -29,11 +29,6 @@ FolderConfigureTreeWidget::FolderConfigureTreeWidget(QWidget *parent)
mFolderTreeWidget->setObjectName(QStringLiteral("foldertreewidget")); mFolderTreeWidget->setObjectName(QStringLiteral("foldertreewidget"));
mFolderTreeWidget->folderTreeView()->setDragEnabled(false); mFolderTreeWidget->folderTreeView()->setDragEnabled(false);
mFolderTreeWidget->folderTreeView()->setSelectionMode(QAbstractItemView::ExtendedSelection); mFolderTreeWidget->folderTreeView()->setSelectionMode(QAbstractItemView::ExtendedSelection);
mFolderTreeWidget->folderTreeView()->setContextMenuPolicy(Qt::CustomContextMenu);
connect(mFolderTreeWidget->folderTreeView(),
&MailCommon::FolderTreeView::customContextMenuRequested,
this,
&FolderConfigureTreeWidget::slotCustomContextMenuRequested);
auto ftv = mFolderTreeWidget->folderTreeView(); auto ftv = mFolderTreeWidget->folderTreeView();
auto sourceModel = ftv->model(); auto sourceModel = ftv->model();
...@@ -82,14 +77,6 @@ void FolderConfigureTreeWidget::changeFolderSelection(bool select) ...@@ -82,14 +77,6 @@ void FolderConfigureTreeWidget::changeFolderSelection(bool select)
} }
} }
void FolderConfigureTreeWidget::slotCustomContextMenuRequested(const QPoint &)
{
QMenu menu(this);
// if (!menu.isEmpty()) {
menu.exec(QCursor::pos());
//}
}
Akonadi::Collection::List FolderConfigureTreeWidget::listCollections() const Akonadi::Collection::List FolderConfigureTreeWidget::listCollections() const
{ {
return mFolderSettingFilterProxyModel->listCollections(); return mFolderSettingFilterProxyModel->listCollections();
......
...@@ -23,7 +23,6 @@ public: ...@@ -23,7 +23,6 @@ public:
Q_REQUIRED_RESULT Akonadi::Collection::List listCollections() const; Q_REQUIRED_RESULT Akonadi::Collection::List listCollections() const;
private: private:
void slotCustomContextMenuRequested(const QPoint &);
void changeFolderSelection(bool select); void changeFolderSelection(bool select);
FolderSettingFilterProxyModel *const mFolderSettingFilterProxyModel; FolderSettingFilterProxyModel *const mFolderSettingFilterProxyModel;
MailCommon::FolderTreeWidget *const mFolderTreeWidget; MailCommon::FolderTreeWidget *const mFolderTreeWidget;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment