2018-11-11 14:41:06 -05:00
|
|
|
/*******************************************************************************
|
|
|
|
* gui/common/StyledLabel.h *
|
|
|
|
* *
|
|
|
|
* Copyright (c) 2014, RetroShare Team <retroshare.project@gmail.com> *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
* published by the Free Software Foundation, either version 3 of the *
|
|
|
|
* License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU Affero General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
*******************************************************************************/
|
2014-12-06 17:09:44 -05:00
|
|
|
|
|
|
|
#ifndef _STYLEDLABEL_H
|
|
|
|
#define _STYLEDLABEL_H
|
|
|
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
|
|
|
class StyledLabel : public QLabel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2015-06-06 08:58:14 -04:00
|
|
|
Q_PROPERTY(int fontSizeFactor READ fontSizeFactor WRITE setFontSizeFactor)
|
2014-12-06 17:09:44 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
StyledLabel(QWidget *parent = NULL);
|
2014-12-14 12:05:43 -05:00
|
|
|
StyledLabel(const QString &text, QWidget *parent = NULL);
|
2014-12-06 17:09:44 -05:00
|
|
|
|
2015-06-06 08:58:14 -04:00
|
|
|
int fontSizeFactor();
|
2014-12-06 17:09:44 -05:00
|
|
|
void setFontSizeFactor(int factor);
|
2015-06-06 08:58:14 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
int mFontSizeFactor;
|
2014-12-06 17:09:44 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|