Back to index

texmacs  1.0.7.15
Functions
QTMMenuHelper.cpp File Reference
#include "QTMMenuHelper.hpp"
#include "qt_gui.hpp"
#include "qt_utilities.hpp"
#include "Scheme/object.hpp"

Go to the source code of this file.

Functions

void rerootActions (QWidget *dest, QWidget *src)

Function Documentation

void rerootActions ( QWidget *  dest,
QWidget *  src 
)

Definition at line 34 of file QTMMenuHelper.cpp.

                                            {
  QList<QAction *> list = dest->actions();
  while (!list.isEmpty()) {
    QAction* a= list.takeFirst();
    dest->removeAction (a);
    //    delete a;
    a->deleteLater();
  }
  list = src->actions();
  while (!list.isEmpty()) {
    QAction* a= list.takeFirst();
    dest->addAction (a);
    a->setParent (dest);
  }
}

Here is the caller graph for this function: