OpenMS  2.6.0
Public Member Functions | Properties | List of all members
TOPPASLogWindow Class Reference

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

#include <OpenMS/VISUAL/TOPPASLogWindow.h>

Inheritance diagram for TOPPASLogWindow:
[legend]
Collaboration diagram for TOPPASLogWindow:
[legend]

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...
 

Properties

int max_length
 

Reimplemented Qt events

int max_length_
 Members: More...
 
void contextMenuEvent (QContextMenuEvent *e) override
 
void trimText_ ()
 -1 by default, which means there is no maximum length More...
 

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)
overrideprotected

◆ maxLength()

int maxLength ( ) const

read max_length

◆ setMaxLength()

void setMaxLength ( int  max_length)

set max_length

Referenced by TOPPASBase::TOPPASBase().

◆ trimText_

void trimText_ ( )
protectedslot

-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
readwrite