All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
openfluid::ui::common::ShortcutCompleter Class Reference

#include <ui/common/ShortcutCompleter.hpp>

Inheritance diagram for openfluid::ui::common::ShortcutCompleter:

Public Member Functions

 ShortcutCompleter (QObject *Parent=nullptr)
 
 ShortcutCompleter (QAbstractItemModel *Model, QObject *Parent=nullptr)
 
 ShortcutCompleter (const QStringList &List, QObject *Parent=nullptr)
 
void setShortcut (const QKeySequence &Shortcut=QKeySequence(Qt::CTRL+Qt::Key_Space))
 
void linkToLineEdit (QLineEdit *Widget=nullptr)
 
QAction * shortcutAction () const
 

Constructor & Destructor Documentation

openfluid::ui::common::ShortcutCompleter::ShortcutCompleter ( QObject *  Parent = nullptr)
openfluid::ui::common::ShortcutCompleter::ShortcutCompleter ( QAbstractItemModel *  Model,
QObject *  Parent = nullptr 
)
openfluid::ui::common::ShortcutCompleter::ShortcutCompleter ( const QStringList &  List,
QObject *  Parent = nullptr 
)

Member Function Documentation

void openfluid::ui::common::ShortcutCompleter::linkToLineEdit ( QLineEdit *  Widget = nullptr)

Links the completer to a line edit

Parameters
[in]Widgetthe line edit to link to
void openfluid::ui::common::ShortcutCompleter::setShortcut ( const QKeySequence &  Shortcut = QKeySequence(Qt::CTRL+Qt::Key_Space))

Sets the shortcut sequence to open the completer popup

Parameters
[in]Shortcutthe shortcut sequence
QAction* openfluid::ui::common::ShortcutCompleter::shortcutAction ( ) const
inline

Returns the QAction for the popup shortcut

Returns
the QAction for the popup shortcut

The documentation for this class was generated from the following file: