Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/statusbar.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 109 | { | |||
---|---|---|---|---|---|
118 | connect(status, SIGNAL(hideProgress(KDevelop::IStatus*)), | 118 | connect(status, SIGNAL(hideProgress(KDevelop::IStatus*)), | ||
119 | SLOT(hideProgress(KDevelop::IStatus*)), | 119 | SLOT(hideProgress(KDevelop::IStatus*)), | ||
120 | Qt::QueuedConnection); | 120 | Qt::QueuedConnection); | ||
121 | connect(status, SIGNAL(showProgress(KDevelop::IStatus*,int,int,int)), | 121 | connect(status, SIGNAL(showProgress(KDevelop::IStatus*,int,int,int)), | ||
122 | SLOT(showProgress(KDevelop::IStatus*,int,int,int)), | 122 | SLOT(showProgress(KDevelop::IStatus*,int,int,int)), | ||
123 | Qt::QueuedConnection); | 123 | Qt::QueuedConnection); | ||
124 | 124 | | |||
125 | // Don't try to connect when the status object doesn't provide an error message signal (ie. avoid warning) | 125 | // Don't try to connect when the status object doesn't provide an error message signal (ie. avoid warning) | ||
126 | if (status->metaObject()->indexOfSignal(QMetaObject::normalizedSignature("showErrorMessage(QString,int)")) != -1) { | 126 | const auto signalSignature = QMetaObject::normalizedSignature("showErrorMessage(QString,int)"); | ||
127 | if (status->metaObject()->indexOfSignal(signalSignature.constData()) != -1) { | ||||
127 | connect(status, SIGNAL(showErrorMessage(QString,int)), | 128 | connect(status, SIGNAL(showErrorMessage(QString,int)), | ||
128 | SLOT(showErrorMessage(QString,int)), Qt::QueuedConnection); | 129 | SLOT(showErrorMessage(QString,int)), Qt::QueuedConnection); | ||
129 | } | 130 | } | ||
130 | } | 131 | } | ||
131 | 132 | | |||
132 | QWidget* errorMessage(QWidget* parent, const QString& text) | 133 | QWidget* errorMessage(QWidget* parent, const QString& text) | ||
133 | { | 134 | { | ||
134 | KSqueezedTextLabel* label = new KSqueezedTextLabel(parent); | 135 | KSqueezedTextLabel* label = new KSqueezedTextLabel(parent); | ||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |