Skip to content

Commit

Permalink
Provide shortcut to open a file
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Weisbach committed Jul 23, 2015
1 parent f5d71e4 commit 046ff74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
#include <QFileDialog>
#include <QFileInfo>
#include <QDebug>
#include <QKeySequence>

MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
openShortcut(QKeySequence::Open, this, SLOT(onOpenFile())),
m_currentH264Model(NULL)
{
ui->setupUi(this);
Expand Down
2 changes: 2 additions & 0 deletions MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define MAINWINDOW_H

#include <QMainWindow>
#include <QShortcut>
#include "H264NALListModel.h"

namespace Ui {
Expand All @@ -18,6 +19,7 @@ class MainWindow : public QMainWindow

private:
Ui::MainWindow *ui;
QShortcut openShortcut;
H264NALListModel *m_currentH264Model;

private slots:
Expand Down

0 comments on commit 046ff74

Please sign in to comment.