Show webfinger if displayName is unknown for an author.
[larjonas-pumpa.git] / src / richtextlabel.h
blob10d0356f84270ac0fb435a790ecdc85589eb30c7
1 /*
2 Copyright 2013-2015 Mats Sjöberg
4 This file is part of the Pumpa programme.
6 Pumpa is free software: you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 Pumpa is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pumpa. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _RICHTEXTLABEL_H_
21 #define _RICHTEXTLABEL_H_
23 #include <QFrame>
24 #include <QWidget>
25 #include <QLabel>
26 #include <QVBoxLayout>
28 #include "qactivitystreams.h"
29 #include "filedownloader.h"
31 //------------------------------------------------------------------------------
33 class RichTextLabel : public QLabel {
34 Q_OBJECT
36 public:
37 RichTextLabel(QWidget* parent = 0, bool singleLine = false);
39 virtual void resizeEvent(QResizeEvent*);
41 private:
42 bool m_singleLine;
45 #endif /* _RICHTEXTLABEL_H_ */