Changeset View
Changeset View
Standalone View
Standalone View
krusader/Dialogs/krmaskchoice.cpp
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
105 | MainLayout->addWidget(ButtonBox); | 105 | MainLayout->addWidget(ButtonBox); | ||
106 | 106 | | |||
107 | // signals and slots connections | 107 | // signals and slots connections | ||
108 | connect(ButtonBox, &QDialogButtonBox::rejected, this, &KRMaskChoice::reject); | 108 | connect(ButtonBox, &QDialogButtonBox::rejected, this, &KRMaskChoice::reject); | ||
109 | connect(ButtonBox, &QDialogButtonBox::accepted, this, &KRMaskChoice::accept); | 109 | connect(ButtonBox, &QDialogButtonBox::accepted, this, &KRMaskChoice::accept); | ||
110 | connect(PushButton7, &QPushButton::clicked, this, &KRMaskChoice::addSelection); | 110 | connect(PushButton7, &QPushButton::clicked, this, &KRMaskChoice::addSelection); | ||
111 | connect(PushButton7_2, &QPushButton::clicked, this, &KRMaskChoice::deleteSelection); | 111 | connect(PushButton7_2, &QPushButton::clicked, this, &KRMaskChoice::deleteSelection); | ||
112 | connect(PushButton7_3, &QPushButton::clicked, this, &KRMaskChoice::clearSelections); | 112 | connect(PushButton7_3, &QPushButton::clicked, this, &KRMaskChoice::clearSelections); | ||
113 | connect(selection, QOverload<const QString &>::of(&KComboBox::activated), selection, &KComboBox::setEditText); | 113 | connect(selection, static_cast<void (KComboBox::*)(const QString &)>(&KComboBox::activated), | ||
114 | selection, &KComboBox::setEditText); | ||||
114 | connect(selection->lineEdit(), &QLineEdit::returnPressed, this, &KRMaskChoice::accept); | 115 | connect(selection->lineEdit(), &QLineEdit::returnPressed, this, &KRMaskChoice::accept); | ||
115 | connect(preSelections, &KrListWidget::currentItemChanged, this, &KRMaskChoice::currentItemChanged); | 116 | connect(preSelections, &KrListWidget::currentItemChanged, this, &KRMaskChoice::currentItemChanged); | ||
116 | connect(preSelections, &KrListWidget::itemActivated, this, &KRMaskChoice::acceptFromList); | 117 | connect(preSelections, &KrListWidget::itemActivated, this, &KRMaskChoice::acceptFromList); | ||
117 | } | 118 | } | ||
118 | 119 | | |||
119 | /* | 120 | /* | ||
120 | * Destroys the object and frees any allocated resources | 121 | * Destroys the object and frees any allocated resources | ||
121 | */ | 122 | */ | ||
Show All 30 Lines |