summaryrefslogtreecommitdiffstats
path: root/fsview.cpp
blob: 6b0b7c3d88ba704857e217d3ef59e6a8997014a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <QMenu>
#include <QContextMenuEvent>

#include "fsview.h"

FSView::FSView(QWidget *parent) : QTreeView(parent) {}

void FSView::contextMenuEvent(QContextMenuEvent *e){
    QMenu contextMenu(this);
    for(QAction *a : actions()){
        if(a->data() != InvisibleAction){
            contextMenu.addAction(a);
        }
    }
    contextMenu.exec(e->globalPos());
}