| OpenMS 2.5.0

Public Member Functions | Protected Slots | Protected Attributes | Properties | List of all members
TOPPASLogWindow Class Reference
Visual

QTextEdit implementation with a "clear" button in the context menu. More...

`#include <OpenMS/VISUAL/TOPPASLogWindow.h>`

Inheritance diagram for TOPPASLogWindow:

## Public Member Functions

| TOPPASLogWindow (QWidget *parent=nullptr)
| Constructor. More...
| ~TOPPASLogWindow () override
| Destructor. More...
int | maxLength () const
| read max_length More...
void | setMaxLength (int max_length)
| set max_length More...

## Protected Slots

void | trimText_ ()
| -1 by default, which means there is no maximum length More...

## Protected Member Functions

Reimplemented Qt events
void | contextMenuEvent (QContextMenuEvent *e) override

## Protected Attributes

int | max_length_
| Members: More...

## Properties

int | max_length

## Detailed Description

QTextEdit implementation with a "clear" button in the context menu.

## Constructor & Destructor Documentation

## ◆ TOPPASLogWindow()

TOPPASLogWindow | ( | QWidget * | parent = `nullptr` | ) |

Constructor.

## ◆ ~TOPPASLogWindow()

~TOPPASLogWindow | ( |  | ) |

override

Destructor.

## Member Function Documentation

## ◆ contextMenuEvent()

void contextMenuEvent | ( | QContextMenuEvent * | e | ) |

override protected

## ◆ maxLength()

int maxLength | ( |  | ) | const

read max_length

## ◆ setMaxLength()

void setMaxLength | ( | int | max_length | ) |

set max_length

Referenced by TOPPASBase::TOPPASBase().

## ◆ trimText_

void trimText_ | ( |  | ) |

protected slot

-1 by default, which means there is no maximum length

if text length reached max_length_, then delete prefix until length of text is 1/2 of max_length_

## Member Data Documentation

## ◆ max_length_

int max_length_

protected

Members:

## Property Documentation

## ◆ max_length

int max_length

read write