forked from qt-creator/qt-creator
Remove some old TODO items
Change-Id: I43c893176e5a83530f909371fc143dbb0cafd3ba Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -64,7 +64,7 @@ struct FancyMainWindowPrivate
|
||||
FancyMainWindowPrivate();
|
||||
|
||||
bool m_locked;
|
||||
bool m_handleDockVisibilityChanges; //todo
|
||||
bool m_handleDockVisibilityChanges;
|
||||
|
||||
QAction m_menuSeparator1;
|
||||
QAction m_toggleLockedAction;
|
||||
|
||||
@@ -375,8 +375,8 @@ public:
|
||||
bool duplicateSupported() const { return false; }
|
||||
IEditor *duplicate(QWidget * /* parent */) { return 0; }
|
||||
|
||||
QByteArray saveState() const { return QByteArray(); } // TODO
|
||||
bool restoreState(const QByteArray & /* state */) { return false; } // TODO
|
||||
QByteArray saveState() const { return QByteArray(); } // not supported
|
||||
bool restoreState(const QByteArray & /* state */) { return false; } // not supported
|
||||
|
||||
QWidget *toolBar() { return m_toolBar; }
|
||||
|
||||
|
||||
@@ -1588,7 +1588,7 @@ bool EditorManager::saveDocumentAs(IDocument *documentParam)
|
||||
const bool success = DocumentManager::saveDocument(document, absoluteFilePath);
|
||||
document->checkPermissions();
|
||||
|
||||
// @todo: There is an issue to be treated here. The new file might be of a different mime
|
||||
// TODO: There is an issue to be treated here. The new file might be of a different mime
|
||||
// type than the original and thus require a different editor. An alternative strategy
|
||||
// would be to close the current editor and open a new appropriate one, but this is not
|
||||
// a good way out either (also the undo stack would be lost). Perhaps the best is to
|
||||
|
||||
@@ -264,7 +264,7 @@ void EditorView::setCurrentEditor(IEditor *editor)
|
||||
|| m_container->indexOf(editor->widget()) == -1) {
|
||||
m_toolBar->updateEditorStatus(0);
|
||||
m_infoBarDisplay->setInfoBar(0);
|
||||
// ### TODO the combo box m_editorList should show an empty item
|
||||
QTC_CHECK(m_container->count() == 0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,6 @@ public:
|
||||
|
||||
QString title() const;
|
||||
void setTitle(const QString &title);
|
||||
// TODO rename setError
|
||||
void setError(bool on);
|
||||
bool hasError() const;
|
||||
QSize sizeHint() const;
|
||||
|
||||
@@ -182,7 +182,7 @@ void RightPaneWidget::readSettings(QSettings *settings)
|
||||
if (settings->contains(QLatin1String("RightPane/Visible"))) {
|
||||
setShown(settings->value(QLatin1String("RightPane/Visible")).toBool());
|
||||
} else {
|
||||
setShown(false); //TODO set to false
|
||||
setShown(false);
|
||||
}
|
||||
|
||||
if (settings->contains(QLatin1String("RightPane/Width"))) {
|
||||
|
||||
@@ -273,13 +273,6 @@ QVariant SearchResultTreeModel::data(const SearchResultTreeItem *row, int role)
|
||||
case ItemDataRoles::IsGeneratedRole:
|
||||
result = row->isGenerated();
|
||||
break;
|
||||
// TODO this looks stupid in case of symbol tree, is it necessary?
|
||||
// case Qt::BackgroundRole:
|
||||
// if (row->parent() && row->parent()->parent())
|
||||
// result = QVariant();
|
||||
// else
|
||||
// result = QApplication::palette().base().color().darker(105);
|
||||
// break;
|
||||
default:
|
||||
result = QVariant();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user