Browse Source

Change completion model so the comments are actually displayed.

git-svn-id: file:///var/svn/tigccpp/trunk@1243 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 16 years ago
parent
commit
ba857d5614
1 changed files with 2 additions and 4 deletions
  1. 2 4
      ktigcc/completion.cpp

+ 2 - 4
ktigcc/completion.cpp

@@ -608,14 +608,12 @@ QVariant CompletionModel::data(const QModelIndex &index, int role) const
         case 3:
           return m_entries[index.row()].text;
         case 4:
-          return QVariant(); // arguments (currently in postfix)
+          return ' ' + m_entries[index.row()].postfix; // arguments
         case 5:
-          return m_entries[index.row()].postfix;
+          return m_entries[index.row()].comment; // postfix
         default:
           return QVariant();
       }
-    case Qt::StatusTipRole:
-      return m_entries[index.row()].comment;
     case CompletionRole:
       return (int)Public|GlobalScope;
     case ScopeIndex: