tools/qdbus/qdbusviewer/qdbusviewer.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    74     services->setHeaderLabels(QStringList(QLatin1String("Services")));
    74     services->setHeaderLabels(QStringList(QLatin1String("Services")));
    75 
    75 
    76     tree = new QTreeView;
    76     tree = new QTreeView;
    77     tree->setContextMenuPolicy(Qt::CustomContextMenu);
    77     tree->setContextMenuPolicy(Qt::CustomContextMenu);
    78 
    78 
    79     connect(tree, SIGNAL(activated(const QModelIndex&)), this, SLOT(activate(const QModelIndex&)));
    79     connect(tree, SIGNAL(activated(QModelIndex)), this, SLOT(activate(QModelIndex)));
    80 
    80 
    81     refreshAction = new QAction(tr("&Refresh"), tree);
    81     refreshAction = new QAction(tr("&Refresh"), tree);
    82     refreshAction->setData(42); // increase the amount of 42 used as magic number by one
    82     refreshAction->setData(42); // increase the amount of 42 used as magic number by one
    83     refreshAction->setShortcut(QKeySequence::Refresh);
    83     refreshAction->setShortcut(QKeySequence::Refresh);
    84     connect(refreshAction, SIGNAL(triggered()), this, SLOT(refreshChildren()));
    84     connect(refreshAction, SIGNAL(triggered()), this, SLOT(refreshChildren()));