mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-19 13:19:59 +01:00
added keyevent
This commit is contained in:
@@ -26,3 +26,11 @@ void DisplayWindow::paintEvent(QPaintEvent *) {
|
|||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
painter.fillRect(QRect(QPoint(0, 0), size()), QColor(0,0,0));
|
painter.fillRect(QRect(QPoint(0, 0), size()), QColor(0,0,0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DisplayWindow::keyPressEvent(QKeyEvent *key) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisplayWindow::keyReleaseEvent(QKeyEvent *key) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ public:
|
|||||||
void createControls();
|
void createControls();
|
||||||
void displayImage(const QImage &img);
|
void displayImage(const QImage &img);
|
||||||
void paintEvent(QPaintEvent *paint);
|
void paintEvent(QPaintEvent *paint);
|
||||||
|
void keyPressEvent(QKeyEvent *ke);
|
||||||
|
void keyReleaseEvent(QKeyEvent *ke);
|
||||||
private:
|
private:
|
||||||
QLabel *img_label;
|
QLabel *img_label;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef _QT_HEADERS__
|
#ifndef _QT_HEADERS__
|
||||||
#define _QT_HEADERS__
|
#define _QT_HEADERS__
|
||||||
|
|
||||||
#define ac_version "v0.4.2-Beta"
|
#define ac_version "v0.5-Beta"
|
||||||
|
|
||||||
#include<QApplication>
|
#include<QApplication>
|
||||||
#include<QMainWindow>
|
#include<QMainWindow>
|
||||||
|
|||||||
Reference in New Issue
Block a user