Browse Source

docs(chatlog): Change comment style

pull/3536/head
Diadlo 9 years ago
parent
commit
394c4bcc99
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 8
      src/chatlog/chatlinecontentproxy.cpp
  2. 1
      src/chatlog/chatlinecontentproxy.h
  3. 5
      src/chatlog/chatlog.cpp
  4. 1
      src/chatlog/chatlog.h
  5. 3
      src/chatlog/documentcache.cpp
  6. 3
      src/chatlog/pixmapcache.cpp

8
src/chatlog/chatlinecontentproxy.cpp

@ -24,6 +24,14 @@ @@ -24,6 +24,14 @@
#include <QPainter>
#include <QDebug>
/**
@enum ChatLineContentProxy::ChatLineContentProxyType
@brief Type tag to avoid dynamic_cast of contained QWidget*
@value GenericType
@value FileTransferWidgetType = 0
*/
ChatLineContentProxy::ChatLineContentProxy(QWidget* widget, ChatLineContentProxyType type, int minWidth, float widthInPercent)
: widthPercent(widthInPercent)
, widthMin(minWidth)

1
src/chatlog/chatlinecontentproxy.h

@ -28,7 +28,6 @@ class FileTransferWidget; @@ -28,7 +28,6 @@ class FileTransferWidget;
class ChatLineContentProxy : public ChatLineContent
{
public:
// Type tag to avoid dynamic_cast of contained QWidget*
enum ChatLineContentProxyType
{
GenericType,

5
src/chatlog/chatlog.cpp

@ -31,6 +31,11 @@ @@ -31,6 +31,11 @@
#include <QMouseEvent>
#include <QShortcut>
/**
@var ChatLog::repNameAfter
@brief repetition interval sender name (sec)
*/
template<class T>
T clamp(T x, T min, T max)
{

1
src/chatlog/chatlog.h

@ -62,7 +62,6 @@ public: @@ -62,7 +62,6 @@ public:
ChatLine::Ptr getTypingNotification() const;
QVector<ChatLine::Ptr> getLines();
ChatLine::Ptr getLatestLine() const;
// repetition interval sender name (sec)
const uint repNameAfter = 5*60;
signals:

3
src/chatlog/documentcache.cpp

@ -43,6 +43,9 @@ void DocumentCache::push(QTextDocument *doc) @@ -43,6 +43,9 @@ void DocumentCache::push(QTextDocument *doc)
}
}
/**
@brief Returns the singleton instance.
*/
DocumentCache &DocumentCache::getInstance()
{
static DocumentCache instance;

3
src/chatlog/pixmapcache.cpp

@ -35,6 +35,9 @@ QPixmap PixmapCache::get(const QString &filename, QSize size) @@ -35,6 +35,9 @@ QPixmap PixmapCache::get(const QString &filename, QSize size)
return itr.value().pixmap(size);
}
/**
@brief Returns the singleton instance.
*/
PixmapCache &PixmapCache::getInstance()
{
static PixmapCache instance;

Loading…
Cancel
Save