Fluent-Qt

API 레퍼런스

EditingCommandRouter

창 범위의 편집 작업을 포커스된 Fluent 편집기로 라우팅합니다.

fluent::textfields::EditingCommandRouter

상속 대상 QObject

생성자

explicit EditingCommandRouter(QWidget* scopeWindow, QObject* parent = nullptr)

scopeWindow의 최상위 창 범위로 지정된 라우터를 생성합니다 (parent가 null인 경우 부모로 사용됨).

소멸자

열거형

enum class Command
  • Undo
  • Redo
  • Cut
  • Copy
  • Paste
  • Delete
  • SelectAll

메서드

QAction* action(Command command) const

command에 해당하는 QAction을 반환합니다 (라우터가 소유하며, 텍스트, 아이콘, 단축키를 사용자 지정할 수 있습니다).

QList<QAction*> actions() const

Command 열거형 순서대로 모든 액션을 반환합니다.

bool execute(Command command)

활성 편집기에서 command를 다시 검증하고 실행합니다. 사용할 수 없으면 false를 반환합니다.

void refresh()

현재 포커스 대상에 대한 작업 활성화 상태를 다시 계산합니다.

시그널

Qt 기본 클래스 문서: QObject