Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1264

QCompleter defaultPopup elide mode

    XMLWordPrintable

Details

    Description

      the default popup in a QCompleter should elide left since the important part of what you're completing on is the end of the string.

      — /tmp/tmp.27150.0 2007-10-31 13:49:50.000000000 -0700
      +++ /home/anders/dev/qt/src/gui/util/qcompleter.cpp 2007-10-31 13:49:47.000000000 -0700
      @@ -1096,6 +1096,7 @@ QAbstractItemView *QCompleter::popup() c
      listView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
      listView->setSelectionBehavior(QAbstractItemView::SelectRows);
      listView->setSelectionMode(QAbstractItemView::SingleSelection);
      + listView->setTextElideMode(Qt::ElideLeft);
      listView->setModelColumn(d->column);
      QCompleter that = const_cast<QCompleter>(this);
      that->setPopup(listView);

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            rve Anders Bakken
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes