~iahmad/kubuntu-packaging/qtcreator

« back to all changes in this revision

Viewing changes to src/plugins/todo/todooutputtreeview.cpp

  • Committer: Timo Jyrinki
  • Date: 2014-01-15 07:44:24 UTC
  • mfrom: (1.1.30)
  • Revision ID: timo.jyrinki@canonical.com-20140115074424-3pnj3a1x6s25im9v
ImportĀ upstreamĀ versionĀ 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
    setColumnWidth(Constants::OUTPUT_COLUMN_FILE, widthFile);
105
105
}
106
106
 
 
107
void TodoOutputTreeView::keyPressEvent(QKeyEvent *e)
 
108
{
 
109
    if (!e->modifiers()
 
110
            && (e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter)
 
111
            && currentIndex().isValid()) {
 
112
        emit clicked(currentIndex());
 
113
        e->accept();
 
114
        return;
 
115
    }
 
116
    QTreeView::keyPressEvent(e);
 
117
}
 
118
 
107
119
void TodoOutputTreeView::todoColumnResized(int column, int oldSize, int newSize)
108
120
{
109
121
    Q_UNUSED(oldSize);