| 1167 | */ |
| 1168 | |
| 1169 | QAction *KUndo2QStack::createRedoAction(QObject *parent) const |
| 1170 | { |
| 1171 | KUndo2Action *result = new KUndo2Action(i18n("Redo %1"), i18nc("Default text for redo action", "Redo"), parent); |
| 1172 | result->setEnabled(canRedo()); |
| 1173 | result->setPrefixedText(redoText()); |
| 1174 | connect(this, SIGNAL(canRedoChanged(bool)), |
| 1175 | result, SLOT(setEnabled(bool))); |
| 1176 | connect(this, SIGNAL(redoTextChanged(QString)), |
| 1177 | result, SLOT(setPrefixedText(QString))); |
| 1178 | connect(result, SIGNAL(triggered()), this, SLOT(redo())); |
| 1179 | return result; |
| 1180 | } |
| 1181 | |
| 1182 | #endif // QT_NO_ACTION |
| 1183 |
nothing calls this directly
no test coverage detected