summaryrefslogtreecommitdiff
path: root/widgets/displaytext.h
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2019-03-11 14:19:23 +0100
committerChristoph Berg <christoph.berg@credativ.de>2019-03-11 14:19:23 +0100
commit200de07a95209a55d6019ba87f0abc78d302bf4c (patch)
tree3b2922eb5d89b01ad214cae492e871c3bfb5df18 /widgets/displaytext.h
parente0737c56c1e384e05064a0c6e1ac46979371041b (diff)
New upstream version 2.0.1+repackupstream/2.0.1+repack
Diffstat (limited to 'widgets/displaytext.h')
-rw-r--r--widgets/displaytext.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/widgets/displaytext.h b/widgets/displaytext.h
index 1f20ac15..cd3426af 100644
--- a/widgets/displaytext.h
+++ b/widgets/displaytext.h
@@ -19,8 +19,13 @@ class DisplayText
{
Q_OBJECT
public:
- explicit DisplayText(QWidget *parent = 0);
- void set_configuration (Configuration const * configuration) {m_config = configuration;}
+ explicit DisplayText(QWidget *parent = nullptr);
+ void set_configuration (Configuration const * configuration, bool high_volume = false)
+ {
+ disconnect (vertical_scroll_connection_);
+ m_config = configuration;
+ high_volume_ = high_volume;
+ }
void setContentFont (QFont const&);
void insertLineSpacer(QString const&);
void displayDecodedText(DecodedText const& decodedText, QString const& myCall, QString const& mode,
@@ -29,6 +34,7 @@ public:
void displayTransmittedText(QString text, QString modeTx, qint32 txFreq, bool bFastMode);
void displayQSY(QString text);
void displayFoxToBeCalled(QString t, QColor bg = QColor {}, QColor fg = QColor {});
+ void new_period ();
Q_SIGNAL void selectCallsign (Qt::KeyboardModifiers);
Q_SIGNAL void erased ();
@@ -38,10 +44,11 @@ public:
Q_SLOT void erase ();
Q_SLOT void highlight_callsign (QString const& callsign, QColor const& bg, QColor const& fg, bool last_only);
-protected:
- void mouseDoubleClickEvent(QMouseEvent *e);
-
private:
+ void mouseDoubleClickEvent (QMouseEvent *) override;
+
+ void extend_vertical_scrollbar (int min, int max);
+
Configuration const * m_config;
bool m_bPrincipalPrefix;
QString appendWorkedB4(QString message, QString callsign
@@ -51,6 +58,9 @@ private:
QFont char_font_;
QAction * erase_action_;
QHash<QString, QPair<QColor, QColor>> highlighted_calls_;
+ bool high_volume_;
+ QMetaObject::Connection vertical_scroll_connection_;
+ int modified_vertical_scrollbar_max_;
};
extern QHash<QString,int> m_LoTW;