diff options
| author | Jarek Kobus <jkobus@trolltech.com> | 2008-12-11 13:52:37 +0100 |
|---|---|---|
| committer | Jarek Kobus <jkobus@trolltech.com> | 2008-12-11 13:52:37 +0100 |
| commit | 2bb0db7d82937ae14729ba034823fadf604e8553 (patch) | |
| tree | cfa7768b78e2e89d92fed95221970d6f09ace44b /src | |
| parent | ec01200d3bdc9e5222dc92e0832bb6335312f1cf (diff) | |
| download | qt-creator-2bb0db7d82937ae14729ba034823fadf604e8553.tar.gz | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/designer/workbenchintegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/designer/workbenchintegration.cpp b/src/plugins/designer/workbenchintegration.cpp index 8cedef14b8..cc6f5afb7d 100644 --- a/src/plugins/designer/workbenchintegration.cpp +++ b/src/plugins/designer/workbenchintegration.cpp @@ -408,7 +408,7 @@ static Document::Ptr addDefinition(const QString &headerFileName, const QString 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???) 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)); if (editable) { const QString contents = editable->contents(); |
