Exemplo n.º 1
0
Window::~Window()
{

    QMutableHashIterator<QString, ChannelPage*> iterator (channelPages);
    while (iterator.hasNext()) {
        delete iterator.next().value();
    }
    delete ircClient;

    ::Settings::saveWindow(this);
}
void EditorRevisionTracker::documentUrlChanged(KDevelop::IDocument* document)
{
  KTextEditor::Document* textDocument = document->textDocument();
  if (!textDocument)
    return;

  QMutableHashIterator<KUrl, TrackedDocument> it = d->documents;
  while (it.hasNext()) {
    if (it.next().value().document == document->textDocument()) {
      TrackedDocument track = it.value();
      it.remove();
      d->documents.insert(document->url(), track);
      break;
    }
  }
}