Changeset View
Changeset View
Standalone View
Standalone View
krusader/ActionMan/actionman.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 37 | { | |||
---|---|---|---|---|---|
45 | mainLayout->addWidget(userActionPage); | 45 | mainLayout->addWidget(userActionPage); | ||
46 | 46 | | |||
47 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close|QDialogButtonBox::Apply); | 47 | QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close|QDialogButtonBox::Apply); | ||
48 | mainLayout->addWidget(buttonBox); | 48 | mainLayout->addWidget(buttonBox); | ||
49 | 49 | | |||
50 | applyButton = buttonBox->button(QDialogButtonBox::Apply); | 50 | applyButton = buttonBox->button(QDialogButtonBox::Apply); | ||
51 | applyButton->setEnabled(false); | 51 | applyButton->setEnabled(false); | ||
52 | 52 | | |||
53 | connect(buttonBox, SIGNAL(rejected()), SLOT(slotClose())); | 53 | connect(buttonBox, &QDialogButtonBox::rejected, this, &ActionMan::slotClose); | ||
54 | connect(applyButton, SIGNAL(clicked()), SLOT(slotApply())); | 54 | connect(applyButton, &QPushButton::clicked, this, &ActionMan::slotApply); | ||
55 | connect(userActionPage, SIGNAL(changed()), SLOT(slotEnableApplyButton())); | 55 | connect(userActionPage, &UserActionPage::changed, this, &ActionMan::slotEnableApplyButton); | ||
56 | connect(userActionPage, SIGNAL(applied()), SLOT(slotDisableApplyButton())); | 56 | connect(userActionPage, &UserActionPage::applied, this, &ActionMan::slotDisableApplyButton); | ||
57 | 57 | | |||
58 | exec(); | 58 | exec(); | ||
59 | 59 | | |||
60 | krApp->updateUserActions(); | 60 | krApp->updateUserActions(); | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | ActionMan::~ActionMan() | 63 | ActionMan::~ActionMan() | ||
64 | { | 64 | { | ||
Show All 23 Lines |