| 82 | } |
| 83 | |
| 84 | void StatusBar::registerStatus(QObject* status) |
| 85 | { |
| 86 | Q_ASSERT(qobject_cast<IStatus*>(status)); |
| 87 | // can't convert this to new signal slot syntax, IStatus is not a QObject |
| 88 | connect(status, SIGNAL(clearMessage(KDevelop::IStatus*)), |
| 89 | SLOT(clearMessage(KDevelop::IStatus*))); |
| 90 | connect(status, SIGNAL(showMessage(KDevelop::IStatus*,QString,int)), |
| 91 | SLOT(showMessage(KDevelop::IStatus*,QString,int))); |
| 92 | connect(status, SIGNAL(hideProgress(KDevelop::IStatus*)), |
| 93 | SLOT(hideProgress(KDevelop::IStatus*))); |
| 94 | connect(status, SIGNAL(showProgress(KDevelop::IStatus*,int,int,int)), |
| 95 | SLOT(showProgress(KDevelop::IStatus*,int,int,int))); |
| 96 | connect(status, SIGNAL(showErrorMessage(QString,int)), |
| 97 | SLOT(showErrorMessage(QString,int))); |
| 98 | } |
| 99 | |
| 100 | QWidget* errorMessage(QWidget* parent, const QString& text) |
| 101 | { |
no outgoing calls
no test coverage detected