Merge branch 'master' into HEAD
This commit is contained in:
@ -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 );
|
||||
|
Reference in New Issue
Block a user