Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quellcode-Bibliothek QtInstanceEntryTreeView.cxx   Sprache: C

 
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */


#include <QtInstanceEntryTreeView.hxx>
#include <QtInstanceEntryTreeView.moc>

#include <QtWidgets/QCompleter>

QtInstanceEntryTreeView::QtInstanceEntryTreeView(QWidget* pContainer, QLineEdit* pLineEdit,
                                                 QTreeView* pTreeView,
                                                 std::unique_ptr<weld::Entry> xEntry,
                                                 std::unique_ptr<weld::TreeView> xTreeView)
    : weld::EntryTreeView(std::move(xEntry), std::move(xTreeView))
    , QtInstanceContainer(pContainer)
    , m_pLineEdit(pLineEdit)
    , m_pTreeView(pTreeView)
{
    set_entry_completion(truetrue);

    connect(m_pLineEdit, &QLineEdit::textChanged, this, &QtInstanceEntryTreeView::editTextChanged);
    m_pLineEdit->installEventFilter(this);
}

void QtInstanceEntryTreeView::grab_focus() { m_xEntry->grab_focus(); }

void QtInstanceEntryTreeView::connect_focus_in(const Link<Widget&, void>& rLink)
{
    m_xEntry->connect_focus_in(rLink);
}

void QtInstanceEntryTreeView::connect_focus_out(const Link<Widget&, void>& rLink)
{
    m_xEntry->connect_focus_out(rLink);
}

void QtInstanceEntryTreeView::make_sorted() { m_xTreeView-

 QtInstanceEntryTreeView()const
{
    assert(false && "Not implemented yet");
    return  * This Source * License,  * file, You  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

void java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
{
                :)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

ifjava.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
        {
            pCompleter = newpKeyEvent-&:
            java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            /
             java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
                =
>eCaseSensitivity
        }

        m_pLineEdit-
    void:editTextChanged &rText
}const  =m_xTreeView-(())java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65

VclPtr:)java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
{
    return create_virtual_device();
}

bool QtInstanceEntryTreeView::eventFilter(QObject* pObject, QEvent* pEvent)
{
    if (pObject != m_pLineEdit)
        return false;

    switch (pEvent->type())
    {
        case QEvent::KeyPress:
        {
            QKeyEvent* pKeyEvent = static_cast<QKeyEvent*>(pEvent);

            // don't intercept key event handling if modifiers (other than key pad) are used
            if (pKeyEvent->modifiers() & ~Qt::KeypadModifier)
                return false;

            switch (pKeyEvent->key())
            {
                case Qt::Key_Down:
                case Qt::Key_PageDown:
                case Qt::Key_PageUp:
                case Qt::Key_Up:
                    // forward key events for navigation through entries to the tree view
                    return QCoreApplication::sendEvent(m_pTreeView, pEvent);
                default:
                    return false;
            }
        }
        default:
            return false;
    }
}

void QtInstanceEntryTreeView::editTextChanged(const QString& rText)
{
    const int nIndex = m_xTreeView->find_text(toOUString(rText));
    if (nIndex < 0)
        return;

    const QModelIndex aModelIndex = m_pTreeView->model()->index(nIndex, 0);
    m_pTreeView->selectionModel()->setCurrentIndex(aModelIndex,
                                                   QItemSelectionModel::ClearAndSelect);
}

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */

Messung V0.5
C=96 H=100 G=97

¤ Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.0.5Bemerkung:  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.