RibbonPageSystemRecentFileList Class

Class RibbonPageSystemRecentFileList Used to display a list of recently used files in the Ribbon UI system menu. More...

Header: #include <RibbonPageSystemRecentFileList>
Inherits: QWidget

Public Functions

RibbonPageSystemRecentFileList(const QString &caption)
virtual ~RibbonPageSystemRecentFileList() override
QAction *getCurrentAction() const
int getSize() const
void setSize(int size)

Reimplemented Public Functions

virtual QSize sizeHint() const override

Public Slots

void updateRecentFileActions(const QStringList &files)

Signals

void openRecentFile(const QString &file)

Reimplemented Protected Functions

virtual void enterEvent(QEnterEvent *event) override
virtual void keyPressEvent(QKeyEvent *event) override
virtual void leaveEvent(QEvent *event) override
virtual void mouseMoveEvent(QMouseEvent *event) override
virtual void mousePressEvent(QMouseEvent *event) override
virtual void mouseReleaseEvent(QMouseEvent *event) override
virtual void paintEvent(QPaintEvent *event) override
virtual void resizeEvent(QResizeEvent *event) override

Detailed Description

Member Function Documentation

RibbonPageSystemRecentFileList::RibbonPageSystemRecentFileList(const QString &caption)

Constructs RibbonPageSystemRecentFileList object with the given caption.

[override virtual noexcept] RibbonPageSystemRecentFileList::~RibbonPageSystemRecentFileList()

Destructor of the RibbonPageSystemRecentFileList object.

[override virtual protected] void RibbonPageSystemRecentFileList::enterEvent(QEnterEvent *event)

Reimplements: QWidget::enterEvent(QEnterEvent *event).

QAction *RibbonPageSystemRecentFileList::getCurrentAction() const

Returns a pointer to the current QAction, which is under mouse and highlighted.

int RibbonPageSystemRecentFileList::getSize() const

Returns the size of the file list.

[override virtual protected] void RibbonPageSystemRecentFileList::keyPressEvent(QKeyEvent *event)

Reimplements: QWidget::keyPressEvent(QKeyEvent *event).

[override virtual protected] void RibbonPageSystemRecentFileList::leaveEvent(QEvent *event)

Reimplements: QWidget::leaveEvent(QEvent *event).

[override virtual protected] void RibbonPageSystemRecentFileList::mouseMoveEvent(QMouseEvent *event)

Reimplements: QWidget::mouseMoveEvent(QMouseEvent *event).

[override virtual protected] void RibbonPageSystemRecentFileList::mousePressEvent(QMouseEvent *event)

Reimplements: QWidget::mousePressEvent(QMouseEvent *event).

[override virtual protected] void RibbonPageSystemRecentFileList::mouseReleaseEvent(QMouseEvent *event)

Reimplements: QWidget::mouseReleaseEvent(QMouseEvent *event).

[signal] void RibbonPageSystemRecentFileList::openRecentFile(const QString &file)

The signal will be issued if the file has been choosed in the menu.

[override virtual protected] void RibbonPageSystemRecentFileList::paintEvent(QPaintEvent *event)

Reimplements: QWidget::paintEvent(QPaintEvent *event).

[override virtual protected] void RibbonPageSystemRecentFileList::resizeEvent(QResizeEvent *event)

Reimplements: QWidget::resizeEvent(QResizeEvent *event).

void RibbonPageSystemRecentFileList::setSize(int size)

Sets the size of the file list. The list size can not exceed 9 files.

[override virtual] QSize RibbonPageSystemRecentFileList::sizeHint() const

Reimplements an access function for property: QWidget::sizeHint.

[slot] void RibbonPageSystemRecentFileList::updateRecentFileActions(const QStringList &files)

Slot is intended to update the file list. Parameter files holds the file's names.