From c9f52b7223685d2e7fca925594171f94dd8c6e3b Mon Sep 17 00:00:00 2001 From: TrickyLeifa Date: Wed, 15 May 2024 00:00:17 +0200 Subject: Ported to CMake, ... * Ported the project to CMake * Android and Mac support dropped for the time being. * Tests, BASS and Discord-RPC are now options * Restructured and reformated the project. * Merged `include` and `src` * Renamed `resource` to `data` * Renamed various files * External libraries headers are no longer included in `src` * Replaced header guards with #pragma once * Multiple refactors (keywords, headers) * Added Qt6 compatibility * Removed various unused functions and headers * Reworked AOPacket * When content is passed to AOPacket, it should be ensured that the content is already decoded. * Encoding/decoding are now static methods. * Fixed various memory leaks * Removed animation code for AOImage * AOImage is always using static images * Simplified ChatLogPiece --- include/scrolltext.h | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 include/scrolltext.h (limited to 'include/scrolltext.h') diff --git a/include/scrolltext.h b/include/scrolltext.h deleted file mode 100644 index 9ed5ff7..0000000 --- a/include/scrolltext.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef SCROLLTEXT_H -#define SCROLLTEXT_H - -#include -#include -#include -#include -#include - -class ScrollText : public QWidget { - Q_OBJECT - Q_PROPERTY(QString text READ text WRITE setText) - Q_PROPERTY(QString separator READ separator WRITE setSeparator) - -public: - explicit ScrollText(QWidget *parent = nullptr); - -public slots: - QString text() const; - void setText(QString text); - - QString separator() const; - void setSeparator(QString separator); - -protected: - virtual void paintEvent(QPaintEvent *); - virtual void resizeEvent(QResizeEvent *); - -private: - void updateText(); - QString _text; - QString _separator; - QStaticText staticText; - int singleTextWidth; - QSize wholeTextSize; - int leftMargin; - bool scrollEnabled; - int scrollPos; - QImage alphaChannel; - QImage buffer; - QTimer timer; - -private slots: - virtual void timer_timeout(); -}; - -#endif // SCROLLTEXT_H -- cgit