Definition at line 35 of file kcheckaccelerators.cpp.
◆ KisKCheckAcceleratorsInitializer()
| KisKCheckAcceleratorsInitializer::KisKCheckAcceleratorsInitializer |
( |
QObject * | parent = 0 | ) |
|
|
inlineexplicit |
◆ initiateIfNeeded
| void KisKCheckAcceleratorsInitializer::initiateIfNeeded |
( |
| ) |
|
|
inlineslot |
Definition at line 45 of file kcheckaccelerators.cpp.
46 {
47 KConfigGroup cg(KSharedConfig::openConfig(), "Development");
48 QString sKey = cg.readEntry("CheckAccelerators").trimmed();
49 int key = 0;
50 if (!sKey.isEmpty()) {
52 if (!cuts.isEmpty()) {
53 key = cuts.first()[0];
54 }
55 }
56 const bool autoCheck = cg.readEntry("AutoCheckAccelerators", true);
57 const bool copyWidgetText = cg.readEntry("CopyWidgetText", false);
58 if (!copyWidgetText && key == 0 && !autoCheck) {
59 deleteLater();
60 return;
61 }
62
64 deleteLater();
65 }
The documentation for this class was generated from the following file: