Commit f9279509 authored by Jan Möbius's avatar Jan Möbius

Enable Delete Key for data control plugin

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@3557 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5df291bd
......@@ -56,7 +56,7 @@ void DataControlPlugin::initializePlugin(){
}
void DataControlPlugin::pluginsInitialized() {
//set the slot descriptions
setDescriptions();
......@@ -88,7 +88,9 @@ void DataControlPlugin::pluginsInitialized() {
bool DataControlPlugin::initializeToolbox(QWidget*& _widget)
{
locked = false;
tool_ = new QWidget();
tool_ = new DatacontrolToolboxWidget();
connect( tool_ , SIGNAL( keyEvent( QKeyEvent* ) ),
this , SLOT(slotKeyEvent ( QKeyEvent* ) ));
_widget = tool_;
QSize size(300, 300);
tool_->resize(size);
......@@ -295,6 +297,16 @@ void DataControlPlugin::slotKeyEvent( QKeyEvent* _event )
return;
}
}
switch (_event->key()) {
case Qt::Key_Delete :
std::cerr << "Todo : Datacontrol Plugin: got delete key ..." << std::endl;
slotPopupRemove();
return;
default:
return;
}
}
void DataControlPlugin::setAllTarget() {
......
......@@ -49,6 +49,7 @@
#include <OpenFlipper/BasePlugin/INIInterface.hh>
#include <ACG/QtWidgets/QtExaminerViewer.hh>
#include <OpenFlipper/common/Types.hh>
#include "Toolbox.hh"
//#include "QCheckBoxDelegate.hh"
......@@ -126,7 +127,7 @@ class DataControlPlugin : public QObject, BaseInterface, ToolboxInterface, Globa
private :
/// Widget for Toolbox
QWidget* tool_;
DatacontrolToolboxWidget* tool_;
/// Layout for Toolbox
QGridLayout* MeshDialogLayout_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment