Merge branch 'master' into HEAD

This commit is contained in:
Mathias Panzenböck
2014-02-18 02:11:15 +01:00
4 changed files with 19 additions and 15 deletions

View File

@ -31,7 +31,6 @@ bool GetKey::x11Event( XEvent* e )
{
//keep Qt from closing the dialog upon seeing Esc pressed.
if (e->type == KeyPress) return true;
//On a key press, return the key and quit
//Ctrl+X == [No Key]
if (e->type == KeyRelease) {
@ -53,6 +52,11 @@ bool GetKey::x11Event( XEvent* e )
return false;
}
void GetKey::closeEvent(QCloseEvent *e) {
e->ignore();
done(-1);
}
void GetKey::paintEvent ( QPaintEvent * ) {
//whenever we need to repaint, draw in our text.
QPainter paint( this );