Changeset View
Changeset View
Standalone View
Standalone View
addons/katebuild-plugin/targets.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 29 | { | |||
---|---|---|---|---|---|
74 | tLayout->addWidget(copyTarget); | 74 | tLayout->addWidget(copyTarget); | ||
75 | tLayout->addWidget(deleteTarget); | 75 | tLayout->addWidget(deleteTarget); | ||
76 | tLayout->setContentsMargins(0,0,0,0); | 76 | tLayout->setContentsMargins(0,0,0,0); | ||
77 | 77 | | |||
78 | QVBoxLayout* layout = new QVBoxLayout(this); | 78 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
79 | layout->addLayout(tLayout); | 79 | layout->addLayout(tLayout); | ||
80 | layout->addWidget(targetsView); | 80 | layout->addWidget(targetsView); | ||
81 | 81 | | |||
82 | connect(targetCombo, SIGNAL(activated(int)), this, SLOT(targetSetSelected(int))); | 82 | connect(targetCombo, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, &TargetsUi::targetSetSelected); | ||
83 | connect(targetsView->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), this, SLOT(targetActivated(QModelIndex))); | 83 | connect(targetsView->selectionModel(), &QItemSelectionModel::currentChanged, | ||
84 | this, &TargetsUi::targetActivated); | ||||
84 | //connect(targetsView, SIGNAL(clicked(QModelIndex)), this, SLOT(targetActivated(QModelIndex))); | 85 | //connect(targetsView, SIGNAL(clicked(QModelIndex)), this, SLOT(targetActivated(QModelIndex))); | ||
85 | 86 | | |||
86 | targetsView->installEventFilter(this); | 87 | targetsView->installEventFilter(this); | ||
87 | } | 88 | } | ||
88 | 89 | | |||
89 | void TargetsUi::targetSetSelected(int index) | 90 | void TargetsUi::targetSetSelected(int index) | ||
90 | { | 91 | { | ||
91 | //qDebug() << index; | 92 | //qDebug() << index; | ||
Show All 34 Lines |