Commit 6550e65d authored by Jan Möbius's avatar Jan Möbius

Icons for postprocessors and renderers

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12412 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 764c7a92
......@@ -218,6 +218,7 @@ void CoreWidget::updatePopupMenuCoordsysNode(QMenu* _menu , const int /*_part*/
if ( renderManager().available() > 1 ) {
QMenu* rendererMenu = new QMenu(tr("Renderers"),_menu);
rendererMenu->setIcon(QIcon(iconPath+"renderers.png"));
_menu->addMenu(rendererMenu);
......@@ -261,6 +262,7 @@ void CoreWidget::updatePopupMenuCoordsysNode(QMenu* _menu , const int /*_part*/
if ( postProcessorManager().available() > 1 ) {
QMenu* postProcessorMenu = new QMenu(tr("Post processors"),_menu);
postProcessorMenu->setIcon(QIcon(iconPath+"postprocessors.png"));
_menu->addMenu(postProcessorMenu);
......
......@@ -645,9 +645,13 @@ void CoreWidget::slotUpdateRendererMenu() {
// Add the menu if it does not exist yet
if ( rendererMenu_ == 0 ) {
QString iconPath = OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator();
rendererMenu_ = new QMenu(tr("Global Renderer"),viewMenu_);
rendererMenu_->setIcon(QIcon(iconPath+"renderers.png"));
viewMenu_->addMenu(rendererMenu_);
connect(rendererMenu_,SIGNAL(aboutToShow () ) , this, SLOT(slotUpdateRendererMenu() ) );
}
......@@ -711,7 +715,10 @@ void CoreWidget::slotUpdatePostProcessorMenu() {
// Add the menu if it does not exist yet
if ( postprocessorMenu_ == 0 ) {
QString iconPath = OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator();
postprocessorMenu_ = new QMenu(tr("Global Post Processor"),viewMenu_);
postprocessorMenu_->setIcon(QIcon(iconPath+"postprocessors.png"));
viewMenu_->addMenu(postprocessorMenu_);
connect(postprocessorMenu_,SIGNAL(aboutToShow () ) , this, SLOT(slotUpdatePostProcessorMenu() ) );
......
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