Changeset View
Changeset View
Standalone View
Standalone View
kexi/core/kexi.cpp
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Line(s) | |||||
193 | } | 193 | } | ||
194 | 194 | | |||
195 | bool ObjectStatus::error() const | 195 | bool ObjectStatus::error() const | ||
196 | { | 196 | { | ||
197 | return !message.isEmpty() | 197 | return !message.isEmpty() | ||
198 | || (dynamic_cast<KexiDB::Object*>((QObject*)dbObj) && dynamic_cast<KexiDB::Object*>((QObject*)dbObj)->error()); | 198 | || (dynamic_cast<KexiDB::Object*>((QObject*)dbObj) && dynamic_cast<KexiDB::Object*>((QObject*)dbObj)->error()); | ||
199 | } | 199 | } | ||
200 | 200 | | |||
201 | void ObjectStatus::setStatus(const QString& message, const QString& description) | 201 | void ObjectStatus::setStatus(const QString& message, const QString& description, const QString& errorSql) | ||
202 | { | 202 | { | ||
203 | this->dbObj = 0; | 203 | this->dbObj = 0; | ||
204 | this->message = message; | 204 | this->message = message; | ||
205 | this->description = description; | 205 | this->description = description; | ||
206 | this->errorSql = errorSql; | ||||
206 | } | 207 | } | ||
207 | 208 | | |||
208 | void ObjectStatus::setStatus(KexiDB::Object* dbObject, const QString& message, const QString& description) | 209 | void ObjectStatus::setStatus(KexiDB::Object* dbObject, const QString& message, const QString& description) | ||
209 | { | 210 | { | ||
210 | if (dynamic_cast<QObject*>(dbObject)) { | 211 | if (dynamic_cast<QObject*>(dbObject)) { | ||
211 | dbObj = dynamic_cast<QObject*>(dbObject); | 212 | dbObj = dynamic_cast<QObject*>(dbObject); | ||
212 | } | 213 | } | ||
213 | this->message = message; | 214 | this->message = message; | ||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |