equal
deleted
inserted
replaced
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())); |