forked from qt-creator/qt-creator
Removes unnecessary TODO. Basically 3 left:
1) Ask Roberto for API for which would give position of class definition's end. 2) Don't guess generated ui_<>.h filename but take it from somewhere (project manager???). 3) 3 methods are taken from Thorbjorn's code. Make for it common public API.
This commit is contained in:
@@ -408,7 +408,7 @@ static Document::Ptr addDefinition(const QString &headerFileName, const QString
|
|||||||
QFileInfo sourceFI(doc->fileName());
|
QFileInfo sourceFI(doc->fileName());
|
||||||
// we take only those documents which has the same filename and path (maybe we don't need to compare the path???)
|
// we take only those documents which has the same filename and path (maybe we don't need to compare the path???)
|
||||||
if (headerBaseName == sourceFI.baseName() && headerAbsolutePath == sourceFI.absolutePath()) {
|
if (headerBaseName == sourceFI.baseName() && headerAbsolutePath == sourceFI.absolutePath()) {
|
||||||
ITextEditable *editable = qobject_cast<ITextEditable *>( // TODO: add the code into appropriate namespace
|
ITextEditable *editable = qobject_cast<ITextEditable *>(
|
||||||
TextEditor::BaseTextEditor::openEditorAt(doc->fileName(), 0));
|
TextEditor::BaseTextEditor::openEditorAt(doc->fileName(), 0));
|
||||||
if (editable) {
|
if (editable) {
|
||||||
const QString contents = editable->contents();
|
const QString contents = editable->contents();
|
||||||
|
|||||||
Reference in New Issue
Block a user