This commit is contained in:
Manuel
2019-01-21 21:00:00 +01:00
parent 08e159eb8e
commit 39047e6470
8 changed files with 1 additions and 1 deletions

30
src/mainwindow.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class QLabel;
class QKeyEvent;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
void keyPressEvent(QKeyEvent* event);
void resizeEvent(QResizeEvent* event);
~MainWindow();
void setImage(std::string path);
private:
Ui::MainWindow *ui;
QLabel *image;
std::string currentImage;
void updateImage();
};
#endif // MAINWINDOW_H