mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T369, adjusted text message component to support settings
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
class QAction;
|
||||
class QPoint;
|
||||
class QTextDocument;
|
||||
class QWidget;
|
||||
|
||||
namespace BlackMisc { namespace Network { class CTextMessage; } }
|
||||
namespace BlackGui
|
||||
@@ -46,17 +45,22 @@ namespace BlackGui
|
||||
//! Number of displayed messages
|
||||
int count() const;
|
||||
|
||||
public slots:
|
||||
//! Stylesheet for content
|
||||
void setStyleSheetForContent(const QString &styleSheet);
|
||||
|
||||
//! Clear
|
||||
void clear();
|
||||
|
||||
//! Has text document
|
||||
bool hasTextDocument() const { return m_textDocument; }
|
||||
|
||||
//! Redraw HTML
|
||||
void redrawHtml();
|
||||
|
||||
private:
|
||||
//! Context menu
|
||||
void showContextMenuForTextEdit(const QPoint &pt);
|
||||
|
||||
//! Stylesheet has been changed
|
||||
void onStyleSheetChanged();
|
||||
|
||||
//! Keep last n messages
|
||||
void keepLastNMessages();
|
||||
|
||||
@@ -69,9 +73,6 @@ namespace BlackGui
|
||||
//! Convert to HTML
|
||||
static QString toHtml(const BlackMisc::Network::CTextMessage &message, bool withFrom, bool withTo);
|
||||
|
||||
//! Stylesheet for content
|
||||
void setStyleSheetForContent(const QString &styleSheet);
|
||||
|
||||
//! Word wrap
|
||||
void setWordWrap(bool wordWrap);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user