diff options
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r-- | src/dialog.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp index 7ebfbcc..d09ff19 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -48,7 +48,6 @@ void Dialog::changeEvent(QEvent *e) void Dialog::on_treeView_activated(QModelIndex index) { //TODO handle failures - //printf ("Item %d has been activated\n", index.row()); //TODO get rid of this->entries, storing them in the model should be enough // alternatively use references instead of copies? @@ -72,15 +71,6 @@ void Dialog::on_treeView_activated(QModelIndex index) } void Dialog::addItems(const QList<Session*>& entries, const QString& section) { - // TODO: section - // TODO: this is not the right way to do this - // we probably do not need a copy of the entries vector in Dialog and Model - //printf("Dialog::addItems()\n"); - //printf(" before: %d items\n", this->entries_.size()); - //printf(" %d new items\n", entries.size()); - //this->entries_.append(entries); - //printf(" after: %d items\n", this->entries_.size()); - this->model_->addItems(entries, section); // TODO: do this only once? |