mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:55:01 +02:00
Fix 1-9 keys not working in Running Scripts widget
This commit is contained in:
parent
c3d8cce4a6
commit
8480d02414
2 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <QHeaderView>
|
||||
#include <QPainter>
|
||||
#include <QDebug>
|
||||
#include <QKeyEvent>
|
||||
|
||||
ScriptsTableWidget::ScriptsTableWidget(QWidget *parent) :
|
||||
QTableWidget(parent)
|
||||
|
@ -39,3 +40,8 @@ void ScriptsTableWidget::paintEvent(QPaintEvent *event)
|
|||
|
||||
QTableWidget::paintEvent(event);
|
||||
}
|
||||
|
||||
void ScriptsTableWidget::keyPressEvent(QKeyEvent *event) {
|
||||
// Ignore keys so they will propagate correctly
|
||||
event->ignore();
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#ifndef __hifi__ScriptsTableWidget__
|
||||
#define __hifi__ScriptsTableWidget__
|
||||
|
||||
#include <QDebug>
|
||||
#include <QTableWidget>
|
||||
|
||||
class ScriptsTableWidget : public QTableWidget
|
||||
|
@ -18,6 +19,7 @@ public:
|
|||
|
||||
protected:
|
||||
virtual void paintEvent(QPaintEvent *event);
|
||||
virtual void keyPressEvent(QKeyEvent *event);
|
||||
};
|
||||
|
||||
#endif /* defined(__hifi__ScriptsTableWidget__) */
|
||||
|
|
Loading…
Reference in a new issue