forked from qt-creator/qt-creator
Provide "Open with" context menu in qrc editor.
Task-number: QTCREATORBUG-4224 Change-Id: If2b13fa8b58779058d483d532c2c9649f7fa8dfd Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
This commit is contained in:
@@ -1333,6 +1333,7 @@ void FileManager::populateOpenWithMenu(QMenu *menu, const QString &fileName)
|
||||
|
||||
void FileManager::executeOpenWithMenuAction(QAction *action)
|
||||
{
|
||||
QTC_ASSERT(action, return);
|
||||
EditorManager *em = EditorManager::instance();
|
||||
const QVariant data = action->data();
|
||||
Internal::OpenWithEntry entry = qVariantValue<Internal::OpenWithEntry>(data);
|
||||
|
||||
@@ -138,13 +138,14 @@ public:
|
||||
void setProjectsDirectory(const QString &);
|
||||
|
||||
static void populateOpenWithMenu(QMenu *menu, const QString &fileName);
|
||||
static void executeOpenWithMenuAction(QAction *action);
|
||||
|
||||
public slots:
|
||||
/* Used to notify e.g. the code model to update the given files. Does *not*
|
||||
lead to any editors to reload or any other editor manager actions. */
|
||||
void notifyFilesChangedInternally(const QStringList &files);
|
||||
|
||||
void executeOpenWithMenuAction(QAction *action);
|
||||
|
||||
signals:
|
||||
void currentFileChanged(const QString &filePath);
|
||||
/* Used to notify e.g. the code model to update the given files. Does *not*
|
||||
|
||||
Reference in New Issue
Block a user