Commit 3399bdca authored by Jan Möbius's avatar Jan Möbius

Reimplement DataType to support Scripting calls with DataType

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8513 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b5c874e9
......@@ -347,7 +347,7 @@ void DataControlPlugin::slotHeaderCustomContextMenuRequested ( const QPoint & _p
if (types.count() > 1)
for (int i=0; i < types.count(); i++){
action = menu.addAction(icon, tr("Show all of type '") + dataTypeName(types[i]) + "'",this,SLOT ( showAll() ));
action->setData( QVariant( types[i] ) );
action->setData( QVariant( types[i].value() ) );
}
menu.addSeparator();
......@@ -357,7 +357,7 @@ void DataControlPlugin::slotHeaderCustomContextMenuRequested ( const QPoint & _p
if (types.count() > 1)
for (int i=0; i < types.count(); i++){
action = menu.addAction(tr("Hide all of type '") + dataTypeName(types[i]) + "'",this,SLOT ( hideAll() ));
action->setData( QVariant( types[i] ) );
action->setData( QVariant( types[i].value() ) );
}
break;
......@@ -369,7 +369,7 @@ void DataControlPlugin::slotHeaderCustomContextMenuRequested ( const QPoint & _p
if (types.count() > 1)
for (int i=0; i < types.count(); i++){
action = menu.addAction(icon, tr("Select all of type '") + dataTypeName(types[i]) + "'",this,SLOT ( setAllSource() ));
action->setData( QVariant( types[i] ) );
action->setData( QVariant( types[i].value() ) );
}
menu.addSeparator();
......@@ -379,7 +379,7 @@ void DataControlPlugin::slotHeaderCustomContextMenuRequested ( const QPoint & _p
if (types.count() > 1)
for (int i=0; i < types.count(); i++){
action = menu.addAction(icon, tr("Deselect all of type '") + dataTypeName(types[i]) + "'",this,SLOT ( clearAllSource() ));
action->setData( QVariant( types[i] ) );
action->setData( QVariant( types[i].value() ) );
}
break;
......@@ -391,7 +391,7 @@ void DataControlPlugin::slotHeaderCustomContextMenuRequested ( const QPoint & _p
if (types.count() > 1)
for (int i=0; i < types.count(); i++){
action = menu.addAction(icon, tr("Select all of type '") + dataTypeName(types[i]) + "'",this,SLOT ( setAllTarget() ));
action->setData( QVariant( types[i] ) );
action->setData( QVariant( types[i].value() ) );
}
menu.addSeparator();
......@@ -401,7 +401,7 @@ void DataControlPlugin::slotHeaderCustomContextMenuRequested ( const QPoint & _p
if (types.count() > 1)
for (int i=0; i < types.count(); i++){
action = menu.addAction(icon, tr("Deselect all of type '") + dataTypeName(types[i]) + "'",this,SLOT ( clearAllTarget() ));
action->setData( QVariant( types[i] ) );
action->setData( QVariant( types[i].value() ) );
}
break;
......
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