diff --git a/PrimitivesGenerator.cc b/PrimitivesGenerator.cc index 269e6a669f765b07edb5d356fd63d0dc907002d8..eb5c876963cfaf20577766c42779b13f2660a1cb 100644 --- a/PrimitivesGenerator.cc +++ b/PrimitivesGenerator.cc @@ -83,45 +83,42 @@ void PrimitivesGeneratorPlugin::pluginsInitialized() { QIcon* icon; QAction* action; - const QString baseHelpURL = "" + clickText); + WhatsThisGenerator whatsThisGen("PrimitivesGenerator"); + whatsThisGen.setWhatsThis(action,tr("Create a Cube."),"Cube"); - action = primitivesMenu->addAction("Dodecahedron" ,this,SLOT(addDodecahedron())); + action = primitivesMenu->addAction("Dodecahedron" ,this,SLOT(addDodecahedron())); icon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"primitive_dodecahedron.png"); action->setIcon(*icon); - action->setWhatsThis(tr("Create a Dodecahedron. ") + baseHelpURL+ "#Dodecahedron'>" + clickText); + whatsThisGen.setWhatsThis(action,tr("Create a Dodecahedron."), "Dodecahedron"); action = primitivesMenu->addAction("Icosahedron" ,this,SLOT(addIcosahedron())); icon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"primitive_icosahedron.png"); action->setIcon(*icon); - action->setWhatsThis(tr("Create a Icosahedron. ") + baseHelpURL+ "#Icosahedron'>" + clickText); + whatsThisGen.setWhatsThis(action,tr("Create a Icosahedron.","Icosahedron")); action = primitivesMenu->addAction("Octahedron" ,this,SLOT(addOctahedron())); icon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"primitive_octahedron.png"); action->setIcon(*icon); - action->setWhatsThis(tr("Create an Octahedron. ") + baseHelpURL+ "#Octahedron'>" + clickText); + whatsThisGen.setWhatsThis(action,tr("Create an Octahedron."),"Octahedron"); action = primitivesMenu->addAction("Pyramid" ,this,SLOT(addPyramid())); icon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"primitive_pyramid.png"); action->setIcon(*icon); - action->setWhatsThis(tr("Create a Pyramid. ") + baseHelpURL+ "#Pyramid'>" + clickText); + whatsThisGen.setWhatsThis(action,tr("Create a Pyramid."),"Pyramid"); action = primitivesMenu->addAction("Sphere",this,SLOT(addSphere())); icon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"primitive_sphere.png"); action->setIcon(*icon); - action->setWhatsThis(tr("Create a Sphere. ") + baseHelpURL+ "#Sphere'>" + clickText); + whatsThisGen.setWhatsThis(action,tr("Create a Sphere. "),"Sphere"); action = primitivesMenu->addAction("Tetrahedron",this,SLOT(addTetrahedron())); icon = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"primitive_tetrahedron.png"); action->setIcon(*icon); - action->setWhatsThis(tr("Create a Tetrahedron. ") + baseHelpURL+ "#Tetrahedron'>" + clickText); - + whatsThisGen.setWhatsThis(action,tr("Create a Tetrahedron."),"Tetrahedron"); } }