diff options
| author | 2010-05-23 18:29:02 +0000 | |
|---|---|---|
| committer | 2010-05-23 18:29:02 +0000 | |
| commit | 5cb8ba52ad4fed4d47aaca2b72d07525024ba57a (patch) | |
| tree | 6caf9cb2894ed9e5f8015cb6731440a5bea3c7e5 /src/modules/classeditor | |
| parent | fixed shortcuts (diff) | |
| download | KVIrc-5cb8ba52ad4fed4d47aaca2b72d07525024ba57a.tar.gz KVIrc-5cb8ba52ad4fed4d47aaca2b72d07525024ba57a.tar.bz2 KVIrc-5cb8ba52ad4fed4d47aaca2b72d07525024ba57a.zip | |
Some fixes in classeditor
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4367 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/classeditor')
| -rw-r--r-- | src/modules/classeditor/classeditor.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/classeditor/classeditor.cpp b/src/modules/classeditor/classeditor.cpp index ff6a5ddc3..16df7836d 100644 --- a/src/modules/classeditor/classeditor.cpp +++ b/src/modules/classeditor/classeditor.cpp @@ -1430,9 +1430,11 @@ void KviClassEditor::build() } if (pClass->classNotBuilt()) { + // debug("compiling %s",pClass->name().toUtf8().data()); KviClassEditorTreeWidgetItem *pParentClass=m_pClasses->find(pClass->InheritsClass()); pLinkedClasses.append(pClass); + //if (!pParentClass) debug("no parent class"); while(pParentClass) { if (pParentClass->classNotBuilt()) pLinkedClasses.append(pParentClass); @@ -1469,6 +1471,7 @@ void KviClassEditor::build() QMessageBox::Ok,QMessageBox::NoButton,QMessageBox::NoButton); break; } + //else debug("class compiled %s :\n",szClass.toUtf8().data()); pLinkedClasses.at(i)->setClassNotBuilt(false); m_pEditor->setModified(false); } @@ -1718,10 +1721,17 @@ KviClassEditorDialog::KviClassEditorDialog(QWidget * pParent, const QString & sz if (!szInheritsClassName.isEmpty()) { int iCurrentIdx=m_pInheritsClassComboBox->findText(szInheritsClassName); + if (iCurrentIdx==-1) iCurrentIdx=m_pInheritsClassComboBox->findText("object"); + m_pInheritsClassComboBox->setCurrentIndex(iCurrentIdx); + } + else + { + int iCurrentIdx=m_pInheritsClassComboBox->findText("object"); m_pInheritsClassComboBox->setCurrentIndex(iCurrentIdx); } m_pClassNameLineEdit->setFocus(); + hbox = new KviTalHBox(this); hbox->setSpacing(0); hbox->setMargin(0); |
