2012-05-22 13:09:48 -04:00
|
|
|
#ifndef DISPLAYTEXT_H
|
|
|
|
#define DISPLAYTEXT_H
|
|
|
|
|
|
|
|
#include <QTextBrowser>
|
|
|
|
|
|
|
|
class DisplayText : public QTextBrowser
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2013-08-11 07:45:17 -04:00
|
|
|
explicit DisplayText(QWidget *parent = 0);
|
|
|
|
|
|
|
|
void setFont(QFont font);
|
|
|
|
int getMaxDisplayedCharacters() { return _maxDisplayedCharacters; }
|
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
signals:
|
2013-03-01 16:25:33 -05:00
|
|
|
void selectCallsign(bool shift, bool ctrl);
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
2013-08-11 07:45:17 -04:00
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
protected:
|
|
|
|
void mouseDoubleClickEvent(QMouseEvent *e);
|
2013-08-11 07:45:17 -04:00
|
|
|
void resizeEvent(QResizeEvent * event);
|
|
|
|
|
|
|
|
private:
|
|
|
|
int _fontWidth;
|
|
|
|
int _maxDisplayedCharacters;
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DISPLAYTEXT_H
|