git-svn-id: svn://db.shs.com.ru/libs@379 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include <QLineEdit>
|
||||
#include <spinslider.h>
|
||||
#include <clineedit.h>
|
||||
#include <qcd_kview.h>
|
||||
#include <qcd_view.h>
|
||||
|
||||
using namespace CDUtils;
|
||||
|
||||
@@ -115,7 +115,7 @@ bool QCDCore::bindWidget(QWidget * w) {
|
||||
if (!w) return false;
|
||||
QString on = w->objectName();
|
||||
QString cn = w->metaObject()->className();
|
||||
if (cn == "CDKView") {
|
||||
if (cn == "CDView") {
|
||||
bindView(w);
|
||||
return false;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ bool QCDCore::bindWidget(QWidget * w, const CDType k) {
|
||||
connect(w, SIGNAL(textChanged(QString)), this, SLOT(slotText(QString)), Qt::UniqueConnection);
|
||||
ok = true;
|
||||
}
|
||||
if (cn == "CDKView") {
|
||||
if (cn == "CDView") {
|
||||
bindView(w);
|
||||
}
|
||||
if (!ok) return false;
|
||||
@@ -180,7 +180,7 @@ void QCDCore::updateBindedWidgets() {
|
||||
|
||||
|
||||
void QCDCore::bindView(QWidget * v) {
|
||||
CDKView * w = qobject_cast<CDKView * >(v);
|
||||
CDView * w = qobject_cast<CDView * >(v);
|
||||
if (!w) return;
|
||||
connect(this, SIGNAL(updateViewRequest()), w->model(), SLOT(updateModel()), Qt::UniqueConnection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user